Should I use fdisk for partitioning or GPT aware tools?

36,904

Solution 1

MBR, Master Boot Record

Wikipedia excerpt; link:

A master boot record (MBR) is a special type of boot sector at the very beginning of partitioned computer mass storage devices like fixed disks or removable drives intended for use with IBM PC-compatible systems and beyond. The concept of MBRs was publicly introduced in 1983 with PC DOS 2.0.

I intentionally copy-pasted this for you to see that MBR comes all the way from 1983.


GPT, GUID Partition Table

Wikipedia excerpt; link:

GUID Partition Table (GPT) is a standard for the layout of the partition table on a physical storage device used in a desktop or server PC, such as a hard disk drive or solid-state drive, using globally unique identifiers (GUID). Although it forms a part of the Unified Extensible Firmware Interface (UEFI) standard (Unified EFI Forum proposed replacement for the PC BIOS), it is also used on some BIOS systems because of the limitations of master boot record (MBR) partition tables, which use 32 bits for storing logical block addresses (LBA) and size information on a traditionally 512 byte disk sector.


To answer your question, I advise you to use GPT partitioning where possible; in other words, if you don't have to use MBR, use GPT instead.

GPT advantages over MBR

  • it has a backup partition table

  • it has no ridiculous limit for primary partitions, it allows for up to 128 partitions without having to extend

  • it also stores cyclic redundancy check (CRC) values to check that its data is intact

  • as you mentioned, it supports large drives, the maximum size is 8 ZiB (2^64 sectors × 2^9 bytes per sector)


The usual tools

MBR in a CLI:

fdisk (link to manual); note: fdisk from linux-utils 2.30.2 partially understands GPT now

GPT in a CLI:

gdisk (link to manual)

For both MBR and GPT in a CLI:

parted (link to manual)

For both MBR and GPT in a GUI:

gparted (link to wiki)

gparted gui

Solution 2

fdisk from linux-utils 2.30.2 now understands GPT tables

Solution 3

To create GPT partitions, I recommend gdisk ("GPT fdisk") instead of fdisk.

Share:
36,904

Related videos on Youtube

pepite
Author by

pepite

Updated on September 18, 2022

Comments

  • pepite
    pepite over 1 year

    Question: Should I use fdisk when creating partitions?

    Or is it advisable to use parted since it uses GPT? (by default?) And with that I can create partitions larger than 2TB.