terrywashington
Technical User
Is there a Redhat/Fedora command that lists the disks in a system (similar to the format or iostat -En command in Solaris)?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
dmesg | grep ^[hs]d[a-z]:
hda: QUANTUM FIREBALL CX10.2A, ATA DISK drive
hdc: NEC CD-ROM DRIVE:285, ATAPI CD/DVD-ROM drive
hda: max request size: 128KiB
hda: 20044080 sectors (10262 MB) w/418KiB Cache, CHS=19885/16/63, (U)DMA
hda: cache flushes not supported
hdc: ATAPI 12X CD-ROM drive, 128kB Cache, DMA
s5(~)$ sudo fdisk /dev/hda
Command (m for help): p
Disk /dev/hda: 4303 MB, 4303272960 bytes
255 heads, 63 sectors/track, 523 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 77 514080 82 Linux swap
/dev/hda3 78 523 3582495 8e Linux LVM
Command (m for help): Command (m for help): q