LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


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

Rep: Reputation: 1
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 ?.
 
Old 03-21-2019, 04:47 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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: https://wiki.archlinux.org/index.php..._device_naming.
 
Old 03-21-2019, 08:29 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
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
LBM
Member
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 114

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:59 AM.

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