Date: Fri, 03 May 2002 09:01:17 +0100 From: Ian Dowse <iedowse@maths.tcd.ie> To: Zach Johnson <n74@74international.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: can't write-mount / to change fstab Message-ID: <200205030901.aa20608@salmon.maths.tcd.ie> In-Reply-To: Your message of "Fri, 03 May 2002 06:23:59 -0000." <Pine.LNX.4.21.0205030614390.29007-100000@winston.dreamhost.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.LNX.4.21.0205030614390.29007-100000@winston.dreamhost.com>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200205030901.aa20608>