Problem:
# sfdisk -l /dev/sdb
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't
support GPT. Use GNU Parted.
Disk /dev/sdb: 27960.2 GB, 27960226611200 bytes
255 heads, 63 sectors/track, 3399303 cylinders, total 54609817600 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 identifier: 0xe907e907
Solution :
#fdisk -l /dev/sdb
- To create a partition start GNU parted as follows:
# parted /dev/sdb
Output:
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)
- Creates a new GPT disklabel i.e. partition table:
(parted) mklabel gpt
Sample outputs:
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk
will be lost. Do you want to continue?
Yes/No? yes
(parted)
- Next, set the default unit to TB, enter:
(parted) unit TB
- To create a 3TB partition size, enter:
(parted) mkpart primary 0 0
OR
(parted) mkpart primary 0.00TB 3.00TB
- To print the current partitions, enter:
(parted) print
Still you get this WARNING then use this commands:
dd if=/dev/urandom of=/dev/sdb bs=512 count=64
or
dd if=/dev/zero of=/dev/sdb bs=1024
Done