LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   noobie first time installing slackware having some boot up issues (https://www.linuxquestions.org/questions/slackware-installation-40/noobie-first-time-installing-slackware-having-some-boot-up-issues-4175734280/)

MAYBL8 02-26-2024 11:10 AM

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


Petri Kaukasoina 02-26-2024 12:04 PM

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.

MAYBL8 02-26-2024 12:08 PM

I don't recall choosing one or the other.

colorpurple21859 02-26-2024 12:19 PM

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.

MAYBL8 02-26-2024 12:40 PM

1 Attachment(s)
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.

colorpurple21859 02-26-2024 02:14 PM

Post the contents of /boot/grub/grub.cfg

MAYBL8 02-26-2024 02:26 PM

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 ###


colorpurple21859 02-26-2024 07:27 PM

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.

MAYBL8 02-26-2024 07:46 PM

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


colorpurple21859 02-26-2024 08:23 PM

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.

MAYBL8 02-26-2024 08:45 PM

1 Attachment(s)
OK that seemed to make it worse.
I got a kernel panic message with allot of other lines of code.
See attached.

colorpurple21859 02-26-2024 09:07 PM

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

MAYBL8 02-26-2024 09:21 PM

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.

colorpurple21859 02-26-2024 09:45 PM

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.

MAYBL8 02-26-2024 09:55 PM

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 06:40 PM.