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: "Jesse W. Asher" <jasher1@xxxxxxxxxxxxxxx>
Date: Wed, 05 Dec 2001 07:39:25 -0500
References: <Pine.LNX.4.30.0112050252480.28833-100000@anime.net>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2

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.....


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.

-Dan


-- Jesse W. Asher

"They that can give up essential liberty to purchase a little temporary
safety, deserve neither liberty or safety."  - Benjamin Franklin




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