Date: Tue, 30 Nov 2004 18:35:32 -0600 From: "Conrad J. Sabatier" <conrads@cox.net> To: "David Kelly" <dkelly@hiwaay.net> Cc: questions@freebsd.org Subject: Re: Help with rc.conf error, read-only file system Message-ID: <20041130183532.05a1960a@dolphin.local.net> In-Reply-To: <4105.207.111.173.106.1101855843.squirrel@webmail.dogbark.com> References: <41ACF2BD.9000706@earthlink.net> <4105.207.111.173.106.1101855843.squirrel@webmail.dogbark.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Nov 2004 17:04:03 -0600 (CST), "David Kelly" <dkelly@hiwaay.net> wrote: > > I've been away from FreeBSD for a while and I just loaded 5.3 and > > inavertently made an error in rc.conf. Now when I boot up the file > > system is read-only and I haven't been able to edit rc.conf to > > correct the simple mistake. Any help would be appreciated. Once you reach the single-user shell prompt, do this: mount -u / (changes root filesystem from read-only to read/write) mount -a (attempts to mount any other filesystems in /etc/fstab) If any filesystem fails to mount, run "fsck -y" on it, then try mounting it again. > "mount -a" to attempt mounting all filesystems. Use "fsck -y" on the > ones mount refuses to do. These days "background fsck" usually applies > automatically meanwhile one gets to use the filesystems instantly. Not in single-user mode it doesn't. > Just for fun you can type "mount" by itself at any time to list > mounted filesystems and some interesting properties such as R/W and > softupdates. > > Manually you could remount root with "mount /" to make it R/W. Then > "mount/usr" so as to have vi, which will complain (but still function) > about/var not being mounted and therefore no backup copy for crash > recovery. > > Use "exit" to resume multiuser boot out of single user. > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > -- Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041130183532.05a1960a>