Boot failure
Erik Trulsson
ertr1013 at student.uu.se
Fri Aug 7 17:04:32 UTC 2009
On Fri, Aug 07, 2009 at 12:26:10PM -0400, Identry wrote:
> >> Should I use any flags? Should I mount the filesystems read write or read only?
> >
> > You should never fsck a filesystem when its mounted!
>
> Ah... glad I asked.
Actually it is only when a filesystem is mounted read-write that you must
not run fsck on it.
Running it on a filesystem which is mounted read-only should be OK.
(Otherwise we would all be in a lot of trouble since when fsck is run
normally during the startup sequence the root filesystem (/) is mounted
read-only, and is in fact where the fsck binary is loaded from.)
>
> > I think you should start by reading the manual pages for fsck and
> > fsck_ffs. I would start with 'fsck_ffs -fp /dev/yourdevicenode'.
>
> Okay, that makes sense, and is simpler than what I was planning. I
> have a long train ride, so I'm going to print out and read those man
> pages, and whatever I can find in the Handbook, and maybe there's some
> info in my Absolute FreeBSD book...
>
> > If this command quits with errors, you might try fsck_ffs without flags,
> > or 'fsck_ffs -y' to have it try and repair all damage that it finds.
>
> Excellent. Thanks for all your advice Roland.
> _______________________________________________
> 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"
--
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se
More information about the freebsd-questions
mailing list