Create superblock
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.
Scary that only a power outage can do this...
TL;DR: Is it possible to create a new superblock from scratch?
--
View this message in context: http://xfs.9218.n7.nabble.com/Create-superblock-tp35023.html
Sent from the Xfs - General mailing list archive at Nabble.com.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 6 lines · metaverse
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 drive?
Quoted 1 line
Scary that only a power outage can do this...
It shouldn't, unless the storage was configured in an unreliable way.
Quoted 1 line
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:
http://xfs.org/index.php/XFS_FAQ#Q:_What_information_should_I_include_when_reporting_a_problem.3F
At an absolute bare minimum, what happened when you ran xfs_repair?
-Eric
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs