Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 03-21-2019, 03:37 PM   #1
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 106

Rep: Reputation: 0
harddisk order wrong, when crossflashed controller is plugged in


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 ?.
Old 03-21-2019, 04:47 PM   #2
Senior Member
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,851

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.

Here is an article in the Archlinux wiki. It largely applies to Debian as well:
Old 03-21-2019, 08:29 PM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,689

Rep: Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795
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 ?.
Old 03-22-2019, 05:37 AM   #4
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 106

Original Poster
Rep: Reputation: 0
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.

Yes, the controller, is there upon boot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logi Sales Manager on Ncurses (invoice, invoicing, orders, order, sale order, sales order...)? Xeratul Linux - Software 0 03-25-2017 02:45 PM
SCSI controller - Add extra controller & add a disc to the extra controller raj100 Linux - Hardware 1 11-01-2015 11:30 AM
How to detect programatically if a USB device is is plugged-in / plugged out? franc Linux - Software 3 02-01-2007 04:01 AM
Un-plugged PS/2 mouse then plugged it into usb. mouse now dead deathman Mandriva 2 11-20-2006 07:35 AM
Help mount usb to same /dev no matter which order plugged in. Brian1 Linux - Hardware 1 10-05-2004 08:31 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration