The correct answer is: B. fdisk
fdisk is a command-line utility for creating and managing disk partitions. It is available on most Linux and Unix systems.
To use fdisk, you must first open a terminal and type the following command:
fdisk /dev/sdX
where /dev/sdX is the device name of your hard drive.
Once fdisk is open, you will see a list of all the partitions on your hard drive. To create a new partition, type the following command:
n
You will then be asked to choose a partition type. The most common partition types are primary and logical. Primary partitions can be used to store data, while logical partitions can only be used to store data that is used by other partitions.
To create a primary partition, type p. To create a logical partition, type l.
Once you have chosen a partition type, you will be asked to choose a partition number. The first primary partition is always number 1, the second primary partition is always number 2, and so on. Logical partitions are numbered starting with 3.
To create a partition, type the partition number and then press Enter.
You will then be asked to choose a partition size. The partition size must be a multiple of the sector size of your hard drive.
To choose a partition size, type the partition size and then press Enter.
Once you have chosen a partition size, you will be asked to confirm the partition creation. To confirm, type y and then press Enter.
The partition will be created and you will be returned to the main fdisk menu.
To exit fdisk, type q and then press Enter.
The following are brief descriptions of the other options in the question:
- mkfs: This command is used to create a filesystem on a partition.
- fsck: This command is used to check and repair a filesystem.
- mount: This command is used to mount a filesystem so that it can be accessed by the operating system.
- None of the above: This option is not correct.