From owner-freebsd-questions Sun Mar 11 16:57: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 65CD637B71A for ; Sun, 11 Mar 2001 16:57:01 -0800 (PST) (envelope-from cjc@rfx-216-196-73-168.users.reflexcom.com) Received: from rfx-216-196-73-168.users.reflexcom.com ([216.196.73.168]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 11 Mar 2001 16:55:00 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.1/8.11.1) id f2C0uxw92110; Sun, 11 Mar 2001 16:56:59 -0800 (PST) (envelope-from cjc) Date: Sun, 11 Mar 2001 16:56:52 -0800 From: "Crist J. Clark" To: "J.A. Terranson" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Unable to boot/mount root to fixit. Message-ID: <20010311165652.J50418@rfx-216-196-73-168.users.reflex> Reply-To: cjclark@alum.mit.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from measl@mfn.org on Sun, Mar 11, 2001 at 04:18:51PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 11, 2001 at 04:18:51PM -0600, J.A. Terranson wrote: > > Greetings, > > I know *what* I did, and I knew I shouldn't have done it from > prior experience, but, being 1/2 asleep... > > cd / > chflags -R schg * > > I am no longer able to boot this box: it hangs when trying to > mount /dev/ad0s1e. The device is now immutable. Hard to mount an immutable device read-write. > Even worse, I am unable to mount from the fixit to try > and undo my mistake. I get an invalid super block error when trying to: > > mount /dev/ad0s1 /mnt > or > mount /dev/ad0s2 /mnt, etc... Is that a typo or did you actually try that? You want to mount, # mount /dev/ad0s1a /mnt ^ Of course. > I am in the process o rebuilding the box in question, as I don't > have time to play with it, but I am curious if anyone knows (1) why > chflaging from the root breaks everything, Making the device nodes immutable will cause breakage. > and (2) any way I could have > recovered from this? You were on the right track. Boot fixit.flp, mount the root partition of the disk (using the correct name ;) and, # chflags -R noschg /mnt You could repeat for the other partitions from fixit.flp, or boot off of the HDD into single-user at this point. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message