Check partitions with fdisk -l
In this step, you will learn how to view the disk partitions on your system using the fdisk
command. Disk partitioning is the process of dividing a hard drive into multiple logical storage units called partitions. Each partition can be formatted with a different file system and used independently.
The fdisk
command is a powerful utility for managing disk partitions. When used with the -l
option, it lists the partition tables for the specified devices. If no device is specified, it lists the partition tables for all devices.
Open your terminal if it's not already open. You can do this by clicking the Xfce Terminal icon on the left side of your desktop.
Now, type the following command and press Enter:
sudo fdisk -l
You need to use sudo
because viewing partition information requires administrative privileges. sudo
allows you to run commands as the superuser (root).
You will see output similar to this:
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Disk identifier: 0x...
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 41943006 41940959 20G 83 Linux
This output provides information about the disks and their partitions.
/dev/sda
: This is the name of the disk device. /dev/sda
typically refers to the first hard drive.
Disk /dev/sda: ...
: This line shows the total size of the disk.
Device
: The name of the partition (e.g., /dev/sda1
).
Boot
: Indicates if the partition is bootable.
Start
, End
, Sectors
: The start and end sectors of the partition.
Size
: The size of the partition.
Id
: The partition type ID.
Type
: The type of the partition (e.g., Linux).
In this example, you can see one partition, /dev/sda1
, which is a Linux partition.
Understanding disk partitions is crucial for managing storage and installing operating systems.
Click Continue to proceed to the next step.