xfs
[Top] [All Lists]

Re: corrupted partition with grub in hda1

To: George Georgalis <georgalis@xxxxxxxxx>
Subject: Re: corrupted partition with grub in hda1
From: Stephen Lord <lord@xxxxxxx>
Date: 07 Dec 2002 09:24:26 -0600
Cc: christian mueller <christian.mueller1@xxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <31634.1039253054@xxxxxxxxxxxxx>
References: <31634.1039253054@xxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Sat, 2002-12-07 at 03:24, christian mueller wrote:
> Hi,
> 
> on 2002-12-07 7:09:02 George Georgalis wrote:
> > XFS: bad magic number
> > XFS: SB validate failed
> > Kernel panic: VFS Unable to mount root fs on 03:01
> > 
> > Looks like I blew it. Trying to get grub installed, I must have installed
> > it on the root
> > partition not the MBR, corrupting the fs in the process.
> > 
> > So is there a fix? How?
> 
> There are 2 Superblocks on the partition.
> Use 'xfsrepair' (included in the xfsprogs-pck) to fix this.
> It should find the second SB and recover from that.
> The partition has to be unmounted for this action, of course.

It depends how far into the partition grub writes, but right
after the superblock is going to be the root inode. If you are
lucky it will have survived, if not everything in the filesystem
will have been moved into lost+found by repair.

Good luck,

Steve



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