Date: Thu, 23 Mar 2000 10:00:20 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Andrew <acs@fl.net.au> Cc: hackers@FreeBSD.ORG Subject: Re: Getting Data From Inodes (SOLVED) Message-ID: <200003231800.KAA02229@apollo.backplane.com> References: <Pine.BSF.4.05.10003240156150.39253-100000@jander.fl.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
: :1) use dd to make the partition a file: : : dd conv=noerror,sync if=/dev/wd1s1e of=var.file : :2) use ffsrecov (from ports) to scan that file for backup superblocks (my :primary super block was corrupt so ffsrecov would crash if I tried to :recover anything) : : ffsrecov -s var.file :... You can also run fsck on the file directly, believe it or not! Use the -b option to specify the alternate superblock. You can then use the VN device to mount the file as a filesystem and copy it off, or you can run dump specifying the file directly (not use vn) to copy it off. Example: dd if=/dev/da0s1a of=fubar bs=32k fsck fubar fubar is not a disk device CONTINUE? [yn] y ... vnconfig -r labels -c vn0 fubar mount /dev/vn0 /mnt Or (WARNING: make sure you specify the proper arguments to dump or you may accidently overwrite the image file): dd if=/dev/da0s1a of=fubar bs=32k fsck fubar fubar is not a disk device CONTINUE? [yn] y ... dump 0af - fubar > fubar.dump :Thankyou again, : :Andrew : -Matt Matthew Dillon <dillon@backplane.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003231800.KAA02229>