xfs
[Top] [All Lists]

Re: How to fsck read-only-mounted root filesystem?

To: "linux xfs ml" <linux-xfs@xxxxxxxxxxx>
Subject: Re: How to fsck read-only-mounted root filesystem?
From: "Ralf G. R. Bergs" <rabe@xxxxxxxxxxxxxx>
Date: Wed, 05 Dec 2001 13:58:06 +0100
Cc: "Jesse W. Asher" <jasher1@xxxxxxxxxxxxxxx>
In-reply-to: <3C0E157D.50502@xxxxxxxxxxxxxxx>
Reply-to: "Ralf G. R. Bergs" <rabe@xxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
[Quote repaired]

On Wed, 05 Dec 2001 07:39:25 -0500, Jesse W. Asher wrote:

>Dan Hollis wrote:
>
>>How can one xfs_check/xfs_repair a root filesystem?
>>
>>If you try this, even from singleuser mode where / is mounted read-only,
>>the utilities whinge about the filesystem being mounted, and refuse to
>>touch the disk at all.
>>
>>I have an xfs filesystem with some corruption from (I think) bad dma.
>>There's some directories which xfs won't let me remove. And with no way
>>to repair the filesystem :-( :-( this sux.
>>
>>Seems to me that repairing a read-only mounted filesystem should be
>>allowed?!? e2fsck allows it.
>
>You have to remount it on the fly.  Look at the man page for "mount" and 
>look at the remount option.  You should be able to do something like 
>"mount -o remount,rw /"  or some such.  I'm not sure this is the exact 
>syntax, but you should be able to figure it out.....

I guess you should have another look at the original message -- your answer 
simply does not apply to Dan's question.

-- 
Verkaufe Original-BMW-Raeder:                    L I N U X       .~.
http://adsl-bergs.rz.rwth-aachen.de/~rabe       The  Choice      /V\
                                                 of a  GNU      /( )\
                                                Generation      ^^-^^



<Prev in Thread] Current Thread [Next in Thread>