Date: Fri, 3 May 2002 18:55:25 +0000 (GMT) From: Zach Johnson <n74@74international.com> To: Ian Dowse <iedowse@maths.tcd.ie> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: can't write-mount / to change fstab Message-ID: <Pine.LNX.4.21.0205031847590.28474-100000@winston.dreamhost.com> In-Reply-To: <200205030901.aa20608@salmon.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
You sir, are most helpful indeed. Did I mention I love you? Zach On Fri, 3 May 2002, Ian Dowse wrote: > 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?Pine.LNX.4.21.0205031847590.28474-100000>