LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-25-2020, 07:53 PM   #1
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Disk lettering consistency? Is it possible?


When I'm installing openSUSE, the disk letters that I see in the installer vary wildly from the drive letters when the system installation is complete and the system is booted from the hard disk.

I'm not referring to ways to make sure /etc/fstab doesn't break because of drive letter changes---that's what mounting by label is for (and I'm already doing that for non-root filesystems). I'm talking about cleaning off a spare disk (say, /dev/sdd) while running under 15.1 and having it show up as /dev/sda when running the 15.2 installer. I wind up having to repartition disks in funny ways (i.e. make the root partition a slightly different size than I've used in the past and jotting down the number of blocks) to make sure they can be easily distinguished in the installer's partition list. (Gripe: existing partitions that have filesystems and have labels should have those labels listed by the installer's partitioning tool to help mitigate the potential confusion arising from the disk letter changes.)

Any ideas why this happens? Is there a way keep this drive letter shuffling from happening?


TIA...
 
Old 11-25-2020, 10:12 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Most modern linux systems use a predictive naming scheme so that you shouldn't need to worry about the block dev/xyz naming. However I guess it could be possible to exert some force to get the old naming consistent but I think it will fail. Bios could help usually because some of this is a result of boot order. Booting to different media and using F key or other means can fool that naming. A DVD

Anyway. Good web article on it if you don't want use Suse's articles. https://wiki.archlinux.org/index.php..._device_naming

Last edited by jefro; 11-25-2020 at 10:14 PM.
 
Old 11-25-2020, 11:47 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by jefro View Post
Most modern linux systems use a predictive naming scheme so that you shouldn't need to worry about the block dev/xyz naming.
What I find odd/aggravating is that an upgrade from one version of the OS to the next results in different drive letters---it doesn't seem so good at predicting names. :^) When I installed Leap 15.1 on a spare disk after using 12.1/12.2 for a few years, the boot device turned out to be "sde". While installing 15.2 onto what 15.1 saw as "sdd", 15.2 sees it as "sda". When the dust cleared, 15.2 sees the old "sdd" and "sde" as "sda" and "sdb". I haven't figured out where 15.2 moved the old "sda", "sdb", and "sdc". I can't wait to see what 15.3 does to the device names. I'm sure I've mentioned how much of a life-saver "LABEL=" is in fstab.

Quote:
Anyway. Good web article on it if you don't want use Suse's articles. https://wiki.archlinux.org/index.php..._device_naming
Looks interesting. I'll take a look in more depth. Thanks...
 
Old 11-26-2020, 06:55 AM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
It's been that way for some time and is the main reason why pretty much all distros use uuid instead of device files in fstab and bootloader configuration. Disk device file enumeration is just not stable. Things that can effect device file naming - bios boot order, adding a new hard drive, version of grub used, place on the sata bus, bios version, probably other stuff as well. Since you have at least five block device files(sda to sde), you may want to liberally use partition labels to more effectively keep track of things. Also, gparted can help you identify drives by device file since drives are probably different sizes and have different partition layouts.
 
Old 11-26-2020, 12:48 PM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by kilgoretrout View Post
Things that can effect device file naming - bios boot order, adding a new hard drive, version of grub used, place on the sata bus, bios version, probably other stuff as well.
You've likely hit upon the reason. My hardware configuration hasn't changed in some time but it would be surprising if the same version of Grub was in use by 15.1 as well as 15.2.

Quote:
Since you have at least five block device files(sda to sde), you may want to liberally use partition labels to more effectively keep track of things. Also, gparted can help you identify drives by device file since drives are probably different sizes and have different partition layouts.
Heh... "sde" isn't even the "last" drive on the system I've been upgrading. On one of my (now decommissioned) systems I had a slew of drives in external cabinets: drives sda through sdr (mostly in RAID 1 configurations). That was fun.

Labeling filesystems with tune2fs and mounting by label has been my go-to solution for years---I tend to even mount "/" using a filesystem label ("leap151", "leap152", or whatever). I find UUIDs/PARTUUIDs to be about the most hideous things to use in fstab but, with the plethora of PC manufacturers and no industry hardware standardization, I understand the problem they solve. But gawd are they ugly.

Later...
 
Old 12-04-2020, 05:28 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by rnturn View Post
(Gripe: existing partitions that have filesystems and have labels should have those labels listed by the installer's partitioning tool to help mitigate the potential confusion arising from the disk letter changes.)

Any ideas why this happens? Is there a way keep this drive letter shuffling from happening?
openSUSE has been my primary Linux going on 18 years. IME, confusing drive letters between boots or between installed systems and installer haven't happened since around 12.2.

One way to avoid the problem generally is to always boot with no USB devices attached unless intending the current boot to be from USB, otherwise always plugging after a login prompt or manager appears.

Another is to avoid USB even for installation. As long as to a multiboot target with a bootloader already present, net or iso installation can be initiated by Grub, so that's how I do new installations. Normally I use the net install installation kernel and initrd. On a new installation to a new or wiped target, I boot from CD or DVD if possible and fully partition at least to the extent of those partitions will be used for the first installation.

Also IME, the reason for missing drive letters can easily be all-in-1 USB readers gobbling 4 USB device names, even though unpopulated.

I have yet to have an openSUSE installer not show me the volume labels that are present. It was a long time before I learned to have labels preferred to UUIDs or device names in every possible context. That is done by opening the bottom item on the first partitioning screen and changing the default selection from UUID to LABEL before taking any other action.
Attached Thumbnails
Click image for larger version

Name:	partitionerSettingsLabel.png
Views:	10
Size:	43.4 KB
ID:	34761   Click image for larger version

Name:	partitionerNewUnused.png
Views:	9
Size:	126.1 KB
ID:	34762  
 
Old 12-05-2020, 12:43 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by rnturn View Post
I find UUIDs/PARTUUIDs to be about the most hideous things to use in fstab but, with the plethora of PC manufacturers and no industry hardware standardization, I understand the problem they solve.
This.
 
Old 12-05-2020, 12:50 AM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by ondoho View Post
This.
?????
 
Old 12-05-2020, 02:07 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by mrmazda View Post
?????
???
 
Old 12-05-2020, 02:35 AM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by ondoho View Post
???
You wrote nothing but "This" in #7. What communication was it intended to convey?
 
Old 12-06-2020, 03:14 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by mrmazda View Post
You wrote nothing but "This" in #7. What communication was it intended to convey?
The quote was also part of the post. IMO, it's the single most important sentence to answer the question posed in this thread.
 
  


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
NAS SCSI disk device naming consistency issue subbudba Linux - Embedded & Single-board computer 2 05-18-2012 12:44 AM
Where is the Consistency ToeShot General 2 11-08-2004 12:09 PM
Checking consistency of journaling filesystems Darktyco Linux - Hardware 5 08-09-2004 08:18 PM
Autochecking filesystem consistency? Darktyco Linux - Software 0 08-08-2004 11:44 AM
check tar consistency Vyeperman Linux - General 1 05-01-2004 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 12:40 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