xfs
[Top] [All Lists]

Re: how cant I rebuild the superblock

To: sven@xxxxxxxxxxxxx
Subject: Re: how cant I rebuild the superblock
From: Steve Lord <lord@xxxxxxx>
Date: Wed, 30 Mar 2005 07:36:40 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <31664352.1112187616210.OPEN-XCHANGE.WebMail.wwwrun@postgirl>
References: <31664352.1112187616210.OPEN-XCHANGE.WebMail.wwwrun@postgirl>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324)
Sven Gehr wrote:
Hi@all,

is there a option available to rebuld the superblock? with reiserfs i an
option exist --rebuild-sb.

with best regards
sven



You could make a sparse file the same size as the partition, do a mkfs on the file, then dd the first 512 bytes out to the disk.

However, there is other data stored right after the superblock which is
the head of the free space trees for the first part of the disk. The
root inode is not too far in either. So if you lost more of the
filesystem than the super block, things could be in a sorry state.

Steve


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