Recovering partitions from disk image?

snott skye at f4.ca
Fri Apr 3 10:24:52 PDT 2009


Update: I figured out how to get scan_ffs to read a file by looking at the
program source (if it starts with / then it considers it a regular file to
read instead of a device) and got the following results which matches well
with the TestDisk output.

$ scan_ffs -s /recovery/disk0.img 
ufs1 at 1087 size 2621440 mount / time Wed Dec 31 16:00:00 1969
ufs1 at 10486847 size 5242880 mount /var time Wed Dec 31 16:00:00 1969
ufs1 at 31458367 size 5242880 mount /usr/home time Wed Dec 31 16:00:00 1969
ufs1 at 54525634 size 46680873 mount /mnt time Wed Dec 31 16:00:00 1969

Looks about right compared to the df output I had from that host:

Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/twed0s1a   4.9G   2.8G   1.7G    62%    /
/dev/twed0s1e   9.8G   5.0G   4.0G    56%    /var
/dev/twed0s1f   9.8G   952M   8.1G    10%    /usr/home
/dev/twed0s2e    88G    15G    65G    19%    /mnt

So, what can I do with those numbers?  It doesn't look like there's any
valid MBR or disklabel on this disk image.  Can I extract these filesystems
one at a time from the image and mount them somehow?

Thanks,
Skye
-- 
View this message in context: http://www.nabble.com/Recovering-partitions-from-disk-image--tp22862006p22872988.html
Sent from the freebsd-questions mailing list archive at Nabble.com.



More information about the freebsd-questions mailing list