Howto: Display All Hard Disk of Size on Machine

Just use fdisk to list all disk state and grep prefix Disk string line to show.

# fdisk -l 2> /dev/null | grep ^Disk | grep -v identifier

Disk /dev/sda: 80.0 GB, 80026361856 bytes
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
Disk /dev/md0: 500.1 GB, 500107771904 bytes
Disk /dev/mapper/vg01-windows2003os: 85.9 GB, 85899345920 bytes
Disk /dev/mapper/vg01-DiskNTFS001: 107.4 GB, 107374182400 bytes
Disk /dev/mapper/vg01-FreeBSD-real: 21.5 GB, 21474836480 bytes
Disk /dev/mapper/vg01-FreeBSD: 21.5 GB, 21474836480 bytes
Disk /dev/mapper/vg01-nagios–20121224-cow: 10.7 GB, 10737418240 bytes
Disk /dev/mapper/vg01-nagios–20121224: 21.5 GB, 21474836480 bytes
Disk /dev/mapper/vg01-drbl–server: 42.9 GB, 42949672960 bytes
Disk /dev/mapper/vg01-nis–server: 42.9 GB, 42949672960 bytes
Disk /dev/mapper/vg01-windows7: 42.9 GB, 42949672960 bytes
Disk /dev/mapper/vg01-bt5: 21.5 GB, 21474836480 bytes
Disk /dev/mapper/vg01-Nagios: 33.6 GB, 33554432000 bytes

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s