fdisk -l /dev/sda
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 240.1 GB, 240057409536 bytes, 468862128 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
Disk label type: gpt
Disk identifier: C63AA19D-6E91-4A1E-976D-899D800EC489
# Start End Size Type Name
1 2048 6143 2M BIOS boot parti BIOS
2 6144 530431 256M Linux filesyste BOOT
3 530432 17307647 8G Linux filesyste SWAP
4 17307648 468862094 215.3G Linux filesyste ROOT
fdisk -l /dev/sdb
Disk /dev/sdb: 240.1 GB, 240057409536 bytes, 468862128 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
and create gpt label on /dev/sdb:
Now create partitions on /dev/sdb like /dev/sda but need set Type RAID for all partitions except BIOS boot partiotions:
fdisk -l /dev/sda
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 240.1 GB, 240057409536 bytes, 468862128 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
Disk label type: gpt
Disk identifier: C63AA19D-6E91-4A1E-976D-899D800EC489
# Start End Size Type Name
1 2048 6143 2M BIOS boot parti BIOS
2 6144 530431 256M Linux filesyste BOOT
3 530432 17307647 8G Linux filesyste SWAP
4 17307648 468862094 215.3G Linux filesyste ROOT
fdisk /dev/sdb
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 240.1 GB, 240057409536 bytes, 468862128 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
Disk label type: gpt
Disk identifier: 2F21C828-C60E-4DBD-AC6B-DDA2B119B92D
# Start End Size Type Name
Command (m for help): n
Partition number (1-128, default 1): 1
First sector (34-468862094, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-468862094, default 468862094): 6143
Created partition 1
Command (m for help): n
Partition number (2-128, default 2): 2
First sector (34-468862094, default 6144):
Last sector, +sectors or +size{K,M,G,T,P} (6144-468862094, default 468862094): 530431
Created partition 2
Command (m for help): n
Partition number (3-128, default 3): 3
First sector (34-468862094, default 530432):
Last sector, +sectors or +size{K,M,G,T,P} (530432-468862094, default 468862094): 17307647
Created partition 3
Command (m for help): n
Partition number (4-128, default 4): 4
First sector (34-468862094, default 17307648):
Last sector, +sectors or +size{K,M,G,T,P} (17307648-468862094, default 468862094): 468862094
Created partition 4
Command (m for help): t
Partition number (1-4, default 4): 1
Partition type (type L to list all types): 3
Changed type of partition 'Linux filesystem' to 'BIOS boot partition'
Command (m for help): t
Partition number (1-4, default 4): 2
Partition type (type L to list all types): 13
Changed type of partition 'Linux filesystem' to 'Linux RAID'
Command (m for help): t
Partition number (1-4, default 4): 3
Partition type (type L to list all types): 13
Changed type of partition 'Linux filesystem' to 'Linux RAID'
Command (m for help): t
Partition number (1-4, default 4): 4
Partition type (type L to list all types): 13
Changed type of partition 'Linux filesystem' to 'Linux RAID'
Command (m for help): p
Disk /dev/sdb: 240.1 GB, 240057409536 bytes, 468862128 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
Disk label type: gpt
Disk identifier: 2F21C828-C60E-4DBD-AC6B-DDA2B119B92D
# Start End Size Type Name
1 2048 6143 2M BIOS boot parti
2 6144 530431 256M Linux RAID
3 530432 17307647 8G Linux RAID
4 17307648 468862094 215.3G Linux RAID
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.