fdisk Linux Commands

What is Linux fdisk Command?

Explanation

fdisk COMMAND:

fdisk command is used for partition table manipulator. Hard disks can be divided into one or more logical disks called partitions.

SYNTAX :


fdisk [options]

OPTIONS:


-l List the partition tables for the specified devies and then exit.
-u When listing partition tables, give sizes in sectors instead of cylinders.
-s The size of the partition is printed on the standard output.
-b Specify the sector size of the disk.
-C Specify the number of cylinders of the disk.
-H Specify the number of heads of the disk.
-S Specify the number of sectors per track of the disk.

EXAMPLE:


  1. fdisk /dev/hdb

    It prints the partition table and configuration information.

Ask Questions

Ask Question