[Top] [All Lists]

Re: Booting off XFS, lilo corruption?

To: Gordon Henderson <gordon@xxxxxxxxxx>
Subject: Re: Booting off XFS, lilo corruption?
From: Keith Owens <kaos@xxxxxxx>
Date: Mon, 28 Jul 2003 23:24:11 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "Mon, 28 Jul 2003 13:48:02 +0100." <Pine.LNX.4.56.0307272142230.13820@xxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Mon, 28 Jul 2003 13:48:02 +0100 (BST), 
Gordon Henderson <gordon@xxxxxxxxxx> wrote:
>(in lilo.conf:
>  boot=/dev/md1
>  root=/dev/md1
>  raid-extra-boot=/dev/hda,/dev/hdc
>in fstab:
>/dev/md1        /               xfs    errors=remount-ro       0       1

Lilo and XFS coexist but only if lilo writes to the start of the disk,
_NOT_ the start of the XFS partition.  XFS keeps its superblock at the
start of each partition, if anything overwrites that superblock that it
breaks the XFS filesystem.  All systems have XFS / and lilo works fine,
with boot=/dev/hda, not boot=/dev/hda1.

BTW,. you should be able to run xfs_repair on the broken filesystem and
recover your data, xfs_repair will seach for a secondary superblock and
reconstruct the one that lilo stamped on.  Since this is /, you will
need to boot an emergency system such as the install CD booted with
'linux rescue' then run xfs_repair on md1.

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