Does anyone know how the devices naming in linux work exactly? I'm talking about the names you can get with blkid and the reason I'm asking is because it doesn't seem to work the way I thought it would. For instance, if you attach 2 SSDs to the SATA_1, SATA_3 and SATA_4 slots on the motherboard, logic suggests that they should appear as sda, sdc and sdd. However, this isn't the way the linux core presents them. It presents them as sda and sdb. I find that weird and is PROBABLY a glitch but I wanna be sure.
The thing is that not long ago I found one of my old hard drives and attached it to the motherboard. But then a few days ago I removed it from the computer (bc I wasn't using it anyway). Before I removed it the devices names were sdb, sda, sdd, sdc and sde - in that order. However, after I removed it, for an unknown reason they became sdc, sda1, sdd, sdf and sdb (again - in that order), so I had to rewrite fstab for them to be propely mounted at startup.
So, the questions are two:
• Do you know which module (I'm guessing it's a module in the linux kernel) is responsible for giving names to the devices?
• Shouldn't it name the devices after the slot of the motherboard they are attached to without changing the names?
The thing is that not long ago I found one of my old hard drives and attached it to the motherboard. But then a few days ago I removed it from the computer (bc I wasn't using it anyway). Before I removed it the devices names were sdb, sda, sdd, sdc and sde - in that order. However, after I removed it, for an unknown reason they became sdc, sda1, sdd, sdf and sdb (again - in that order), so I had to rewrite fstab for them to be propely mounted at startup.
So, the questions are two:
• Do you know which module (I'm guessing it's a module in the linux kernel) is responsible for giving names to the devices?
• Shouldn't it name the devices after the slot of the motherboard they are attached to without changing the names?