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?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
/proc/partitions
to see if the partitions are there. Otherwise, it's still recoverable, just harder, you need to figure out the old partitioning. There are tools such astestdisk
to scan the disk and attempt to locate them.