[Top] [All Lists]

Re: Create superblock

To: metaverse <metaverse@xxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
Subject: Re: Create superblock
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Fri, 20 Jun 2014 09:27:00 -0500
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1403246832932-35023.post@xxxxxxxxxxxxx>
References: <1403246832932-35023.post@xxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
On 6/20/14, 1:47 AM, metaverse wrote:
> Last week a harddrive in a NAS crashed in our office.  Long story short: We
> have been trying everything. In the end we where able to pull an image of
> the hard drive. Also we found out there's no superblock or secondary blocks.
> Since I have recovered successfully the data I was wondering if it was
> possible to create a new superblock and secondary block. If not I'll create
> a new partition and place all the data back. 

Not really enough info to go on here.  How did you recover the data if
you have no valid superblock?

If you've got your data back, just mkfs a fresh filesystem and repopulate it.

Or by "recovered the data" do you just mean you have a dd image of the broken

> Scary that only a power outage can do this...

It shouldn't, unless the storage was configured in an unreliable way.

> TL;DR: Is it possible to create a new superblock from scratch?

Not in general, but rather than jumping to the proposed solution, perhaps
it would be better to describe the problem in detail:


At an absolute bare minimum, what happened when you ran xfs_repair?


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