install windows 10 using ide disk and virtio.iso drivers
[gnt-info] / gnt-disks.sh
index 56c0ca1..8add73e 100755 (executable)
@@ -1,6 +1,9 @@
-#!/bin/sh -xe
+#!/bin/sh -e
 
 gnt-cluster command -M lsblk --scsi -m | grep -v '^return' | tee /dev/shm/gnt-disks | grep -v cdrom
 
-gnt-cluster command -M lsblk --scsi --output SIZE,MODEL --noheadings | grep -v '^return' | grep -v '^----*$' | tee /dev/shm/gnt-disk-size-model | cut -d: -f2- | sort | uniq -c | sort -k2 -n | tee /dev/shm/gnt-disks-models
+echo "# from lsblk"
+gnt-cluster command -M lsblk --scsi --output SIZE,MODEL --noheadings --bytes | grep -v '^return' | grep -v '^----*$' | tee /dev/shm/gnt-disk-size-model | cut -d: -f2- | sort | uniq -c | sort -k2 -n | tee /dev/shm/gnt-disks-models
 
+echo "# from smart"
+cat /dev/shm/gnt-smart-query | cut -d: -f3,4 | sort | uniq -c | tee /dev/shm/gnt-disks-smart | column -s : -t