From owner-freebsd-hackers Thu Mar 23 10: 0:31 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id BF68537BEB3 for ; Thu, 23 Mar 2000 10:00:27 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id KAA02229; Thu, 23 Mar 2000 10:00:20 -0800 (PST) (envelope-from dillon) Date: Thu, 23 Mar 2000 10:00:20 -0800 (PST) From: Matthew Dillon Message-Id: <200003231800.KAA02229@apollo.backplane.com> To: Andrew Cc: hackers@FreeBSD.ORG Subject: Re: Getting Data From Inodes (SOLVED) References: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message