2
Death to Windows. I am done with it.
I would like to preserve the Windows partition in case I will need it later. I was wondering if I can use dd
to copy the partition to some file so that if I need to I can restore the partition as-is. That if, in the course of things I need some files from that partition (file), can I mount the file like an iso file.
dd if=/dev/sda1 of=/my/preserved/windows.iso
- mount
windows.iso
Is that doable? Is there another method/suggestion?
1Yes.
mount -o loop /path/to/image/file /place/to/mount
– ivanivan – 2018-03-16T19:55:32.5971Yes it works however you remove the partition table, not all filesystems are recognized the same way on unpartitioned (super floppy,like) devices. Alternatively you could skip a few sectors and add a new partition table to the loopback mount. – eckes – 2018-03-16T21:22:06.177