xfs
[Top] [All Lists]

Re: fsck.xfs on ro mounted disks

To: linux-xfs@xxxxxxxxxxx
Subject: Re: fsck.xfs on ro mounted disks
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Wed, 16 Apr 2003 23:21:05 -0800
In-reply-to: <20030416131226.GA22004@xxxxxxxxxxxxx>
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <20030414112911.GA8577@xxxxxxxxxxxxx> <20030415101506.GB4499@xxxxxxxxxxxxxxx> <20030416131226.GA22004@xxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Wed, Apr 16, 2003 at 03:12:26PM +0200, Valentijn Sessink wrote:
> At Tue, Apr 15, 2003 at 02:15:06AM -0800, Ethan Benson wrote:
> > > Is there a way to force xfs_repair to work on a read only fs?
> > xfs_check -f works on readonly filesystems (read/write too, but will
> 
> Yes, you're right, my fault: I checked with a "rw" entry in /etc/mtab, which
> makes xfs_check think the fs is r/w mounted (as far as I can see).

yes libxfs checks /etc/mtab for this information.

> Ehm, as far as I understand, this will not help me repair a disk as
> xfs_repair -n does not repair anything - or does it?

correct, you can only repair a fully unmounted filesystem with
xfs_repair, that means you cannot repair the root filesystem unless
you boot from an alternate root.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpqtkdszvOF4.pgp
Description: PGP signature

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