From owner-freebsd-newbies Thu Dec 23 2:58:33 1999 Delivered-To: freebsd-newbies@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 18525155CE for ; Thu, 23 Dec 1999 02:58:21 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from localhost.hell.gr (patr530-a090.otenet.gr [195.167.115.90]) by athserv.otenet.gr (8.9.3/8.9.3) with SMTP id MAA29619 for ; Thu, 23 Dec 1999 12:58:27 +0200 (EET) Received: (qmail 8998 invoked by uid 1001); 23 Dec 1999 09:34:12 -0000 Date: Thu, 23 Dec 1999 11:34:12 +0200 From: Giorgos Keramidas To: James A Wilde Cc: freebsd-newbies@freebsd.org Subject: Re: readonly filesystem to read-write Message-ID: <19991223113412.D8547@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <04dc01bf4cbf$e726fde0$8208a8c0@iqunlimited.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <04dc01bf4cbf$e726fde0$8208a8c0@iqunlimited.net> Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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, "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