Re: Harddrive sorting
Jeffrey Walton <[email protected]>
| Newsgroups | gmane.linux.debian.user |
|---|---|
| Message-ID | <CAH8yC8n8i6NXfkawjXnH3fN9r=q5KHEqWNT9dGyjsOo6xmBQ3g@mail.gmail.com> |
On Thu, Aug 27, 2026 at 10:37 AM Hans <[email protected]> wrote: > > I have a question. In my computer are several SATA drives. First one with > Debian installed and with grub, is connected to Port 0 of the SATA controller, > second one got Windows and is on SATA 1, and 3 harddrives more are connected > to SATA ports 2-4. > > When ever I boot, the harddrives are not booted in the wanted order (a timing > problem case), sio that the Debian drive is /dev/sdb and Windows is /dev/sda, > but I want /dev/sda = Linux and /dev/sdb = Windows. > > Whilst there si no problem with the mountpoints, as I ca use UUID in /etc/ > fstab, I would like to know, if it is possible, to force Debian, to see the > drives in the order, they are hardwired. > > I suppose, this poroblem is well known, but I found no solution. Maybe there > is none? > > In my mind came the idea, of using udev rules, but I heard of this only in > relationship with assigning network devices (when you have more than one > ethernet card and want to assign them correctly to eth0, eth1 and so on). > > If there is no known solution, then just tell me. It is harmless, as > everything is working well here. Have a look at udev for consistent naming of hard drives. Also see <https://wiki.debian.org/Persistent_disk_names> and <https://wiki.archlinux.org/title/Persistent_block_device_naming>. Jeff