From owner-freebsd-questions Tue Feb 26 10:25:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from field.videotron.net (field.videotron.net [205.151.222.108]) by hub.freebsd.org (Postfix) with ESMTP id 8A61637B494 for ; Tue, 26 Feb 2002 10:24:39 -0800 (PST) Received: from windows ([24.201.83.93]) by field.videotron.net (Sun Internet Mail Server sims.3.5.1999.12.14.10.29.p8) with ESMTP id <0GS500K7UKH2G6@field.videotron.net> for freebsd-questions@FreeBSD.ORG; Tue, 26 Feb 2002 13:24:38 -0500 (EST) Date: Tue, 26 Feb 2002 13:25:03 -0500 From: Sandro Mancuso Subject: Re: Damaged rc.conf file To: freebsd-questions@FreeBSD.ORG Message-id: <000901c1bef2$e86cebe0$6400a8c0@windows> MIME-version: 1.0 X-Mailer: Microsoft Outlook, Build 10.0.2616 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable Importance: Normal X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Priority: 3 (Normal) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mount -a That will get your filesystem mounted real quick, then from there go edit that rc.conf and reboot. That'll get you out of single user I have many fond memories of when I was in complete panic over that... I used to reformat the first few times, LOL > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-=20 > questions@FreeBSD.ORG] On Behalf Of Daniel Lees > Sent: February 26, 2002 1:03 PM > To: freebsd-questions@FreeBSD.ORG > Cc: danlees@earthlink.net > Subject: Damaged rc.conf file >=20 > I was editing my rc.conf file and screwed it up. I'm > getting these errors: >=20 > "Mounting root from ufs:/dev/ad0s2a" > "/etc/rc.conf: 15: Syntax error: Unterminated > quoted string" >=20 > "Enter full pathname of shell or Return for /bin/sh:" >=20 > When I enter "/bin/tcsh" to get to a shell with some > decent commands I get these errors: >=20 > "sh: Cannot open /etc/termcap" > "sh: using dumb terminal settings" >=20 > I cannot get to root and I cannot edit any files. > When I try to "ed rc.conf" so I can fix the file I get > the reply: >=20 > "/tmp/ed.nxI103: Read-only file system" >=20 > I'm currently running FreeBSD 4.3. I've considered > fdisking, formatting, and installing 4.5. What should > I do? Thanks in advance for any help. >=20 >=20 > Daniel >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games=20 > http://sports.yahoo.com >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message