From owner-freebsd-questions Mon Jun 16 13:39:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA29561 for questions-outgoing; Mon, 16 Jun 1997 13:39:08 -0700 (PDT) Received: from mail.scsn.net (scsn.net [206.25.246.12]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA29553 for ; Mon, 16 Jun 1997 13:39:05 -0700 (PDT) Received: from cola119.scsn.net ([206.25.247.119]) by mail.scsn.net (Post.Office MTA v3.1 release PO203a ID# 0-32322U5000L100S10000) with ESMTP id AAA159; Mon, 16 Jun 1997 16:30:51 -0400 Received: (from root@localhost) by cola119.scsn.net (8.8.5/8.8.5) id QAA00945; Mon, 16 Jun 1997 16:38:47 -0400 (EDT) Message-ID: <19970616163846.19218@scsn.net> Date: Mon, 16 Jun 1997 16:38:46 -0400 From: "Donald J. Maddox" To: un_x@anchorage.net Cc: freebsd-questions Subject: Re: /dev/wd0 Reply-To: dmaddox@scsn.net References: <33A56DE8.3A10@anchorage.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <33A56DE8.3A10@anchorage.net>; from un_x@anchorage.net on Mon, Jun 16, 1997 at 09:46:32AM -0700 Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 . . . 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.