On Fri, Feb 21, 2003 at 04:27:47PM +1030, [EMAIL PROTECTED] wrote:

> Not being familiar with single user mode, I didn't realise that only / was
> mounted in that mode (so why does the handbook put "fsck -p" as the FIRST
> command, before "mount -a" ? <sigh>).

That would be because fsck(8) only works effectively on unmounted file
systems -- it really doesn't need anything else trying to write stuff
to the filesystem while it's trying to fix it.  In fact, in single
user mode the root partition is initially mounted read-only, precisely
so that fsck(8) can fix up the root filesystem without the danger of
writes to the partition at the same time.  It used to be the case that
the instructions explicitly told you to remount the root fs read-write
before doing a 'mount -a', but 'mount -a' has done all of that option
changing stuff for you automatically for several years now.

The new 'background fsck' capability in FreeBSD 5.0 (as I understand
it) relies on the capability to treat the filesystems on the newly
booted machine as 'snapshots', so that modifications to the fs are
held in cache memory and only written out to the disk once the fsck(8)
process has finished cleaning up the underlying stuff.

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to