From owner-freebsd-questions Sat Jun 24 13:12:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from corinth.bossig.com (mail.dohboys.com [208.26.253.10]) by hub.freebsd.org (Postfix) with ESMTP id 6073737B730 for ; Sat, 24 Jun 2000 13:12:49 -0700 (PDT) (envelope-from kstewart@3-cities.com) Received: from 3-cities.com (unverified [208.26.241.61]) by corinth.bossig.com (Rockliffe SMTPRA 4.2.2) with ESMTP id ; Sat, 24 Jun 2000 13:14:02 -0700 Message-ID: <39551637.C9082591@3-cities.com> Date: Sat, 24 Jun 2000 13:12:39 -0700 From: Kent Stewart Organization: BOSSig (BOSS Internet Group) X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Doug Barton Cc: John Daniels , freebsd-questions@freebsd.org Subject: Re: HELP! unbootable due to rc.conf References: <20000613191506.78143.qmail@hotmail.com> <39468D51.58991339@3-cities.com> <3955136C.9A43A164@gorean.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Barton wrote: > > For future reference, all questions belong on -questions. Cross posting > is frowned on. > > Kent Stewart wrote: > > > > John Daniels wrote: > > > > > > Hi: > > > > > > I forgot to add a quote mark in rc.conf. Now my system will not boot fully. > > > It takes me to a shell prompt from which I can move around the system > > > ("cd") and execute simple commands like "ls" but I can't bring up an editor > > > (I tried vi and ee) and when I tried to use mv to rename rc.conf (thinking > > > that the system would boot with only the settings in /etc/defaults/rc.conf), > > > the system responded that the drive was read-only. > > > > > > What can I do to get my system booting properly again? > > > > You have to mount /. The last time I did this was 3 or 4 weeks ago and > > a "mount -a" in single user mode worked. Then you correct your rc.conf > > error. I rebooted at this point. > > Make sure to type 'fsck -p' before you do the 'mount -a'. You should > never try to mount a file system if it's not clean. Also, if you are in > single user mode and want to go directly to multi-user mode, just type > 'exit'. Conversely, if you are in multi-user mode and want to drop into > single user mode without rebooting, all you need to do is type > 'shutdown'. I've never edited my rc.conf, rebooted, and had the file system come up dirty. But it is a good idea. I've had real problems with 4.0 and UDMA drives if they come up dirty. Do all of the drivers get loaded if you have screwed up your rc.conf and the boot stops in single user mode, edit it, and then exit. If you are just trying to edit something in your rc.conf, can your shutdown to single user and exit to bring it into use. Rebooting seems like overkill but cleaner. Kent > > HTH, > > Doug > -- > "Live free or die" > - State motto of my ancestral homeland, New Hampshire > > Do YOU Yahoo!? -- Kent Stewart Richland, WA mailto:kstewart@3-cities.com http://www.3-cities.com/~kstewart/index.html FreeBSD News http://daily.daemonnews.org/ SETI(Search for Extraterrestrial Intelligence) @ HOME http://setiathome.ssl.berkeley.edu/ Hunting Archibald Stewart, b 1802 in Ballymena, Antrim Co., NIR http://www.3-cities.com/~kstewart/genealogy/archibald_stewart.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message