Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I accidentally used sgdisk -R=/dev/sdb /dev/sda instead of sgdisk -R=/dev/sda /dev/sdb after replacing a broken drive in a raid. Can I recover from this or is all data lost now?
sgdisk -R=/dev/sdb /dev/sda
sgdisk -R=/dev/sda /dev/sdb
Required, but never shown