Define sda as the smallest disk

Rémy Dernat remy.d1 at gmail.com
Mon Jan 29 17:13:39 CET 2024


Hi,

I have a weird issue since Ubuntu 22.04.

It seems that disks are not in the right order; for example sda became
sdg, etc...
This is really annoying as my smallest disk should be used for system,
not the other disks. Normally, it was sda.

So, I would like to define something like disk1 / sda is :
fdisk -l 2>/dev/null |awk '/Disk / {print $2,$3}' |sort -n -k2 |head -1

Then, this would be used by setup-storage.

Any idea on how to do this ?

Best regards,


More information about the linux-fai mailing list