Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 08:55:45 +0100
From:      Polytropon <freebsd@edvax.de>
To:        eras mus <erasmu@gmail.com>
Cc:        freebsd-questions@freebsd.org, Trond =?ISO-8859-1?Q?Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
Subject:   Re:
Message-ID:  <20140107085545.06310df9.freebsd@edvax.de>
In-Reply-To: <CALeO_hO=NaErzsY3N0KuDmzE_WkMwms9pp-L14h=Hb0eheCKtQ@mail.gmail.com>
References:  <CALeO_hORJin5OOkA45fG%2BHFrai6XhPpOob4u-NhnJkLGyorvhA@mail.gmail.com> <20140106182826.28018a2f@X220.alogt.com> <CALeO_hMOhe_Cf0NQa6p0wrHC7LdA7r6SwkZCOUrqjYUO=sPUYA@mail.gmail.com> <alpine.BSF.2.00.1401061303340.24851@mail.fig.ol.no> <CALeO_hO=NaErzsY3N0KuDmzE_WkMwms9pp-L14h=Hb0eheCKtQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 7 Jan 2014 13:05:00 +0530, eras mus wrote:
> Dear List,
> 
> I tried editing /etc/rc.conf file in between server hanged . Now the
> rc.conf is incomplete. There is a line with incomplete quotes.
> So the machine in starting in single user mode  . No editor is working .
> when /usr is mounter ee editor is there. But The file could not be edited
> and saved since it is read only.
> 
> How to overcome this read only mode and edit the file.

This indicates a severe error, as you have correctly observed.
Step 1 is to make / writeable:

	# mount -u /

which is a "shortcut" for

	# mount -u -o rw /

You will also need to mount partitions like /usr to make your
normal editor working (for example /usr/bin/ee):

	# mount /usr

or even

	# mount -a

In case this step is not _possible_, you can still use an editor
present on / (typically /rescue/vi):

	# /rescue/vi /etc/rc.conf

Apply the quotes as required and :wq (write file and quit the
editor). Then you should be able to let the system reboot normally.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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