[SOLVED] noobie first time installing slackware having some boot up issues
Slackware - InstallationThis 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.
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.
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
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.
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.
#
# 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 ###
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
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.