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?