Making a Windows disk a file on Linux

Ken D'Ambrosio kend at xanoptix.com
Fri Sep 10 08:42:01 EDT 2004


Kenneth E. Lussier wrote:

>AIf you are just trying to preserve the data, you could use mkisofs and create an iso9660 file system, then mount it like this: 
>mount -t iso9660 -o ro,loop=/dev/loop0 windows.iso /foo
>
>All of the files will be preserved and usable (not writable, though),
>but it will no longer be a usable windows system.
>  
>
Or... if it's a relatively small disk, you could just take an image of 
the disk (or partition), itself, using "dd" or even "cat" (eg. dd 
if=/dev/hda1 of=image_of_c_drive.img), and then mount it thusly:
mount -t vfat -o loop image_of_c_drive.img /foo
You could read and write it, then, but you'd also pay the penalty of 
having the image file include all the empty space on the partition.

Just another option...

-Ken



More information about the gnhlug-discuss mailing list