I'm writing script with zenity to benchmark selected disk with tools like; hdparm, seeker (to found in here > How fast is your disk? | LinuxInsight)
With this piece of code i try to get all mounted devices to variables to use it with selection menu, but i stuck and don't know how send listed devices to variables. Of course script must be flexible and react with hot plugged disks.
Not exactly, your code assign whole $1 to $device, that don't change any thing. What i try to get is divide $1 column to separated lines and assign each line to variable which be the separated partition to chose from menu.