
The partition table on Linux can be display using the fdisk command. The fdisk command (or partition table manipulator command) can be use to make partition table on your hard disk... the command example below, show how to use the fdisk command to display list of partition table on Fedora Linux system.
fdisk Command Example:
# fdisk -l
# fdisk -l /dev/sda
# fdisk
1. Output from fdisk command with -l option display partition table on the system:
[root@fedora ~]# fdisk -l
Disk /dev/sda: 10.7 GB,bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00011e25
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 260 8e Linux LVM
Disk /dev/dm-0: 9898 MB,bytes
255 heads, 63 sectors/track, 1203 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 570 MB, 570425344 bytes
255 heads, 63 sectors/track, 69 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800
Disk /dev/dm-1 doesn't contain a valid partition table
[root@fedora ~]#
2. Display partition table for first hard disk
[root@fedora ~]# fdisk -l /dev/sda
Disk /dev/sda: 10.7 GB,bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00011e25
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 260 8e Linux LVM
[root@fedora ~]#
3. fdisk command without any option display the fdisk command usage:
[root@fedora ~]# fdisk
Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...
[root@fedora ~]#
0 comments:
Post a Comment