Re: Harddrive sorting

Robert Heller <[email protected]>
Newsgroups gmane.linux.debian.user
Organization Deepwoods Software
Message-ID <[email protected]>
At Thu, 27 Aug 2026 14:39:49 +0200 Hans <[email protected]> wrote:

> 
> Dear list, 
> 
> 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? 

The "problem" is well known. The "solution" (under Linux) is never depend on a
drive's device name (eg /dev/sdXX) when mounting it. ALLWAYS use the UUID (as
you have done) or use a label.  I have no clue what one does under MS-Windows.

> 
> 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).
> 

This might be possible, but I don't of anyone bothering, since there is an 
"easier" solution.

> If there is no known solution, then just tell me. It is harmless, as 
> everything is working well here.
> 
> Best regards
> 
> Hans
> 
> 
> 
>                                                                                                                                 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.