Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 2009 18:57:08 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Identry <jalmberg@identry.com>
Cc:        Roland Smith <rsmith@xs4all.nl>, freebsd-questions@freebsd.org
Subject:   Re: Boot failure
Message-ID:  <20090807165707.GA51779@owl.midgard.homeip.net>
In-Reply-To: <4d4e09680908070926y40c6463au2666fd0b085ab3af@mail.gmail.com>
References:  <4d4e09680908061012q6ea8aeacm875c556eaea7a54f@mail.gmail.com> <4A7B1B41.7090507@unsane.co.uk> <4d4e09680908061733v21602321x252a7111a7648ad6@mail.gmail.com> <4A7C074C.9060303@unsane.co.uk> <4d4e09680908070825h6f42e692t8cf0baa4f10f9cc@mail.gmail.com> <20090807154009.GB39621@slackbox.xs4all.nl> <4d4e09680908070926y40c6463au2666fd0b085ab3af@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



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