SIngle User Mode Help

Joe Pokupec joepok at ninestar.com
Fri Mar 5 22:54:21 PST 2004


Thanks for the many posts guys. I understand the concept of mounting the
/usr partition. Actually, the "mount -a" worked even though the fstab was
mucked up. I didn't realize that single user mode doesn't mount the slices
by default... but it all makes sense now.

Thanks

Joe

-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Jerry McAllister
Sent: Friday, March 05, 2004 7:55 AM
To: Joshua Lokken
Cc: freebsd-questions at freebsd.org
Subject: Re: SIngle User Mode Help

> 
> * Jerry McAllister <jerrymc at 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     or   fsck  /dev/d0s1f 
> >    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

Except this might not work if he has bollixed up his fstab as indicated
in the original question.

> prompt# mount -u /
> prompt# mount -a -tufs

This might not wokr either with a bad fstab.

but doing it for specific devices to specific mount points should work
even with a messed up fstab.

////jerry

> 
> 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
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
> 

_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list