Re: can't mount XFS from a read-only device

Eric Sandeen
2009-10-09T19:27:23Z

Emmanuel Florac wrote:
> Le Fri, 09 Oct 2009 13:59:13 -0500 vous écriviez:
>
>> try mount -o norecovery (and maybe -o nobarrier)
>
> Thank you, that worked.
>
> I can't help but think that when given the "ro" option, XFS shouldn't
> try to write a single bit to the underlying device, or else what's the
> point?

For a dirty log, we do still recover -unless- the underlying device is
RO. Otherwise you get a corrupt fs mounted ro.... other filesystems do
the same thing, FWIW.

For a clean log I agree; what kernel was this? I vaguely remember a fix
in this area.

Which option solved it? (norecovery I'm guessing)

-Eric