Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2000 05:06:59 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Tom Vollmer <vollmert@mindspring.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Problem
Message-ID:  <20000412050658.B16060@hades.hell.gr>
In-Reply-To: <000801bfa40d$168f3f80$0b0000c0@mindspring.com>; from vollmert@mindspring.com on Tue, Apr 11, 2000 at 04:24:28PM -0700
References:  <000801bfa40d$168f3f80$0b0000c0@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 11, 2000 at 04:24:28PM -0700, Tom Vollmer wrote:

> I made an error in the /etc/rc.conf file.  I quote character was not
> inserted after the hostname parameter.  Now, the machine stops when
> parsing the file and I can only get to a '#' prompt.  I can't get
> prompted for login and I do not have enough rights to fix the file.

That is because the first time that /etc/rc.conf is read, the root
filesystem is still mounted read-only.  You have to mount it read-write
first, and then use your favorite editor to change whatever it is that
bit you :)

> Can I get procedure to get enough rights to put the quote character
> in?  Hopefully, I won't have to reinstall the OS.  Thanks,

You don't have to reinstall anything.  Just do the following things:

        - Boot your system, and wait until you get the # prompt.

        - Mount your root-filesystem read-write:

                # mount -u /

        - Mount /usr, /var, and what else you keep in separate
          partitions, at this spot.  I have /usr and /usr/home on
          separate partitions, and I have to do at this spot:

                # mount /usr
                # mount /usr/home

        - Edit /etc/rc.conf and correct the mistake.

        - Exit from the single-user mode shell, and let the system try
          to boot itself normally:

                # exit

You should be fine, after all this.

-- 
Giorgos Keramidas, < keramida @ ceid . upatras . gr >
"Pessimists are just optimists, who got burnt at least once."


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?20000412050658.B16060>