I have lost the partition table of 4 members of my linux raid 5 that consists of 5 devices (WDC WD40EFRX-68WT0N0).
Only the following partition table was left:
Code: Select all
$ sudo sfdisk -l /dev/sdg
Disk /dev/sdg: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FA6B09CD-30E5-479A-A401-199491BAF0A7
Device Start End Sectors Size Type
/dev/sdg1 2048 7814028976 7814026929 3.7T Linux RAID
Code: Select all
$ sudo sfdisk -l /dev/sda
Disk /dev/sda: 3.7 TiB, 3999677808640 bytes, 7811870720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sda1 1 4294967295 4294967295 2T ee GPT
Code: Select all
Disk /dev/sdc - 4000 GB / 3726 GiB - CHS 486401 255 63
Partition Start End Size in sectors
>P Linux Raid 2048 7813766151 7813764104
Code: Select all
Disk /dev/sdf: 3.7 TiB, 4000787021824 bytes, 976754644 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdf1 1 4294967295 4294967295 16T ee GPT
I tried to change the blocksize to 512 and the cylinders to 486401 in TestDisk according to the other devices.
The partition was found but fdisk does not recognize the disklabel and type. There must be some issue because of the 4096 sector size.
I hope, someone can help me!
Thanks!
All partitions were created by the following commands:
Code: Select all
$ sudo parted /dev/sdd mklabel gpt
$ sudo parted -a optimal -- /dev/sdd mkpart primary 2048s -8192s
$ sudo parted /dev/sdd set 1 raid on