#Listing SCSI disks, with UUIDs and disk sizes (in KB) for i in /dev/sd*[^0-9]; do echo -n "$i: "; scsi_id -gud $i; done > q grep ' sd*' /proc/partitions | grep -v '[0-9]$' | awk '{print $3,$4}' | sort -k2 > qq paste q qq > uuids rm q qq