From owner-freebsd-questions Sun Jul 30 18:35:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id E855E37B8D2 for ; Sun, 30 Jul 2000 18:35:12 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id LAA09557; Mon, 31 Jul 2000 11:04:52 +0930 (CST) (envelope-from grog) Date: Mon, 31 Jul 2000 11:04:52 +0930 From: Greg Lehey To: carl@bl.echidna.id.au Cc: FreeBSD Questions Subject: Re: I broke my /dev tree, can't fsck /dev/ad0s2a, help? Message-ID: <20000731110452.B9147@wantadilla.lemis.com> References: <200007310116.e6V1GJc24804@rollcage.bl.echidna.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200007310116.e6V1GJc24804@rollcage.bl.echidna.id.au>; from carl@bl.echidna.id.au on Mon, Jul 31, 2000 at 11:16:19AM +1000 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [moved to -questions] On Monday, 31 July 2000 at 11:16:19 +1000, carl@bl.echidna.id.au wrote: > > I was upgrading 4.-RELEASE to a CVSup'd 4.1 that I sucked down > on Friday last week, and I fillowed the > instructions in the UPDATE file, but I think I made a mistake > rebuilding the devices, as when I reboot I'm getting the > error > > can't fsck /dev/ad0s2a > > From the shell, I can cd into /dev and see that all the ads0's are > there except ad0s2a. My /etc/fstab has that as /, so it's kinda > odd that I can boot it at all? When I try and MAKEDEV /dev/ad0s2a > it complains that it's a read-only filesystem. > > Can anyone make a suggestion for how I can get it back up? This looks like a case for the fixit disk. Boot from CD or installation floppy and select 'fixit' from the main menu. If you don't have the CD-ROM, you'll need a copy of the fixit floppy as well. Then do the following: # mknod /dev/ad0s2a c 116 0x00030000 # fsck -y /dev/ad0s2a # mount /dev/ad0s2a /mnt # mknod /mnt/dev/ad0s2a c 116 0x00030000 After that, you should be able to reboot with no problems. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message