If you don't like the blkid window, do you like one of these presentations better (for selecting a partition). I need to see more than just the device name, and I suspect that dzz has the same problem - lots of partitions. (14 here) Now, if I could combine the information from both of these, I'd be very happy.
Run as root -
- Code: Select all
#!/usr/bin/env bash
# select_device
selection1=$(/sbin/blkid |grep /dev/sd | zenity --list --separator "" --column "" --height 450 --width 680)
echo "selection1 = $selection1"
device1=$(echo $selection1 | awk -F: '{ print $1 }')
echo "You selected $device1"
selection2=$(lshw -short -class volume | awk '{ print $2 "\t" $4 " " $5 " " $6 " " $7 }' | zenity --list --separator "" --column "" --height 450 --width 400)
device2=$(echo $selection2 | awk '{ print $1 }')
echo "Your second selection was $device2"