- Forums
- Linux
- How To Use Fdisk To Display All Drives In Linux
you can use this command to display all recognized drives and all existing partitions in your linux server [3311], Last Updated: Mon Jun 24, 2024
Hostman
Sun Mar 21, 2010
0 Comments
440 Visits
you can use this command to display all recognized drives and all existing partitions in your linux server
# fdisk -l
output might look like this:
Disk /dev/cciss/c0d0: 146.8 GB, 146807930880 bytes
255 heads, 63 sectors/track, 17848 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 17848 143259637+ 8e Linux LVM
NOTE: fdisk is used to delte, display and create new partitions. to show all the current partitions in your server use fdisk -l command. also for virtual filesystem /proc/partitions contains the information of partitions