Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111
Rep:
switch sd* with sd*
Is there any way I can switch sda(1,2,5) and sde(1,2). Not the data within them, but the letters a and e(permanently), I need this because my opensuse install was on sda but then it changed to sde and won't boot properly. Changing the letters in the dev folder was only temporary and worked for one session, after restart, it undid itself.
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111
Original Poster
Rep:
Quote:
Originally Posted by syg00
Fix the problem, not the symptom.
Describe, in detail, what you mean by "won't boot properly". How did you change the /dev entries if it won't boot ?.
My signature is the real deal, and when installing opensuse, sda and sde were mixed up, so now when I boot into sde, it boots to ubuntu, but a weird version of it. On the real ubuntu, I changed those entries, and it was temporary only.
Quote:
Originally Posted by syg00
Have you checked the obvious places - fstab and boot config ?.
I have tried to edit opensuse's fstab to go by sde instead of sda, and also by uuid, but, no luck.
The BIOS determines the drive order at boot - but each Linux uses udev to assign the /dev/ nodes.
Is this a mix of one IDE and one ATA drive by any chance ?. I had all sorts of trouble with different distros using different names.
UUID should be the answer, especially with grub2.
From a Linux (even a liveCD) go here untar the download and run it - post the RESULTS.txt here.
You can write your own udev rules for creating devices if you want, but it's generally NOT recommended to try altering the default settings. It should be safe to additionally create your own personal symlinks to them, however. Indeed, your system should already have several preset symlinks set up for you in /dev/disk.
For fstab and related mount settings, however, you're better off just configuring them to use UUID, or perhaps LABEL, instead of the dev entry, as syg00 mentioned.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
A question to all who have more experience than I have.
Changing drive letters with udev is nice and fine, but most Linux systems use initrd. So rewriting udev rules does not change the drive letters during boot. Only afterwards if the system has booted, and then the udev rules are carried out according to the /etc/udev settings. But it seems to me that that is too late.
I agree that using UUIDs in grub.conf is the correct way to go.
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111
Original Poster
Rep:
Quote:
Originally Posted by jlinkels
A question to all who have more experience than I have.
Changing drive letters with udev is nice and fine, but most Linux systems use initrd. So rewriting udev rules does not change the drive letters during boot. Only afterwards if the system has booted, and then the udev rules are carried out according to the /etc/udev settings. But it seems to me that that is too late.
I agree that using UUIDs in grub.conf is the correct way to go.
jlinkels
Grub's configuration is not the problem, I have already tried using uuid, but, I will try the udev rules, post if it did not work, and then ask how to do the same with initrd.
These rules fixed everything! But, I had to make a few tweaks, 1, name this as 50-udev.rules, 2, do the same thing, but add DISPLAY:"0" at the end if each line and name it 10-local.rules, 3, copy these rules to each install except for OpenSuse, 4 start/restart udev, 5, update grub. Works like a charm, many thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.