Hi. On Fri, Jul 24, 2020 at 10:03:01PM +0300, Andrei POPESCU wrote: > On Vi, 24 iul 20, 21:58:26, Andrei POPESCU wrote: > > On Vi, 24 iul 20, 19:39:21, Grzesiek Sójka wrote: > > > Hi there, > > > > > > I noticed that SATA disks appear in random order. More precisely, I have > > > two > > > disks, HDD and SSD. Sometimes HDD=/dev/sda, SSD=/dev/sdb and sometimes > > > HDD=/dev/sdb, SSD=/dev/sda. Is there any way to fix the disk order? > > > > Not that I know of. > > > > > I would > > > like the disk connected to port 1 to be sda, disk connected to port 2 to > > > be > > > sdb and so on (like it was in the past) > > > > It might be possible with some special udev rules, > > Correction: probably not, since those names are assigned by the kernel.
A correction over the correction ;) : - it's possible, it's called RENAME= in udev rules. - it's unneeded in about every case, given that wonderful /dev/disk directory. - and if it is needed for some reason, one's always better to use SYMLINK over the RENAME. Reco