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



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


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



Relevant Pages

  • Re: mounting msdosfs
    ... > I got two msdosfspartitions on my machine. ... > I can mount them without any problems, but fsck wont work. ... determine the order in which file system checks are done at reboot time. ...
    (freebsd-current)
  • fstab entries for external USB hard drives led to fsck.ext3 failure on boot, bug?
    ... 'F!3@$%ing fsck! ... Please repair the file system manually. ... CONTROL-D will terminate this shell and resume system boot. ... were to allow me to quickly mount an external hard drive ...
    (Debian-User)
  • RE: serioup problem after running fsck
    ... I'm not an expert in recovery and I'm not sure you could recover at ... > The easiest and first thing is to run fsck again (although I ... Running it once is no guarantee that the file system ... > shutdown command from the command line or the shutdown menu ...
    (RedHat)
  • Re: fsck - how to use?
    ... I got some lost files and some other file system ... > that there aren't any problems with the files on the disk as a result of the ... > that it is dangerous to run fsck on a mounted partition. ...
    (linux.redhat.misc)
  • Re: [SLE] How do I use fsck????
    ... > it couldn't fsck and that I would have to do it manually. ... in single user mode to fsck root, AND the root file system must be ... root or mounted file system, ...
    (SuSE)