i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

Henry Olyer henry.olyer at gmail.com
Sat May 7 02:36:55 UTC 2011


I had an old FBSD 7.2 CD. good enough for this I thought.

I booted from that but now I need to mount the file systems on my hard
drive.  How do I do that?

I agree,, once I get the /etc file system mounted I can edit the file.

Okay, next..

How do I do an fsck on the /usr file system when coming up?




On Fri, May 6, 2011 at 10:32 PM, Ryan Coleman <editor at d3photography.com>wrote:

> Boot to a boot disk.. anything... CD, DVD, USB
>
> Load up vi - you can probably do this from a live linux distro.
>
> Unedit the line.
>
> Save.
>
> Quit.
>
> Reboot.
>
> You're golden.
>
>
> On May 6, 2011, at 9:06 PM, Henry Olyer wrote:
>
> > Woe is me.
> >
> > First, I simply messed up, happens to us all from time to time.  I lost
> > power on an laptop running 8.2.
> >
> > Restarted it but for some reason the fsck didn't run and I lost some /usr
> > files.
> >
> > I tried to do an fsck manually but because it's mounted I got nowhere.
>  So I
> > put a comment ("#") in front of the /usr line for the /etc/fstab file.
> >
> > Now, I can't boot.
> >
> > I need what's on my disk -- of course!
> > _______________________________________________
> > 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