From owner-freebsd-questions Fri May 3 11:55:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dot.dreamhost.com (dot.dreamhost.com [216.240.131.10]) by hub.freebsd.org (Postfix) with ESMTP id 251D137B42A for ; Fri, 3 May 2002 11:55:26 -0700 (PDT) Received: from winston.dreamhost.com (winston.dreamhost.com [216.240.131.38]) by dot.dreamhost.com (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id g43ItPg2008224; Fri, 3 May 2002 11:55:25 -0700 Received: from localhost (n74@localhost) by winston.dreamhost.com (8.11.0/8.9.3/Debian 8.9.3-21) with ESMTP id g43ItPs32042; Fri, 3 May 2002 11:55:25 -0700 X-Authentication-Warning: winston.dreamhost.com: n74 owned process doing -bs Date: Fri, 3 May 2002 18:55:25 +0000 (GMT) From: Zach Johnson X-Sender: n74@winston.dreamhost.com To: Ian Dowse Cc: freebsd-questions@FreeBSD.ORG Subject: Re: can't write-mount / to change fstab In-Reply-To: <200205030901.aa20608@salmon.maths.tcd.ie> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You sir, are most helpful indeed. Did I mention I love you? Zach On Fri, 3 May 2002, Ian Dowse wrote: > In message , Za > ch Johnson writes: > >In single user I can SEE fstab in /etc but I can't change it since I'm > >mounted in read-only. And I can't do a mount -u / since it tells me the > >current device doesn't match fstab. And I an't do a mount -u > >/dev/foo / since it tells me that /dev/foo doesn't > >exist!! But I can't CREATE /dev/foo since / is mounted > >read-only!!! > > > >How the heck am I going to change fstab and create the dev's I need so I > >can mount the rest of my file system? > > The normal way to fix this is to use a shell from a fixit floppy > or the installation CD, but there is a trick you can use: > > mount_mfs -T fd1440 none /mnt > cd /mnt > sh /dev/MAKEDEV foo > mount -u -o rw /mnt/foo / > cd /dev > sh /dev/MAKEDEV foo > > This makes the new device node on an MFS filesystem, which is enough > to remount / read-write to create the missing device nodes. > > Ian > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message