Device Juggeling after every boot
Problem:
After every boot the devices (/dev/sd[a-z]) are not in order of hardware-slots, in short: The assignment of /dev/sd* was permanent altered (by least two devices!), eg:
# demo out from df Filesystem ... Mounted on /dev/sda2 ... /mount/sda2 /dev/sdb1 ... /mount/sdc1 /dev/sdc1 ... /mount/sdf1 /dev/sdd1 ... /mount/sdd1 /dev/sde1 ... /mount/sde1 /dev/sdf9 ... /mount/sdb9
What happend?
Some kernel commits (like: 08fb080 „Update config files: make SCSI/ATA drivers modules again“), affects the order in which drivers are initialized. In particular, USB devices may now be scanned first.
Solution:
For the solution, after Kernel 6.4.x (Tumbleweed tested OK since: 2023-10-28), 5,14,x (Leap tested OK since: 2023-10-28), do this:
echo 'softdep scsi_mod post: sd_mod sg' >>/etc/modprobe.d/sd.conf less /etc/modprobe.d/sd.conf # check the file dracut -f --regenerate-all reboot
This shure to load the SCSI driver first again.
For checking usefull commands:
lsblk -f fdisk -l
See also more documentation on:
May usefull too: