Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Mar 1998 19:04:16 -0800 (PST)
From:      "K. Marsh" <durang@u.washington.edu>
To:        Greg Lehey <grog@lemis.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: ./MAKEDEV sd0 hosed my filesystem
Message-ID:  <Pine.A41.3.95b.980305185659.57942A-100000@goodall2.u.washington.edu>
In-Reply-To: <19980305145345.35667@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.A41.3.95b.980305185659.57942A-100000>