From owner-freebsd-hackers Mon Jul 30 8:18: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 4DA1937B401 for ; Mon, 30 Jul 2001 08:17:56 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f6UFHoF83676; Mon, 30 Jul 2001 09:17:50 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.4) with ESMTP id f6UFHow36692; Mon, 30 Jul 2001 09:17:50 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200107301517.f6UFHow36692@harmony.village.org> To: Rohit Grover Subject: Re: messed up /etc/rc.conf Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Mon, 30 Jul 2001 07:55:44 PDT." <01073007591802.01042@tiltill.panasas.com> References: <01073007591802.01042@tiltill.panasas.com> Date: Mon, 30 Jul 2001 09:17:50 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <01073007591802.01042@tiltill.panasas.com> Rohit Grover writes: : I made a mistake while modifying my /etc/rc.conf. I forgot to : put the terminating quote for a string. Now, my machine fails to boot : correctly. Upon boot, it gives me an option to launch a shell to : correct the problem. Interestingly, / is mounted as read-only and so : I cannot correct /etc/rc.conf. Please help. Your best bet is to boot singlue user, then do fsck -p /; mount -uw /; mv /etc/rc.conf /etcrc.conf-; reboot; correct the problem; reboot Or fsck -p / mount -uw / fsck -p /var mount /var fcsk -p /usr mount /usr vi /etc/rc.copnf Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message