fsck

Nikos Vassiliadis nvass at teledomenet.gr
Mon May 15 05:51:42 PDT 2006


On Monday 15 May 2006 15:00, gareth wrote:
> hi, this box has had far too many hard reboots, but can anyone shed some
> light on whether this's inconsistent? i boot into single user mode,

 everything is mounted read-only, 

> run fsck and fix all the partitions. rerunning fsck shows no more problems.
> mounting the filesystems and running fsck shows no problems. but when
> i reboot into normal mode,

 where everything is mounted read-write for normal use

> and run fsck on these 2 particular partitions: 
> (and rebooting into single user mode again doesn't help).
>

You cannot fsck a read-write mounted filesystem. The kernel is using it and
will be in a state where fsck will think it has errors. Umount the filesystem
first, check it then. Αlternatively you can snapshot it, and fsck -n the_snapshot

HTH, Nikos


More information about the freebsd-stable mailing list