Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2000 00:55:36 -0400
From:      David David <ddavid@ican.net>
To:        "Gruen, Robert" <gruen@engr.sc.edu>
Cc:        "'questions@FreeBSD.org'" <questions@FreeBSD.org>
Subject:   Re: rc.conf
Message-ID:  <38F55348.1D1BD8C2@ican.net>
References:  <D8AB9C5548AED211928B0090273CDDD7028CA77C@mailbox.engr.sc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
"Gruen, Robert" wrote:
> 
> I was trying to configure my computer on a private disconnected network with
> a static ip address within the 192.168 domain.  I however forgot to put a
> closing quote on one of the lines I added to rc.conf.  Now when I boot up,
> the boot loader reports a syntax error in rc.conf and is asking me for a
> path to the shell or hit RETURN /bin/sh.  I cannot get past this point, I
> need to fix the syntax error in the rc.conf file.  I also need some help
> setting up the computer for the static IP address.  Please let me know if
> you can help me.
 

how about, at the boot promp ( at the point it says booting in ???
secounds, hit any key other than enter) hit a key other than enter ( I
use the space bar myself)

type " boot -s "

this will load the kernel,

then:
--->fsck -p --check file systems
    mount -u / -- mount root file system
    mount -a -t ufs -- mount all other file systems in fstab
    swapon -a --not sure you need the swap partitions to edit the file

then at the prompt, cd to where the file is, then use the editor "ee
what_ever_file"
edit the rc.conf file, save it, shutdown -r now, and start up as normal

I use this when i do makeworld, see no problem of doing the same too
edit that file and reboot. does anyone else thing this would work?

David


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38F55348.1D1BD8C2>