SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I'm not exactly why this is happening, really, and can I hot plug it in and use it without issue, but I just really want to figure out why this is happening. I got this hard drive about a month ago and went to install it. I try to boot up Slackware, and I can't and startup crashes/kernel panics abruptly. I remove the drive, it boots up fine.
I got a picture of what it outputs before crashing, and I linking it here because it is too big to attach. I really hope I can get this issue solved because I really don't like to hot plug the drive in.
Any thoughts/anyone else had this issue before? I'm sorry if I'm not being very descriptive, just let me know if you need more information and I hope everyone is having a good holiday season!
What and where are you booting from when things work?
Where are you installing this second drive?
Since the second drive is Slackware, could you post the lilo.conf file please.
This is a desktop, and it is a sata connection, if that is what you are asking. It boots up and works when I disconnect the hard drive, but works and reads/mounts fine when I hot plug it in after I boot up
I am using elilo, since this is UEFI, and it's conf is:
Post your elilo.conf file. I am not familiar with UEFI, or elilo for that matter. My systems are not that new. There are lots of people here who are. I'm usre someone can tell us what is wrong with your configuration.
The one thing I see that is wrong, if this new drive is sdc, you have root set to sda5. That will not work.
Post your elilo.conf file. I am not familiar with UEFI, or elilo for that matter. My systems are not that new. There are lots of people here who are. I'm usre someone can tell us what is wrong with your configuration.
The one thing I see that is wrong, if this new drive is sdc, you have root set to sda5. That will not work.
I did post the conf file.
SDA is where my /, /home/ and /usr/local are mounted, sdc is the new hard drive is. This new hard drive is just for extra space, it is not where linux is installed to, if that is what you are thinking.
edit: I think I read your post wrong
Last edited by theactionindex; 12-25-2015 at 02:15 PM.
Do that for each partition reference and run lilo again (in your case, eliloconfig I think) and you should be ready for this and any future drive changes.
At second thought if you plug in the second hard drive when Slackware is running then your Linux partition is still known as /dev/sda5 at time of running eliloconfig, so that's what liloconfig writes again in elilo.conf, alas.
But if you try to boot with the second drive already plugged in the second is known as /dev/sdb and the root partition named /dev/sdb5 as you last pic obviously shows. To avoid that, you have two ways.
1) Read efibootmgr's man page carefully and run it directly
2) Probably easier
Plug in your second hard drive
Insert the DVD with Slackware64-14.1
Reboot
use the installer as usual but do not reformat your root partition, at time of installing the packages just press "Cancel" then accept to configure your system and install elilo
Then eliloconfig will tell you:
Quote:
An old Slackware boot entry has been found in your EFI boot menu. Would you like to remove this before installing the new Slackware boot entry? This is recommended.
Confirm, as you don't want to keep the old (and wrong) lilo entry.
You can skip all other configuration steps.
Tell us how that goes.
All this been said, I will probably propose a patch to eliloconfig, so that it directly uses the UUID instead of partition name. I must first check that it's allowed though. Maybe not that easy as elilo is abandonware...
PS If you are lucky, maybe just replacing /dev/sda5 with /dev/sdb5 in elilo.conf would be enough and would avoid all that hassle. Try that first, then reboot with the second drive plugged in.
Caveat emptor: if that works rebooting with you second drive not plugged in you will get a kernel panic again. You can't have your cake and eat it... Then you could try to write the UUID instead of /dev/sdb5 in elilo.conf.
I will make some tests myself in the coming days.
PPS I didn't pay enough attention, it seems. The last pic probably shows that you still had a wrong /etc/fstab, with /dev/sda5 used as the root of / partition.
Of course you should insure that this setting in /etc/fstab be consistent with the partition set as root in elilo.conf.
Last edited by Didier Spaier; 12-27-2015 at 12:32 PM.
Reason: PPS added.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.