Overwritten partition
Hello,
I accidentally overwritten first 40GB of 36TB XFS partition. I ran xfs_repair then, which resets the superblocks (I'm sorry i didn't copied the output of it) and after I mounted the partition, there was no files. Empty file system, but It should be almost 90% full.
Am I really screwed or there's a chance to recover the data somehow?
Thanks anyone for helping!
John
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Le Sun, 31 May 2015 00:48:05 +0200
[email protected] écrivait:
Quoted 6 lines
I accidentally overwritten first 40GB of 36TB XFS partition. I ran
xfs_repairthen, which resets the superblocks (I'm sorry i didn't copied the output of it) and after I mounted the partition, there was no files. Empty file system, but It should be almost 90% full.Am I really screwed or there's a chance to recover the data somehow?
At this point your best bet is to use a tool like photorec on the partition to see what data it can salvage, though on 36 TB sorting the results may be overwhelming... You'll need some other large filesystem to store the salvaged data, though.
Signature · 11 lines
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <[email protected]>
| +33 1 78 94 84 02
------------------------------------------------------------------------
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfsQuoted 8 lines · Emmanuel Florac
Le Sun, 31 May 2015 00:48:05 +0200
[email protected] écrivait:Quoted 5 lines
I accidentally overwritten first 40GB of 36TB XFS partition. I ran
xfs_repairthen, which resets the superblocks (I'm sorry i didn't copied the output of it) and after I mounted the partition, there was no files. Empty file system, but It should be almost 90% full.
Quoted 6 lines
Quoted 1 line
Am I really screwed or there's a chance to recover the data somehow?
At this point your best bet is to use a tool like photorec on the partition to see what data it can salvage, though on 36 TB sorting the results may be overwhelming... You'll need some other large filesystem to store the salvaged data, though.
Photorec doesn't recreate any filesystem metadata (filenames, directory structure, timestamps, etc).
Hopefully you have a recent backup you can use instead of trying to go through Photorec's results.
Greg
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 6 lines · On Sun, May 31, 2015 at 12:48:05AM +0200, [email protected] wrote:
Hello,
I accidentally overwritten first 40GB of 36TB XFS partition. I ran
xfs_repairthen, which resets the superblocks (I'm sorry i didn't copied the output of it) and after I mounted the partition, there was no files. Empty file system, but It should be almost 90% full.
SOunds like a case of using inode32 allocator, and losing the entire inode btree (i.e. the index that tracks allocated inodes) as well as the root inode, hence there being no way to easily discover and reconstruct the directory tree at all.
Quoted 2 lines
Am I really screwed or there's a chance to recover the data somehow?
disaster recovery tools are your only real hope at this point. go searching for xfs_irecover as a good starting point for scraping inodes out of the corpse and hence hopefully being able to reconstruct some of the directory structure...
Cheers,
Dave.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs