Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

dd over XFS, restore?

Featured Replies

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 by starcat

Easiest way would be to unassign that disk, start the array, then re-assign it to rebuild, assuming parity exists and is valid.

  • Author

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 by starcat

  • Author

Any ideas how to recover this XFS disk?

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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.