command: fdisk
purpose: manipulate disk partition table
example:
1. To print all existing Disk Partitions
# fdisk -l
2. To display Partitions of a Specific Hard Disk using
# fdisk -l /dev/sda
3. To print all fdisk commands using fdisk Command m
# fdisk /dev/sda
The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
4. To print the size of an existing partition
# fdisk -s /dev/sda3
5. To display information of fdisk command
$ fdisk --help
regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines