From owner-freebsd-questions Tue Aug 1 9:40: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web2.sea.nwserv.com (web2.sea.nwserv.com [216.145.16.2]) by hub.freebsd.org (Postfix) with ESMTP id 558C137BE66 for ; Tue, 1 Aug 2000 09:39:54 -0700 (PDT) (envelope-from dpk@nwserv.com) Received: from localhost (dpk@localhost) by web2.sea.nwserv.com (8.9.3/8.9.2) with ESMTP id JAA20800; Tue, 1 Aug 2000 09:39:47 -0700 (PDT) (envelope-from dpk@nwserv.com) Date: Tue, 1 Aug 2000 09:39:47 -0700 (PDT) From: David Kirchner X-Sender: dpk@web2.sea.nwserv.com To: erik witkop Cc: freebsd-questions@FreeBSD.ORG Subject: Re: I hosed myself as always In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Envelope-To: ewitkop90@hotmail.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 Aug 2000, erik witkop wrote: > > I think it is fixable though. I edited my rc.conf file and now on reboot > I get this. > > /etc/rc.conf:22 :syntax error:unterminated quote. > enter full pathname of shell or RETURN for /bin/sh: > > I pressed return but I cannot do any commands to fix it from that prompt. You have several options at this point I believe. Some of them include: a) Editing rc.conf with /bin/ed - it's a line editor, rather terse, but it's very useful for this sort of thing. Every sysadmin should know how to use it, just in case... b) You can also manually mount your partitions (mount -a is the fastest way). Then you can use your default editor. This option is not always available (and sometimes the boot process fails because autoboot can't mount /usr), so a) is still a good one to learn. > Where is my shell by default. Anyy ideas what the correct path is? Maybe I spoke too soon above. Will /bin/sh run? If it gives you some sort of execution error, did you install a new kernel? If so, boot with the old kernel and make sure to update /bin/sh from /usr/src. If you didn't install a new kernel, I don't know what to suggest off the top of my head. -- David Kirchner, dpk@nwserv.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message