From owner-freebsd-hackers Thu Jun 19 22:23:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA11841 for hackers-outgoing; Thu, 19 Jun 1997 22:23:23 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id WAA11829 for ; Thu, 19 Jun 1997 22:23:18 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id HAA24522; Fri, 20 Jun 1997 07:23:16 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id HAA04965; Fri, 20 Jun 1997 07:20:11 +0200 (MET DST) Message-ID: <19970620072011.RM43153@uriah.heep.sax.de> Date: Fri, 20 Jun 1997 07:20:11 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG Cc: brianc@pobox.com (Brian Campbell) Subject: Re: fs recovery References: <19970619173858.39930@pobox.com> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <19970619173858.39930@pobox.com>; from Brian Campbell on Jun 19, 1997 17:38:58 -0400 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Brian Campbell wrote: > I used fsdb to look at the first 150k inodes and found an expected > mixture of directories and inodes. Is there an easy way to recreate > my root directory and link some of these directories (presumably > the ones whose parent was inode 2? how do I find that out?) into > the root? What happens if you recreate inode 2 as an (empty) root directory, and leave the rest to fsck? IMHO, it should find the orphaned members of the previous root directory, and drop them into lost+found. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)