xfs
[Top] [All Lists]

Re: fatal error -- couldn't initialize XFS library

To: stimits@xxxxxxxxxx
Subject: Re: fatal error -- couldn't initialize XFS library
From: Steve Lord <lord@xxxxxxx>
Date: Thu, 28 Jun 2001 09:13:32 -0500
Cc: linux-xfs@xxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
OK, I had a problem on a system here doing some extreme testing, and 
had to attempt a repair on a root filesystem myself - from a remote
location.

I have managed to make xfs_repair -n run, here is what I did:

1. Boot the system single user, I used this:

xfs-2.4.6 ro root=/dev/hda1 init=/bin/sh

2. remount the root filesystem read/write:

/bin/mount -o remount,rw /dev/hda1

3. edit /etc/mtab and make sure that / shows up with a ro mount:

/dev/hda1 / xfs ro 0 0

4. remount the filesystem readonly:

/bin/mount -o remount,ro /dev/hda1

You can now run xfs_repair -n on the filesystem, it will still not let
you do an actual repair on it.


Steve

p.s.

I faked the header here, so it will not show up as a followup.


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