Partitions also allows for multiples disk file system types to be used on a single storage device. The fdisk command allows the user to create/remove partitions, allocate the size of these partitions, and specify the type of file system used on each partition. It needs to be run in the administrative mode.
In Figure 4.3 (on page ), see an example fdisk session that creates a single partition named sdb1. It is named sdb1 because it is partition 1 on the sdb block storage device. Below, we describe step by step how to create a new partition. The figure shows the expected output.
Each partition is tagged for the type of disk file system that will be used on it. In this case partition 1 is tagged with file system Id 83, meaning that it will be used for a Linux compatible disk file system. For Linux type partitions, 83 is a generic system id that can be use on partitions that support several different Linux compatible disk file systems including ext2, ext3, ext4, xfs, and reiserfs.
Figure 4.4 (on page ) shows the most commonly used fdisk commands. The list of options can be accessed by pressing ‘m’ within the fdisk console.