I have a hard disk (SATA SSD) that was formerly the primary drive in my computer. It had Windows 10 installed. I replaced it, reinstalled Windows on the new drive and now I want to copy files from the old primary drive.
I can attach it through USB and it works fine, but I would prefer to have it available as an .iso file.
I have created and mounted .iso files from DVD’s in the past and that works fine. I use Linux dd if=/dev/cdrom of=file.iso to create the file. I can mount such an .iso in Windows either straight (Windows Explorer) or Virtual Clonedrive. Never had any problems.
Now I tried that with the hard drive and I can’t get the .iso to mount.
What I did:
First I connect the drive to Linux with USB. Being a Windows 10 primary drive, it has three partitions. It has System Reserved, “Drive C”, and Recovery Partition, the first two being readable file systems. So Linux automatically creates four block devices, /dev/sdd, /dev/sdd1, /dev/sdd2, /dev/sdd3.
I first tried dd if=/dev/sdd2 of=file.iso. Tried to mount that in Windows. Explorer says something like the .iso file being corrupt. Virtual Clonedrive does not say anything but does not show any mounted drive in Windows either (but still have to unmount to unlock the .iso file).
Next I tried dd if=/dev/sdd of=file.iso. Same result in Windows.
Using the latter file, I tried mounting it in Linux using the loop device. mount file.iso /media/iso -o loop. Linux says: “mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.”
The Linux is an old Fedora release 20 (Heisenbug) virtual machine.
I am convinced I can make it work with losetup with alot of effort. Losetup has a –partscan that perhaps handles multiple partitions in the .iso file. Using the -o, --sizelimit and mount -t options should handle anything.
So:
How do you mount an .iso file, created from a hard disk containing multiple partitions in Fedora Linux using losetup?
How do you mount such an .iso file in Windows 10?
Any hints?