"The fdisk command is a text-based utility for viewing and
managing hard disk partitions on Linux. It?s one of the most
powerful tools you can use to manage partitions, but it?s confusing
to new users.
On Ubuntu, Linux Mint or other Ubuntu-derived distributions, the
fdisk and mkfs commands must be prefixed with sudo. On
distributions that don?t use sudo, use the su - command first to
get a root shell, then type every command without sudo.