Stumbled about a problem with gpt:

[root@someserver ~]#   parted /dev/sdb
GNU Parted 2.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 8619GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32.3kB  2022GB  2022GB  primary               lvm

I would need to create (one or more) additional partitions using msdos format. As far as I know msdos can only store up to 2 TB per partition.

How can I add additional partitions using the maximal amount per msdos partition? Would a simple call to mkpart logical 0% 100% be enough?

| improve this question | | | | |
  • 1
    GPT is not a partition type but a partition table type. Do you want to convert the partition table? see serverfault.com/q/963178 – Bodo Mar 2 at 13:00
  • @Bodo no. I just want to create a new partition under dev/sdb using gpt as partition table type. This new partition should use GPT so I can use the additional space (2023GB-8619GB) as size for this additional partition. – mathewJohn Mar 2 at 13:04
  • You can only have either a partition table of type msdos or a partition table of type gpt, so if you want to add "a GPT partition" you have to convert the partition table. See also unix.stackexchange.com/q/289389/330217 – Bodo Mar 2 at 13:12
  • @Bodo Thanks a lot, so to use the remaining space of the disk /dev/sdb I would need to create additional 3 partitions each with 2TB space because of msdos (in case I don't want to convert the partition table)? – mathewJohn Mar 2 at 13:17
  • I think with 512 bytes sector size there is a limit of about 4TB for the disk size, so you might not be able to use the whole disk with a msdos type partition table. – Bodo Mar 2 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.