> Quick, and dirty... > > fdisk -l | grep '^Disk ' | wc -l > > This will fail to report correctly on systems with embedded hardware RAID > controllers, also mis-counts on systems with software volume management. This fixes the software volume management issue, only counts "hd" and "sd" devices: fdisk -l | egrep '^Disk /dev/.*[hs]d' | wc -l
<<winmail.dat>>
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list