Define sda as the smallest disk
Rémy Dernat <[email protected]> Mon, 29 Jan 2024 17:13:39 +0100
| Newsgroups | gmane.linux.debian.fai |
|---|---|
| Message-ID | <CAA6Bz=ear9SNAkSV4E+zRdx2VG_FyoTNOq5t00fzuXB1=KR8wQ@mail.gmail.com> |
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,