Show and View Hard Disk Partition Table on Linux Fedora 9 using fdisk Command



Computer Configuration GNU Linux Fedora using Linux Command

 

   The step by step command below show the step to view hard disk partition table on Linux fedora 9.  The fdisk command or fdisk tool is use in the article below to show the list of Linux partition table on the hard disk drives.  On Linux Fedora 9, the first hard disk on the system usually detect as sda and the second hard disk on the system detect as sdb, and the fdisk command example below will show the partition table on both hard disk drive.

Show first hard disk partition table on the Linux Fedora system /dev/sda partition:

1st command, to invoke fdisk tool to show partition on device sda:        fdisk /dev/sda

2nd command, display partition table:            p

3rd command, exit fdisk tool:                        q

Show Linux partition table

[root@fedora ~]# fdisk /dev/sda

 

The number of cylinders for this disk is set to 1305.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)

 

Command (m for help): p

 

Disk /dev/sda: 10.7 GB, 10737418240 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              26        1305    10281600   8e  Linux LVM

 

Command (m for help): q

 

[root@fedora ~]#

 

Show second hard disk partition table on the Linux Fedora system /dev/sdb partition:

1st command, to invoke fdisk tool to show partition on device sdb:        fdisk /dev/sdb

2nd command, display partition table:            p

3rd command, exit fdisk tool:                        q

List Linux partition table

[root@fedora ~]# fdisk /dev/sdb

 

The number of cylinders for this disk is set to 38154.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)

 

Command (m for help): p

 

Disk /dev/sdb: 40.0 GB, 40007761920 bytes

64 heads, 32 sectors/track, 38154 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Disk identifier: 0x836cebc0

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1       38154    39069680   83  Linux

 

Command (m for help): q

 

[root@fedora ~]#

 

Note: Other way to show all Linux partition table is using fdisk -l option

 




0 comments: