Restore boot sector to RAID

mengsters

Prominent
Oct 3, 2017
4
0
510
Hi, I had accidentally selected the wrong disk when I was trying to restore a HDD, and the drive that I entered this function to was a raid drive. Is there a command to undo what I did?

Or is the data all gone?

This is the function:
"diskutil unmountDisk force disk2"
"sudo dd if=/dev/zero of=/dev/disk2 bs=1024 count=1024"
 
Solution
Well your dd command if it completed filled disk2 with all zeroes. It is permanent and can not be undone.

But if you used a RAID level other than RAID0 then recovery may be possible.

S Haran

Distinguished
Jul 12, 2013
219
0
18,910
Well your dd command if it completed filled disk2 with all zeroes. It is permanent and can not be undone.

But if you used a RAID level other than RAID0 then recovery may be possible.
 
Solution