Subject: Re: NetBSD Freezing?
To: Adrian Rollett <acrollet+@andrew.cmu.edu>
From: Paul Goyette <paul@whooppee.com>
List: port-mac68k
Date: 11/22/1997 09:17:44
On Sat, 22 Nov 1997, Adrian Rollett wrote:

> Please take this as a question from an inexperienced sysad and not an
> accusation, but i was curious what reboot -n does, looked it up, and the
> man page sez:
> 
>      -n      If the -n option is specified, the file system cache is not
>              flushed.  This option should probably not be used.
> 
> What is the raison d'etre for reboot -n ?

Well, there are times when you don't want to flush the cache, like just
after you've run fsck on a mount disk!  Otherwise, a cache flush might
well overwrite the good info that fsck puts on the disk with bad info that
had been in the cache.

Personally, I prefer not to run fsck on a mounted disk.  If I have to run
fsck against my root partition, I first ``mount -u -o rdonly /'' to make
the disk read-only and flush the cache.  Then I can run fsck knowing that
a subsequent cache flush won't overwrite anything.  When I'm done, I can
remount the root partition with ``mount -u /''

-----------------------------------------------------------------------------
| Paul Goyette       | PGP Public Key fingerprint:  | E-mail addresses:     |
| Network Consultant |     0E 40 D2 FC 2A 13 74 A0  |  paul@whooppee.com    |
| and kernel hacker  |     E4 69 D5 BE 65 E4 56 C6  |  paul_goyette@ins.com |
-----------------------------------------------------------------------------