Ubuntu: Overwrote GPT partition table on RAID 1 drive



Question:

The command fdisk -l was showing was showing the following error on 1 of the 2 drives in my raid 1 setup:

The primary GPT table is corrupt, but the backup appears OK, so that will be used.  

So after googling a bit I decided to use gdisk to try and fix this issue, by basically loading it up and using w to write the (empty) partition table to the disk.

After reboot mdadm did not detect the drive as a raid drive anymore and I realised what I had done.

Is there a way to recover the data on this disk as a raid device? The name of this device is /dev/sda, and has /dev/sdb as mirror.

I don't know in which state /dev/sda is, but I can give you the output of mdadm -E /dev/sda:

/dev/sda:      MBR Magic : aa55  Partition[0] :   1953525167 sectors at            1 (type ee)  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »