Subject: Re: bogus "/dev/wd0c: file system not clean (fs_flags=1); please fsck(8)"
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 02/16/2002 14:52:43
In article <MOBYDICKAkK5LqN33HF0000022a@mobydick.int.entrisphere.com>,
Tad Hunt <tad@entrisphere.com> wrote:
>
>I do the following:
>
>	sh# newfs /dev/rwd0c
>	[newfs output elided]
>	sh# mount /dev/wd0c /mnt
>	sh# echo foo > /mnt/xxx
>	sh# mount -u -o ro /mnt
>	/dev/wd0c: file system not clean (fs_flags=1); please fsck(8)
>	sh# fsck /dev/rwd0c
>	** /dev/rwd0c (NO WRITE)
>	** File system is clean; not checking
>	sh#
>
>I don't expect to see that warning, since I'm simply downgrading
>the access to read only, without unmounting the partition.
>
>Furthermore, if I run an fsck at the subsequent shell prompt, it
>tells me the filesystem is clean.
>
>Is this the correct behavior, or am I just on crack?
>
>I'm running NetBSD-1.5.  Is this problem fixed on a more recent
>version?

The NO WRITE should be a hint, unmount it and then try fsck again.

christos