Fdisk is an essential command for disk management in Linux and Unix systems.
This command line-based tool enables various tasks such as creation, resizing, deletion, changing, copying, and moving of disks with its easy-to-use text-based interface.
Fdisk allows the creation of up to four primary and an unlimited number of logical partitions based on the available hard disk size.
Another useful command-line tool for disk management in Linux is GNU Parted, which enables simple and complete disk management. Parted makes it easy to add, remove, shrink, and extend disk partitions with the file systems they contain.
Parted also allows for the creation, resizing, and copying of extX, swap, FAT, and FAT32 file systems. If Parted is not installed, it can be easily added through the execution of the following commands:
- sudo apt-get install parted (Debian/Ubuntu),
- yum install parted (RHEL/CentOS & Fedora)
- dnf install parted (Fedora 22 & higher).
Gparted (Graphic Parted) fulfills the same role as Parted only in a graphic environment, so GParted will give us the simplicity of graphically managing the partitions of the available hard drives.
By using GParted it will be possible to change the size, copy and move partitions without loss of data which allows us to execute actions such as increase or decrease the disk, create space for new operating systems, rescue data from lost partitions and much more.
Disk level optionsIn addition to this, the administration and control of partitions with Gparted has multiple options at disk level such as:
- Create and delete partitions
- Resize or move existing partitions
- Label a unit
- Verify the integrity of the partition
- Copy and paste
- Obtain partition information
- Format a partition
- Manage mounting points
To install Gparted we can go to the Software Center or execute the following command:
sudo apt-get install gparted
Gparted can be used in Linux, Windows or macOS. Once installed, we can run it from the terminal with the gparted command or from the Ubuntu menu:
GNOME Disks aka (GNOME Disks Utility)
GNOME Disks is an system utility which can be used to manage hard drive partitions and to carry out monitoring of SMART GNOME Disk can be used to format and create partitions on drives, mount and unmount partitions and is included with the GNOME desktop environment.
Most outstanding features
- View, modify and configure discs and media
- Create and restore disk images
- Partitioning discs, LUKS is compatible
- Inspect the speed of the unit and the state of health of it
As we have indicated, it is integrated in GNOME environments and for its execution, we go to the search engine and select the Disk utility:
Once we access, we can see all available units. There we will see details of the unit and by clicking on the menu icon, three horizontal lines, we can carry out actions such as:
- Format the hard drive
- Create a disk image
- Restore the disk image
- Test disk speed and integrity and more
KDE Partition Manager
As the name implies, this is a utility for managing partitions in KDE desktop environments. With KDE Partition Manager it will be possible to manage disk devices, partitions and file systems in our system and gives us the possibility to carry out actions such as creating, copying, moving, deleting, resizing easily without losing data, making Backup copies and restore partitions, all with simplicity.
KDE Partition Manager supports a large number of file systems, such as ext2 / 3/4, btrfs, reiserfs, NTFS, FAT16 / 32, JFS, XFS, LUKS and many more. For its use we must have the KDE desktop environment and run the integrated application.
QTParted is a free and open-source partition editor for Linux and Unix-like operating systems. It allows users to create, edit, delete, and resize partitions on their hard drives, as well as manage file systems and other storage devices. QTParted is often used as a graphical alternative to the command-line tool fdisk or other partition editors.
Thus, we have several options for the management and administration of our Linux partitions with simple, but practical, utilities.