Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 May 2006 15:48:22 +0300
From:      Nikos Vassiliadis <nvass@teledomenet.gr>
To:        freebsd-stable@freebsd.org
Cc:        gareth <bsd@lordcow.org>, stable@freebsd.org
Subject:   Re: fsck
Message-ID:  <200605151548.23090.nvass@teledomenet.gr>
In-Reply-To: <20060515120057.GA4759@lordcow.org>
References:  <20060515120057.GA4759@lordcow.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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