Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2004 05:51:23 -0800
From:      Joshua Lokken <joshua@twobirds.us>
To:        freebsd-questions@freebsd.org
Subject:   Re: SIngle User Mode Help
Message-ID:  <20040306135123.GA55765@voyager.swabbies.org>
In-Reply-To: <200403051516.i25FGQZ25312@clunix.cl.msu.edu>
References:  <0HU3000VYHSO4G@mmp-3.gci.net> <200403051516.i25FGQZ25312@clunix.cl.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Jerry McAllister <jerrymc@clunix.cl.msu.edu> [2004-03-06 02:42]:
> > 
> > Hey Guys,
> > 
> > I'm constantly botching up my fstab file and the system will fail to boot
> > correctly. I've learned to create a working fstab and call is fstab.orig
> > which I can overwrite the botched file if I end up in Single User Mode...
> 
> You're right to make a copy before tinkering.
> 
> > I can't find any info on Single User Mode to help me:
> > 
> > - I use mount -u / to mount the filesystem as read/write
> 
> That is correct, but, of course, it only gets the root (/) filesystem
> mounted.   You may need stuff on other ones, especially /usr.
> 
> Try doing 
>    fsck /usr
>    mount /usr    or   mount /dev/d0s1f /usr   or whatever slice and
>                                               partition you have /usr on
> 
> > - I cannot access any editors like vi or pico (my personal) favorite once in
> > single user mode... Why?
> 

Or, to make things easier:

prompt# fsck -p
prompt# mount -u /
prompt# mount -a -tufs

just like pre-buildworld...

-- 
Joshua

Another war ... must it always be so?  How many comrades have we lost
in this way? ...  Obedience.  Duty.  Death, and more death ...
		-- Romulan Commander, "Balance of Terror", stardate 1709.2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040306135123.GA55765>