Re: Who reordered my disks (probably v4.8-rc1 problem)

From: james harvey
Date: Sun Aug 14 2016 - 05:03:40 EST


Use static (persistent) naming instead, /dev/disk/by-label,
/dev/disk/by-id, /dev/disk/by-uuid, and if gpt /dev/disk/by-partlabel
and /dev/disk/by-partuuid

As you found, /dev/sdX bus names are assigned in the order they are
added, which for some time has not been guaranteed to remain
consistent between kernel versions or even subsequent boots on the
same kernel.

On Sat, Aug 13, 2016 at 3:30 PM, Pavel Machek <pavel@xxxxxx> wrote:
> Hi!
>
> It seems that in v4.8-rc0, /dev/sdX got reordered, and now USB devices
> are probed before SATA drivers. That is pretty anti-social. It
> broke my boot on my primary machine, and unfortunately due to BIOS
> problems (keyboard does not work when connected through a hub) it is
> less fun than it should be.
>
> Best regards,
>
> Pavel
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html