Syntax error in rc.conf - cannot fix

Erik Trulsson ertr1013 at student.uu.se
Fri Apr 9 14:02:25 PDT 2004


On Fri, Apr 09, 2004 at 03:55:39PM -0500, lrnobs wrote:
> I am setting up a new server so I could just reinstall, but this is a
> learning opportunity.
> 
> I was changing the hostname of the computer.  In rc.conf I apparently left
> the leading " off the name.
> 
> BSD doesn't like this. It stops the boot and allows/forces me to a shell. So
> I found that "cat" shows me the error of my ways.  vi apparently doesn't
> exist or is stored somewhere that I cannot find because "find" does not work
> either.
> 
> I did find "ed" and thought I would be learning how to use it, but alas
> trying to launch it tells me that I have a readonly file system.
> 
> So, is there any way for me to fix my typo, or is reinstall my only option.

Your boot apparently halted before any filesystems had been mounted
yet (except for '/' which is mounted read-only.)

Do a 'mount -u /' to make sure that the root-filesystem is mounted
read/write, and then a 'mount /usr' to mount /usr where vi and find
lives.  Then you should be able to fix rc.conf without much trouble.




-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se


More information about the freebsd-questions mailing list