Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-04-2016, 05:00 PM   #1
Registered: May 2004
Location: Louisville KY
Distribution: Fedora 25
Posts: 32

Rep: Reputation: 0
How Can I Force Consistent Drive Ordering?

I have two sata drives and one usb drive. After booting, /dev/sdb is sometimes the second sata drive and other times the usb drive. I understand that there are work-arounds for a number of problems this causes; some of these are the use of udev rules or LABELs or UUIDs to identify partitions, but I still would rather have a consistent name for my second sata drive. (My drives all have multiple partitions, and it's hard for me to keep them straight without consistent nomenclature.) Is there any way to prevent the kernel from recognizing any usb drive at boot time, with a way to recognize it later after boot?

I've noticed that the order seems to be dependent on the time between the first display of the grub.cfg menu and the time when an entry is selected. Is there any way to build a delay into the boot process, either through grub commands or through kernel boot parameters?
Old 07-04-2016, 06:12 PM   #2
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
You can use labels in fstab, or UUID's. Use blkid, it will show you PARTUUID's and UUID's. Labeling is probably the nicest way, you can label your filesystems 'storage', 'data', 'system', whatnot.
1 members found this post helpful.
Old 07-04-2016, 07:35 PM   #3
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
bah, profile shows fedora symbol. Details?

Last edited by Habitual; 07-05-2016 at 08:15 AM.
Old 07-04-2016, 07:39 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,178

Rep: Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755
Are the two internal disks really SATA, or do you have an old (E)IDE drive in there that gets represented as /dev/sd# ?. Various distros handle this mix poorly.
Old 07-11-2016, 08:32 AM   #5
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513

The ordering is determined by how long it takes drives to respond to a controller query...

The only relatively guaranteed disk is /dev/sda, which is used by the BIOS/UFI to load the boot program; and that is only because it must be spun up and ready when the boot program takes over. After that all bets are off.
1 members found this post helpful.


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
How to Force our 500 GB Drive to be the SDA drive instead of our Raid Array cecilchamp Linux - Newbie 11 01-29-2015 09:28 PM
External drive is not consistent in it's assignment Fixit7 Puppy 1 12-06-2014 09:16 PM
Force drive offline cdhjrt Solaris / OpenSolaris 1 09-16-2005 02:03 PM
how can i force unmount a busy CD drive mailavj Linux - Software 1 04-04-2005 07:21 PM
How can I force Linux to redetect a CD-ROM Drive mpyusko Linux - Hardware 11 11-09-2003 02:53 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:06 PM.

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
Open Source Consulting | Domain Registration