From owner-freebsd-questions Thu Mar 5 19:04:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA06859 for freebsd-questions-outgoing; Thu, 5 Mar 1998 19:04:33 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jason01.u.washington.edu (root@jason01.u.washington.edu [140.142.70.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA06846 for ; Thu, 5 Mar 1998 19:04:24 -0800 (PST) (envelope-from durang@u.washington.edu) Received: from goodall2.u.washington.edu (durang@goodall2.u.washington.edu [140.142.12.168]) by jason01.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.05) with ESMTP id TAA19326; Thu, 5 Mar 1998 19:04:16 -0800 Received: from localhost (durang@localhost) by goodall2.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.04) with SMTP id TAA46798; Thu, 5 Mar 1998 19:04:16 -0800 Date: Thu, 5 Mar 1998 19:04:16 -0800 (PST) From: "K. Marsh" To: Greg Lehey cc: questions@FreeBSD.ORG Subject: Re: ./MAKEDEV sd0 hosed my filesystem In-Reply-To: <19980305145345.35667@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 5 Mar 1998, Greg Lehey wrote: > On Wed, 4 March 1998 at 20:02:51 -0800, K. Marsh wrote: > > Hi. I really have two questions. First, I ignorantly ran MAKEDEV on my > > one and only scsi hard disk, sd0. Now booting mounts only the root > > partition. Is there an easy way to recover from this? > > Try first listing your /etc/fstab (should still work), and compare the > file names there with what you have in /dev. Before you can modify > things in /dev, you need to mount root read/write. Normally you do > that with > > # mount -u / > > but this may not work if you've hosed the device entries. In that > case, you may be a candidate for the fixit floppy. > > Once you have got that up and running, you should be able to remake > the SCSI nodes with, say, > > # cd /dev > # ./MAKEDEV sd0 > > Choose the highest device number you need. I wasn't sure what you meant by "compare" fstab with /dev. I was surprised to see you recommend running ./MAKEDEV sd0 because that is exactly what hosed my system in the first place. I think you may have over-estimated my knowledge of FreeBSD. Anyway, going on your clues, I figured out that what I needed to do was to run './MAKEDEV sd0' followed by './MAKEDEV sd0s3a'. This created sd0s3a through sd0s3h, which is exactly what I needed. Now she boots up fine. Thanks very much for your help! Ken Marsh University of Washington durang@u.washington.edu Chemical Engineering To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message