stephen@jellyfish:~/backups$ ls -ltotal 499892-rw-r--r-- 1 root root 511385600 2007-07-27 14:18 sdb-rw-r--r-- 1 root root 111 2007-07-27 14:18 sdb.ddrescue.logstephen@jellyfish:~/backups$First thing is to read the image's partition table:
stephen@jellyfish:~/backups$ sfdisk --dump sdb# partition table of sdbunit: sectors sdb1 : start= 32, size= 998464, Id= 6 sdb2 : start= 0, size= 0, Id= 0 sdb3 : start= 0, size= 0, Id= 0 sdb4 : start= 0, size= 0, Id= 0stephen@jellyfish:~/backups$Looks like the first partition is the only one with anything in it, so set up a loop device with an appropriate offset to get to that partition:
stephen@jellyfish:~/backups$ sudo losetup -f/dev/loop0stephen@jellyfish:~/backups$ sudo losetup -o $((32*512)) /dev/loop0 sdbstephen@jellyfish:~/backups$Now I can mount the partition:
stephen@jellyfish:~/backups$ sudo mount /dev/loop0 /mntstephen@jellyfish:~/backups$ ls -l /mnttotal 17928drwxr-xr-x 2 root root 8192 2007-07-02 15:03 101msdcf-rwxr-xr-x 1 root root 163840 2006-11-28 17:42 BB&A Fest Volunteers info and registration Jan 05.docdrwxr-xr-x 2 root root 8192 2007-07-01 14:32 bruthen-floods-2007-rwxr-xr-x 1 root root 17862238 2007-07-17 16:32 Firefox 2.0.0.4.dmgdrwxr-xr-x 4 root root 8192 2007-03-15 15:15 ServicePacksdrwxr-xr-x 2 root root 8192 2007-03-14 12:44 SysFILES-rwxr-xr-x 1 root root 90858 2007-03-14 15:42 vel002.xml-rwxr-xr-x 1 root root 191636 2007-07-19 16:15 VF_RFT_OU6220707_Thinning-with-scribbles.pdfstephen@jellyfish:~/backups$Note in particular that mounting /dev/loop0 as /mnt does not require -o loop. Passing the loop option to mount makes it do a losetup behind the scenes. We're doing the losetup explicitly, so we don't want mount to do it for us. That also means we need to remember to do
sudo losetup -d /dev/loop0 after umounting /mnt, since umount won't automatically tear down a losetup that mount didn't do.You are not logged in, either login or create an account to post comments
mount -o loop ntfsimage.dd /ntfs
At the very worst, you could get a working drive and just restore the image back on a drive to work from.
At that point, depending on what exactly happened to the disk, you will need something to recover the files. In all likelihood, the file names and metadata are gone, as I would bet that the resinstall killed the MFT and backup MFT. But if there was no low level reformat, then the data might be there. I use PhotoRec for this type of recovery. This will produce tons of files with numeric names that you will have to check for usefulness.
Good luck. This is quite a painful chore. Please update what you find.
posted by procrastination at 4:57 PM on December 28, 2008