LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2016, 05:22 PM   #1
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Rep: Reputation: 6
sd# device files from one boot to another


If I boot from a live USB image for an install can I count on the devices listed in the install menu to be the same as they are on the existing system? For instance, if /dev/sda1 is mounted at / & /dev/sdc is mounted on /home/me can I count on the same devices names (sd#) to be pointing at the same physical drives in the install menu as they are on my desktop when booted into it's native OS?
 
Old 11-25-2016, 05:38 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,620

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by Garrett85 View Post
If I boot from a live USB image for an install can I count on the devices listed in the install menu to be the same as they are on the existing system? For instance, if /dev/sda1 is mounted at / & /dev/sdc is mounted on /home/me can I count on the same devices names (sd#) to be pointing at the same physical drives in the install menu as they are on my desktop when booted into it's native OS?
You cannot be sure they will even stay the same from one udev version to the next. I recommend using the UUID or giving them a label and use that. (I do both: the label is often easier to detect and remember when using a live media boot.)
 
Old 11-25-2016, 05:45 PM   #3
jpollard
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
Nope.

The order depends on which one responds first, and which controller responds first. I've had one disk jump around whenever I add or remove a different one.

the only way to easily identify the disk is by using the /dev/disk/by-id. Then entries there (other than the WWN references to support fibre channel) are identified by controller-manufacturer,model, and serial number. These entries are defined by the manufacturer (so some parts may be missing), but have so far been unique to the drive (so far, in that the only more generic one is for a DVD, identified only as ata-PIONEER_DVD-RW_DVR-116D)

The most consistent entry is /dev/sda - because that is the one the BIOS uses to boot the system, which happens to cause it to be spun up and ready before the kernel even starts, thus it responds first.
 
Old 11-25-2016, 06:41 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
All true. However ...
Given that this is related to your other current thread, it is unlikely the devices will change name on a simple upgrade.
I would think Mint would use UUID by default.
 
Old 11-25-2016, 08:20 PM   #5
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
sd#

Quote:
Originally Posted by wpeckham View Post
You cannot be sure they will even stay the same from one udev version to the next. I recommend using the UUID or giving them a label and use that. (I do both: the label is often easier to detect and remember when using a live media boot.)
I have all the devices UUIDs but the problem is that the mint installation screen doesn't show you the devices UUIDs, it only shows their sd#.
 
Old 11-25-2016, 08:45 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Should be able to tell the difference using partitions and/or size. Else keep a copy of "lsblk -f" handy.
 
  


Reply

Tags
mint-17, mint-18, mount, mounting



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 use an ExpressCard SSD device as the boot and system storage device CharlieBucket Linux - Hardware 1 03-21-2011 11:17 PM
mkrescue Fatal: device-mapper: only linear boot device supported Molly Slackware 5 01-06-2009 04:35 PM
how i can findout corresponding device files for a device in RHL bluetux Linux - General 3 11-04-2006 06:53 AM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
UL 1.0 GRUB: could not find device for /boot: not found or not a block device cma Linux - General 4 12-12-2005 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 PM.

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