Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
03-18-2021, 04:12 PM
|
#1
|
Member
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518
Rep:
|
14.2 install goes normally, but will not reboot, gives grub command line instead
asus L210, installing slackware 14.2
system has uefi bios that permits usb install if Esc key held down when Power switch pressed. I disabled Secure Boot as slackware was not acceptable, unsigned.
I deleted every partition shown by cgdisk on /dev/mmcblk0, and set up 3 partitions,
Code:
1 type EF00 300MB
2 type 8300 20GB
3 type 8300 15GB, this last for /home
Install proceeded normally, but slackware would not reboot, gave me grub command line instead. Nor could I boot the install from the slackware usb, any of the choices offered led to Kernel Panic.
Back in the uefi bios, I noticed a difference, it no longer offered boot option from HDD, showing it only as a Storage device.
I then reinstalled Lubuntu 18.04, which succeeded, and also restored the HDD as a boot option in the uefi bios. So I assume the way I partitioned the HDD in slackware offended the bios, but I have no clue as to why. Any suggestions?
I reinstalled slackware, using the same partitions created by lubuntu, but got the same result, reboot went to grub command line instead. But the uefi bios still shows the HDD as 1st boot option.
Now I have reinstalled lubuntu, side-by-side with slackware. On the reboot grub offered both slackware and lubuntu as boot options, but choosing slackware led to Kernel Panic again.
Last edited by porphyry5; 03-18-2021 at 04:59 PM.
Reason: Add info for reinstall of lubuntu
|
|
|
03-19-2021, 09:06 AM
|
#2
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
 Probably Grub does not know how to access NVMe drive. I have no Grub experience, it is not suitable for me, therefore can't tell how to configure Grub for NVMe access, but they have excellent documentation online for you to read.
|
|
1 members found this post helpful.
|
03-19-2021, 10:38 AM
|
#3
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,811
|
Quote:
gave me grub command line
|
Did your run
Code:
grub-mkconfig -o /boot/grub/grub.cfg
after running grub-install?
|
|
1 members found this post helpful.
|
03-19-2021, 02:02 PM
|
#4
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,811
|
Quote:
but choosing slackware led to Kernel Panic again.
|
I think you need to create a /boot/initrd.gz to boot slackware on a nvme drive.
|
|
1 members found this post helpful.
|
03-19-2021, 02:24 PM
|
#5
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Hold your horses, Grub can't even find the kernel, it is Grub issue right now, not kernel-initrd. At least this is what initial post tells, although the 'kernel panic' remark is confusing.
Last edited by Emerson; 03-19-2021 at 02:26 PM.
|
|
|
03-19-2021, 02:41 PM
|
#6
|
Member
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518
Original Poster
Rep:
|
Quote:
Originally Posted by Emerson
Life is a tragedy for those who feel and a comedy for those who think.
|
But what if you do both?
Thanks for the referral to grub documentation. I love slackware, eventually, when one finally gets it going, probably on the principle that we love that which makes us suffer. ubuntu is like windows, a convenient annoyance that works out of the box.
|
|
|
03-19-2021, 02:43 PM
|
#7
|
Member
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518
Original Poster
Rep:
|
Quote:
Originally Posted by colorpurple21859
Did your run
Code:
grub-mkconfig -o /boot/grub/grub.cfg
after running grub-install?
|
No, but why should I have needed to, this isn't Arch?
|
|
|
03-19-2021, 02:47 PM
|
#8
|
Member
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518
Original Poster
Rep:
|
Quote:
Originally Posted by colorpurple21859
I think you need to create a /boot/initrd.gz to boot slackware on a nvme drive.
|
OK, so given Emerson's 2nd post, I'll do another install and try grub command at its command line.
|
|
|
03-19-2021, 02:56 PM
|
#9
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,811
|
Quote:
No, but why should I have needed to, this isn't Arch?
|
You are right Slackware isn't Arch, Slackware isn't like any other distro either, so yes you have to run grub-mkconfig. Slackware does not auto-run grub-mkconfig or mkinitrd during kernel updates either.
Last edited by colorpurple21859; 03-19-2021 at 02:59 PM.
|
|
2 members found this post helpful.
|
03-19-2021, 03:07 PM
|
#10
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Quote:
Originally Posted by porphyry5
OK, so given Emerson's 2nd post, I'll do another install and try grub command at its command line.
|
Hope you don't mean installing Slackware again? All you need to do is chroot and run grub-mkconfig.
Regarding your question about that oriental proverb. Can't answer that. It would be off topic. Not to mention there is no way to sugarcoat it for you.
|
|
2 members found this post helpful.
|
03-19-2021, 03:25 PM
|
#11
|
Member
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518
Original Poster
Rep:
|
Quote:
Originally Posted by colorpurple21859
You are right Slackware isn't Arch, Slackware isn't like any other distro either, so yes you have to run grub-mkconfig. Slackware does not auto-run grub-mkconfig or mkinitrd during kernel updates either.
|
Not disputing what you say but I would have thought then that the install disk would have said run mkconfig instead of just reboot.
But as there are 2 distros on my HDD, I think I'd better study up on Grub first, it would be mortifying to lose access to both of them for doing just one command. Thanks for your help, be back in a few days to report progress.
|
|
|
03-19-2021, 03:29 PM
|
#12
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,811
|
Slackware installs lilo/elilo by default not grub. How did you install grub and/or what iso did you use?
|
|
1 members found this post helpful.
|
03-19-2021, 03:36 PM
|
#13
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Two or more distros, one Grub is enough, you can add Slackware to your existing Grub install, I think it is somewhere in Lubuntu /etc, /etc/grub perhaps.
|
|
|
03-19-2021, 03:37 PM
|
#14
|
Member
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518
Original Poster
Rep:
|
Quote:
Originally Posted by Emerson
Hope you don't mean installing Slackware again? All you need to do is chroot and run grub-mkconfig.
|
I did, but at the very last moment I drew back, realizing I might thereby lose access to the only working distro on the machine. Think I'll take a few days to study grub and chroot before doing anything.
Quote:
Regarding your question about that oriental proverb. Can't answer that. It would be off topic. Not to mention there is no way to sugarcoat it for you.
|
You know 'off topic' is the finest red herring ever since the original seduced sober and industrious fox-hounds two hundred years ago.
Sugarcoat? is for pollyannas, those people who refer to realists as cynics.
|
|
|
03-23-2021, 03:18 PM
|
#15
|
Member
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518
Original Poster
Rep:
|
Quote:
Originally Posted by colorpurple21859
Slackware installs lilo/elilo by default not grub. How did you install grub and/or what iso did you use?
|
Slackware was the 1st install, which failed, so then I installed lubuntu side-by-side with the slackware so that I would have a system to work from on this machine.
This is the content of my slackware/boot dir
Code:
/media/q/5bb5deec-0a16-4c5b-bc55-8d2fb1a8047f/boot $ ls
coffee.dat inside.dat tuxlogo.bmp
config@ onlyblue.bmp tuxlogo.dat
config-generic-4.4.14 onlyblue.dat vmlinuz@
config-huge-4.4.14 README.initrd@ vmlinuz-generic@
elilo-ia32.efi slack.bmp vmlinuz-generic-4.4.14
elilo-x86_64.efi System.map@ vmlinuz-huge@
grub/ System.map-generic-4.4.14 vmlinuz-huge-4.4.14
inside.bmp System.map-huge-4.4.14
Also, there is no etc/mkinitrd.config, only the sample showing the defaults, which reads
Code:
# mkinitrd.conf.sample
# See "man mkinitrd.conf" for details on the syntax of this file
#
#SOURCE_TREE="/boot/initrd-tree"
#CLEAR_TREE="0"
#OUTPUT_IMAGE="/boot/initrd.gz"
#KERNEL_VERSION="$(uname -r)"
#KEYMAP="us"
#MODULE_LIST="ext4"
#LUKSDEV="/dev/sda2"
#LUKSKEY="LABEL=TRAVELSTICK:/keys/alienbob.luks"
#ROOTDEV="/dev/sda1"
#ROOTFS="ext3"
#RESUMEDEV="/dev/sda2"
#RAID="0"
#LVM="0"
#UDEV="1"
#MODCONF="0"
#WAIT="1"
Now I'm considering running
Code:
sudo chroot /media/q/5bb5deec-0a16-4c5b-bc55-8d2fb1a8047f mkinitrd ...
but cannot figure how to specify what the input file should be. There is no existing .img file in boot/ to use, and otherwise mkinitrd defaults to $(uname -r), which will yield
Code:
$ sudo chroot /media/q/5bb5deec-0a16-4c5b-bc55-8d2fb1a8047f/ uname -r
4.15.0-139-generic
which is lubuntu.
Found slackware mini-howto for mkinitrd and have now run
Code:
/media/q/5bb5deec-0a16-4c5b-bc55-8d2fb1a8047f mkinitrd -c -k 4.4.14 -m ext4
which has duly generated /boot/initrd-tree and /boot/initrd.gz
Last edited by porphyry5; 03-23-2021 at 04:16 PM.
Reason: more info
|
|
|
All times are GMT -5. The time now is 03:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|