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
|