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.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityQuestion: 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.
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.
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.
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)
MBR in a CLI:
fdisk
(link to manual); note:fdisk
fromlinux-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)