[SOLVED] harddisk order wrong, when crossflashed controller is plugged in
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
harddisk order wrong, when crossflashed controller is plugged in
Hi,
I've just added an crossflashed LSI controller to an system. Harddisk added to this, are now starting from bottom, /dev/sda , /dev/sdb etc.
It gives me some issues, regarding my setup, scripts, configuration and all that. since without this controller, first device is /dev/sda and so forth, and it has been like that for quite some time.
Is it somehow possible to change it, so the onboard first device is still /dev/sda, sdb.. etc, and then the secondary controller, will be /dev/sdX and so on ?.
Don’t use /dev/sda etc. These file names are called non-persistent device file names for precisely this reason.
Instead, use UUIDs, filesystem labels or symbolic links in /dev/disk. These names are persistent.
That relates to entities that have a UUID. Device nodes don't - the OP could use by-id, but that would quickly get ugly.
Depends if the scripts really do need to access the device node itself - maybe they can be generalised to take advantage of UUID or LABEL. Else check the BIOS/EFI firmware to see if you can change the order - Linux, and just as importantly, the boot-loader see the devices as enumerated by the firmware. Does the system boot with the card in ?.
Yes, WMM,UUID,ID/by-id is defiantly an way to go. Unfortunately, I cannot just change this easily, for which, the other would be easier for me to start with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.