Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 1997 16:38:46 -0400
From:      "Donald J. Maddox" <root@scsn.net>
To:        un_x@anchorage.net
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: /dev/wd0
Message-ID:  <19970616163846.19218@scsn.net>
In-Reply-To: <33A56DE8.3A10@anchorage.net>; from un_x@anchorage.net on Mon, Jun 16, 1997 at 09:46:32AM -0700
References:  <33A56DE8.3A10@anchorage.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 16, 1997 at 09:46:32AM -0700, un_x@anchorage.net wrote:
> i thought i'd use some new-found intelligence and clean up my
> /dev directory of unused devices, and ended up deleting my
> rwd0 devices ...  now i'm screwed!  i didn't realize they
> were part of wd0 ...
> 
> i can only get a read-only fs now - can i repair this damage?
> or do i have to re-install everything?  (i hope not! :( )

First, boot single-user.  Then:

# mount -o rw /dev/wd0a (or sd0a, if your root is SCSI)
# cd /dev
# sh MAKEDEV all
# sh MAKEDEV wd0s1a
# sh MAKEDEV wd0s2a
# sh MAKEDEV wd0s3a
.
.
.
<repeat for all slices, all disks>

Unfortunately, 'MAKEDEV all' does not recreate 'slice' devices (although it
happily deletes them, last time I checked), so you have to do it by hand.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970616163846.19218>