LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-22-2016, 05:00 PM   #31
girvinh
Member
 
Registered: Mar 2011
Distribution: Slackware
Posts: 63

Original Poster
Rep: Reputation: 3

Greetings,
I did the procedure given, with the slight modifications to the names, and it appears to work! I first tested it with no external SCSI devices powered on, and that booted fine. I then powered on my external SCSI disk drive and rebooted. That boot ran to completion with no KPs. The only change is that the Root drive was sda without the external SCSI drive and was sdb with the external SCSI drive, which had become sda. However, the UUID was still pointing to the proper Root drive. Just as it should work. A small price to pay to allow a SCSI device to be plugged in at boot time, or hot-plugged later.

I did use @bassmadrigal's suggestion of using the UUID path rather than the legacy device name. That is about the only major change I made to the procedure.

So, in summary, it does indeed look like initrd is required for UUID to work properly. That is not very intuitive and the manpages do not even hint at it. Maybe we need a UUID HOWTO. Remember them?

Thanks to all who helped me resolve this problem.
I will keep this thread open for a little while, but I feel it is successful.
Girvin
 
Old 06-22-2016, 05:14 PM   #32
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,258
Blog Entries: 24

Rep: Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193
Glad to hear it, and you are welcome!

I am still a little puzzled as to why the alternate root specification methods fail, not least because I have used them all in times past, or at least thought that I had... I will investigate that further as time permits - I need a lilo internals review anyway!

Make a few notes and keep for future reference too. UUIDs easily resolve most boot device conflicts. I always use lilo as bootloader and configure with initrd and UUIDs first thing after a new install anyway, so it has kept me isolated from boot problems to the point that I don't even think much about it any more.

Keep us posted if there any new developments, and good luck!
 
Old 06-22-2016, 05:22 PM   #33
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
There are a few workarounds, BTW.
You could roll your own kernel and build SATA driver in <*>, and Adaptec driver as module <M>. This way the module is even not accessible before root is mounted - and SATA is going to be sda for sure.
Or you could blacklist Adaptec module (blacklisted modules will not be loaded automatically) and load it using a startup script. Same result again - SATA is going to be sda.
Or you could build kernel command line into kernel, I just did out of curiosity. The commandline I built in is
Code:
~ # cat /proc/cmdline 
root=PARTUUID=00020071-01 net.ifnames=0
and the corresponding lilo.conf entry is
Code:
image=/boot/bzImage
        label=gentoo            # Name we give to this section
        read-only               # Start with a read-only root. Do not alter!
Now I have a kernel that boots with this hard drive only!

Edit: All above will work without initrd indeed.

Last edited by Emerson; 06-22-2016 at 06:06 PM.
 
1 members found this post helpful.
Old 06-22-2016, 06:06 PM   #34
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Or you could build kernel command line into kernel, I just did out of curiosity. The commandline I built in is
Code:
~ # cat /proc/cmdline 
root=PARTUUID=00020071-01 net.ifnames=0
and the corresponding lilo.conf entry is
Code:
image=/boot/bzImage
        label=gentoo            # Name we give to this section
        read-only               # Start with a read-only root. Do not alter!
Now I have a kernel that boots with this hard drive only!
Also out of curiosity a few month ago I did go a step further and embedded an initrd in the kernel (an EFI stub in that case as this was to boot in UEFI mode), see http://slint.fr/testing/slint64-current_efi-stub/. This was just out of curiosity as of course this precludes modifying the command line at boot time and having several boot entries, unless you use a boot manager on top of that
Ref.: post #28 in this thread.

Last edited by Didier Spaier; 06-22-2016 at 06:12 PM.
 
Old 06-22-2016, 06:16 PM   #35
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Interesting. The desktop I'm writing this on has EFI stub kernel, no initrd at all. Such a plain setup is not very flexible, no choice to boot backup kernel. In case my freshly built kernel fails I'd have no choice but use UEFI shell or boot with SystemRescueCD (which I always have on USB stick) and set efivars. So I installed rEFInd - and I really like it over Grub2!
 
Old 06-22-2016, 06:21 PM   #36
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
elilo works pretty well too. This is what we'll use in Slint 14.2, see this post.
 
1 members found this post helpful.
Old 06-22-2016, 06:30 PM   #37
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Hmh, Gentoo has it in portage. Next time I feel adventorous I'll give it a try!
Code:
~ $ eix elilo
* sys-boot/elilo
     Available versions:  *3.6_p20060314 (~)3.10 (~)3.12 (~)3.16
     Homepage:            http://elilo.sourceforge.net/
     Description:         Linux boot loader for EFI-based systems such as IA-64
 
Old 06-22-2016, 06:37 PM   #38
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,258
Blog Entries: 24

Rep: Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193
I have been fortunate (or not, depending on POV), and have not yet acquired anything UEFI.

I am sure the day will come soon enough, at which time I'll know who to ask for advice, ahem... Emerson and Didier...

I am glad to know there is an alternative to GrubX - I have never been able to make peace with the grubby loaders.
 
  


Reply


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
[SOLVED] Unable to mount internal sata drive and external usb hard drive paulie_linux Linux - Desktop 1 06-25-2014 07:24 PM
Internal SATA Drive and external SATA Disk Array. bruceharbin Linux - Hardware 1 05-25-2009 12:33 AM
Kernel panic on boot with new SATA drive Slackware 12 kernel: 2.6.21.5 theapodan Linux - Hardware 3 05-18-2009 03:02 PM
External/Internal SATA hard drive chrismiceli General 1 04-13-2008 12:16 AM
IDE external drive on SCSI internal kubuntu laptop MoXplorer Linux - Hardware 6 04-26-2007 11:09 AM

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

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