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.
|
 |
|
02-26-2024, 11:10 AM
|
#1
|
Member
Registered: Dec 2014
Posts: 30
Rep: 
|
noobie first time installing slackware having some boot up issues
Here is what I am getting when I boot. Let me know what info you need.
Code:
modprobe: ERROR: could not insert 'jbd2': Exec format error
modprobe: ERROR: could not insert 'mbcache': Exec format error
modprobe: ERROR: could not insert 'ext4': Exec format error
mount: can't find /mnt in /etc/fstab
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
/bin/sh: can't access tty; job control turned off
Here is my fstab:
Code:
/dev/sda2 / ext4 defaults 1 1
/dev/sda1 /boot/efi vfat defaults 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
#/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs nosuid,nodev,noexec 0 0
Last edited by MAYBL8; 02-28-2024 at 07:19 PM.
|
|
|
02-26-2024, 12:04 PM
|
#2
|
Senior Member
Registered: Mar 2007
Posts: 2,522
|
Did you install a 32-bit or a 64-bit version of Slackware? The error messages look like you had somehow mixed 32-bit modules and a 64-bit kernel, or vice versa.
|
|
|
02-26-2024, 12:08 PM
|
#3
|
Member
Registered: Dec 2014
Posts: 30
Original Poster
Rep: 
|
I don't recall choosing one or the other.
|
|
|
02-26-2024, 12:19 PM
|
#4
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
Post the contents of the efi partition EFI/Slackware/elilo.conf
I think the "modprobe: ERROR: could not insert" are normal errors when using an initrd with the huge kernel.
Last edited by colorpurple21859; 02-26-2024 at 12:36 PM.
|
|
|
02-26-2024, 12:40 PM
|
#5
|
Member
Registered: Dec 2014
Posts: 30
Original Poster
Rep: 
|
I had to repost this. It didn't post for some reason.
I don't seem to have that folder or file.
One thing I didn't mention is I tried elilo but that failed so I installed GRUB.
See attachment for my boot tree.
|
|
|
02-26-2024, 02:14 PM
|
#6
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
Post the contents of /boot/grub/grub.cfg
|
|
|
02-26-2024, 02:26 PM
|
#7
|
Member
Registered: Dec 2014
Posts: 30
Original Poster
Rep: 
|
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=dejavusansmono
else
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
font="/usr/share/grub/dejavusansmono.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-15.0 GNU/Linux' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux 5.15.19 ...'
linux /boot/vmlinuz-huge-5.15.19 root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
submenu 'Advanced options for Slackware-15.0 GNU/Linux' $menuentry_id_option 'gnulinux-advanced-cbb69fc5-4026-4770-a241-a889d10d5636' {
menuentry 'Slackware-15.0 GNU/Linux, with Linux 5.15.19' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.19-advanced-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux 5.15.19 ...'
linux /boot/vmlinuz-huge-5.15.19 root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux 5.15.19 (recovery mode)' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.19-recovery-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux 5.15.19 ...'
linux /boot/vmlinuz-huge-5.15.19 root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux huge' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-huge-advanced-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux huge ...'
linux /boot/vmlinuz-huge root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux huge (recovery mode)' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-huge-recovery-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux huge ...'
linux /boot/vmlinuz-huge root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux 5.15.19' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.19-advanced-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux 5.15.19 ...'
linux /boot/vmlinuz-generic-5.15.19 root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux 5.15.19 (recovery mode)' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.19-recovery-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux 5.15.19 ...'
linux /boot/vmlinuz-generic-5.15.19 root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux generic' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-advanced-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux generic (recovery mode)' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-recovery-cbb69fc5-4026-4770-a241-a889d10d5636' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 cbb69fc5-4026-4770-a241-a889d10d5636
else
search --no-floppy --fs-uuid --set=root cbb69fc5-4026-4770-a241-a889d10d5636
fi
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
|
|
|
02-26-2024, 07:27 PM
|
#8
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
At the grub menu go to advance options menu and select the fifth or seventh menu entry, one of the last ones that doesn't have recovery in the title.
|
|
|
02-26-2024, 07:46 PM
|
#9
|
Member
Registered: Dec 2014
Posts: 30
Original Poster
Rep: 
|
I tried both of them and they both ended with theses messages:
Code:
mount: can't find /mnt in /etc/fstab
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type 'exit' when things are done.
/bin/sh: can't access tty; job control turned off
|
|
|
02-26-2024, 08:23 PM
|
#10
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
At the grub menu, at the first menu entry press e for edit,
at the line that starts with linux change root=UUID=cbb69fc5-4026-4770-a241-a889d10d5636 to root=/dev/sda2 and delete the initrd line, ctrl-x or f10 to boot.
|
|
|
02-26-2024, 08:45 PM
|
#11
|
Member
Registered: Dec 2014
Posts: 30
Original Poster
Rep: 
|
OK that seemed to make it worse.
I got a kernel panic message with allot of other lines of code.
See attached.
|
|
|
02-26-2024, 09:07 PM
|
#12
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
If you only have one drive and slackware is on the second partition, change /dev/sda2 in the fstab to /dev/nvme0n1p2, at the grub menu edit the first menu as before except change /dev/sda2 to /dev/nvme0n1p2. If it boots regenerate the initrd and the /boot/grub/grub.cfg file
|
|
|
02-26-2024, 09:21 PM
|
#13
|
Member
Registered: Dec 2014
Posts: 30
Original Poster
Rep: 
|
That doesn't make sense to me.
Here is lsblk:
Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 28.9G 0 disk
├─sda1 8:1 1 954M 0 part
└─sda2 8:2 1 28G 0 part
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 529M 0 part
├─nvme0n1p2 259:2 0 499M 0 part /boot/efi
├─nvme0n1p3 259:3 0 16M 0 part
├─nvme0n1p4 259:4 0 219G 0 part
├─nvme0n1p5 259:5 0 961M 0 part
├─nvme0n1p6 259:6 0 90G 0 part
├─nvme0n1p7 259:7 0 399.6G 0 part /home
├─nvme0n1p8 259:8 0 163G 0 part /
├─nvme0n1p9 259:9 0 42G 0 part
├─nvme0n1p11 259:10 0 16G 0 part
└─nvme0n1p12 259:11 0 3M 0 part
I didn'think it mattered but slackware is installed on a usb flash drive.
The nvme0n1 drive is my ssd drive.
|
|
|
02-26-2024, 09:45 PM
|
#14
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
Quote:
That doesn't make sense to me.
|
That was the if in having only one drive, if the answer is no do as post 12, however the answer is yes so ignore post 12.
Quote:
I didn'think it mattered but slackware is installed on a usb flash drive
|
Yes it does matter and is need to know information
The initrd needs to be rebuilt with usb drivers added to the mix: usb-storage xhci_pci ehci-pci and maybe some others to boot from a usb.
Last edited by colorpurple21859; 02-26-2024 at 09:52 PM.
|
|
|
02-26-2024, 09:55 PM
|
#15
|
Member
Registered: Dec 2014
Posts: 30
Original Poster
Rep: 
|
Quote:
The initrd needs to be rebuilt with usb drivers added to the mix: usb-storage xhci_pci ehci-pci and maybe some others to boot from a usb.
|
At this point in my learning of how to use or install slackware this over my head.
Where can I go to learn how to build initrd with what is needed?
Thanks
|
|
|
All times are GMT -5. The time now is 02:38 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
|
|