I have two 500GB hard drives from an old Windows laptop at my workplace. My boss has asked me to copy the contents to the file server if possible, with the caveat that absolutely no data may be lost.
Normally, backups would suffice for this, but this was from the earlier days of the operation when stuff like backups weren't kept more strictly, and this guy was notoriously poorly organized, so I'm not sure whether the backups have the most up-to-date (or even reasonably up-to-date) contents.
First thing I did was to produce images using ddrescue. The drive that has the partition table copied without errors, and the other drive lost ~150 KiB to errors. The images were mounted read-only to /dev/loop1 and /dev/loop2 using losetup. fdisk -l shows the following:
Disk /dev/loop1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x87afa6ad
Device Boot Start End Sectors Size Id Type
/dev/loop2p1 2048 31459327 31457280 15G 27 Hidden NTFS WinRE
/dev/loop2p2 * 31459328 31664127 204800 100M 27 Hidden NTFS WinRE
/dev/loop2p3 31664128 1191071167 1159407040 552.9G 7 HPFS/NTFS/exFAT
/dev/loop2p4 1191071168 1953533951 762462784 363.6G 7 HPFS/NTFS/exFAT
The partition sizes seemed to suggest that this was a RAID array or Windows logical drive, and a quick check with blkid showed that the drive types were isw_raid_member. Attempting to assemble the array with mdadm -v --assemble /dev/md0 /dev/loop2 /dev/loop1 produced the following output:
mdadm: looking for devices for /dev/md0
mdadm: Cannot assemble mbr metadata on /dev/loop2
mdadm: /dev/loop2 has no superblock - assembly aborted
Other things I tried either to mount the drives or get more information were:
mount /dev/loop2 <mount point>: Failed withunknown filesystem type 'isw_raid_member'mount -twith NTFS and exFAT: Unable to find file systemmount /dev/loop2p[1234]:Special device <dev> does not existmdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/loop[21]: States that/dev/loop2appears to be part of a raid 0 array with no devices and a creation date of 00:00:00 Jan 1 1970mdadm -E /dev/loop[12]: States that no md superblock was detected on/dev/loop1and prints out the partitions and MBR magic number ofaa55for/dev/loop2file -s /dev/loop1: prints/dev/loop1: datafile -s /dev/loop2: spits out a block of text basically saying it's a DOS/MBR boot sector and the gives raw numbers for partition offsets/sizes.mount -t ntfs -o ro,offset=$((512*2048)) /dev/loop2 /mnt/partition1:NTFS signature is missing Failed to mount '/dev/loop3': Invalid argument The device '/dev/loop3' doesn't seem to have a valid NTFSNo, I didn't mistype that
3. No clue where it came from.
I also looked at Recovering a failed software RAID, but that seems to be for already working Linux arrays being recovered on Linux (not to mention quite a bit goes over my head).
Is there anything I can do to get these images mounted safely?