starcat Posted March 3, 2020 Share Posted March 3, 2020 (edited) Hi guys, accidentally dd'ed over an XFS formatted disk, something like 150MB or so from the beginning is there a way I can reconstruct the disk? Array was stopped and the disk was not mounted. Disk was a 4TB ST4000DM000, 4k aligned, formatted with XFS Command executed dd if=/dev/zero of=/dev/sdb bs=100000000 Hit Cmd-C immediately (after 1sec approximately) I have other disks of the absolutely same type for extracting partition table or whatever necessary... Thanks for any hints Edited March 3, 2020 by starcat Quote Link to comment
JorgeB Posted March 3, 2020 Share Posted March 3, 2020 Easiest way would be to unassign that disk, start the array, then re-assign it to rebuild, assuming parity exists and is valid. 1 Quote Link to comment
starcat Posted March 3, 2020 Author Share Posted March 3, 2020 (edited) Parity was disabled as I was copying disks and moving data, so no valid parity at the moment. Need other approach, copy partition from another (same, identical) disk, mount, etc. Edited March 3, 2020 by starcat Quote Link to comment
starcat Posted March 3, 2020 Author Share Posted March 3, 2020 Any ideas how to recover this XFS disk? Quote Link to comment
JorgeB Posted March 4, 2020 Share Posted March 4, 2020 The primary superblock will be destroyed, you can have xfs_repair look for a backup one and see if it was up to date, but IMHO best bet would be to ask for help on the xfs mailing list. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.