From owner-freebsd-questions Fri May 3 1: 1:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id D6E9737B404 for ; Fri, 3 May 2002 01:01:18 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 3 May 2002 09:01:17 +0100 (BST) To: Zach Johnson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: can't write-mount / to change fstab In-Reply-To: Your message of "Fri, 03 May 2002 06:23:59 -0000." Date: Fri, 03 May 2002 09:01:17 +0100 From: Ian Dowse Message-ID: <200205030901.aa20608@salmon.maths.tcd.ie> 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 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