The fdisk
command is used for controlling the disk partition table and making changes to it and this is a list of some of options provided by it :
- Organize space for new drives.
- Modify old drives.
- Create space for new partitions.
- Move data to new partitions.
- To view basic details about all available partitions on the system:
fdisk -l
- To show the size of the partition:
fdisk -s /dev/sda
- To view the help message and all options of the command:
fdisk -h
fdisk [options] device
On writing the following command
fdisk /dev/sdb
the following window appears : and then you type m which will show you all options you need such as creating new partition and deleting a partition as in the following picture :