This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dd to linux partition


>> dd if=/dev/sda1 of=/cygrive/f/sda1.img  # windows, works!!!
>> dd if=/dev/sda5 of=/cygrive/f/sda5.img  # linux, will not work

On my machine:

~> /usr/sbin/fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
..
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2048    16450528+   c  W95 FAT32 (LBA)
/dev/sda2            2049       63488   493516800   83  Linux
/dev/sda3           63489       64512     8225280   82  Linux swap
/dev/sda4           64513      121601   458567392+   5  Extended
/dev/sda5           64513       65536     8225248+   b  W95 FAT32
/dev/sda6           65537       66560     8225248+   b  W95 FAT32
/dev/sda7           66561       67584     8225248+   b  W95 FAT32
/dev/sda8           67585      116736   394813408+   b  W95 FAT32
/dev/sda9          116737      117760     8225248+  83  Linux
/dev/sda10         117761      118784     8225248+  83  Linux

~> dd if=/dev/sda2 of=./test.img count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.043 s, 11.9 kB/s

Windows has to be made aware of any Linux partition(s) on your system. From my experience "Ext2 Installable File System for Windows" works really well. See http://www.fs-driver.org/

Fire it up and the Linux partition becomes totally accessible (read-write) from Windows, and therefore from Cygwin. Incidentally really useful for drag and drop, whatever, without going near Cygwin.

I've never tried it for other than ID b i.e. ext2; and only on the XP platform. Maybe it is extensible (ext3 etc; Vista, W7) or maybe googling for something similar will get you something more elaborate, if you need it.

Fergus


-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]