Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 1999 11:34:12 +0200
From:      Giorgos Keramidas <charon@hades.hell.gr>
To:        James A Wilde <james.wilde@telia.com>
Cc:        freebsd-newbies@freebsd.org
Subject:   Re: readonly filesystem to read-write
Message-ID:  <19991223113412.D8547@hades.hell.gr>
In-Reply-To: <04dc01bf4cbf$e726fde0$8208a8c0@iqunlimited.net>
References:  <04dc01bf4cbf$e726fde0$8208a8c0@iqunlimited.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 22, 1999 at 10:02:48PM +0100, James A Wilde wrote:
| Hi:
| 
| I loaded FBSD 3.1 on an old pentium today.  The network card was not working
| so I
| added some lines to rc.conf.  Unfortunately the first of these lacked the "
| before the value
| so the boot process bombed out at, presumably, single user stage.  No
| editors were available
| except ed but ed couldn't do anything since the file system was readonly.  I
| can't mv the file
| either for the same reason.
| 
| How do I change the state of the file system to read-write so that I can at
| least boot the
| system all the way and then repair the file with vi?

If you use the following command, all the filesystems will be mounted
with the flags that they have in /etc/fstab.  This should fix those
that have been mounted read-only:

	# mount -a -u

Then you can edit your /etc/fstab with your favorite editor, be it
ed(1), vi(1), or anything you prefer.  HOWEVER, please do remember to
umount the filesystems cleanly before hitting the big red button.  If
you do a:

	# umount -a

then you should be ready to go.

On the other hand, if you just want to mount / as read-write, and use
the canonical Unix editor, that is ed(1), to edit your /etc/fstab, you
can do (right after booting and having the root-fs mounted read-only):

	# mount -u /

which will mount it read-write.  The rest of it you know already...

Ciao.

-- 
Giorgos Keramidas, <keramida@ceid.upatras.gr>
"What we have to learn to do, we learn by doing." [Aristotle]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991223113412.D8547>