I've tried with sda/sdb etc, but I've noticed that, if I change the USB ports, the device names will change (sda->sdb, sdb->sdc, sdc->sda). One of these devices is HDD but the others are SSDs.
The script won't work if it gets an SSD devicename. This problem should be solved by identifying via uuid.
I've tried with sda/sdb etc, but I've noticed that, if I change the USB ports, the device names will change (sda->sdb, sdb->sdc, sdc->sda). One of these devices is HDD but the others are SSDs. The script won't work if it gets an SSD devicename. This problem should be solved by identifying via uuid.
Thanks!