LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 02-26-2024, 11:10 AM   #1
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Rep: Reputation: Disabled
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.
 
Old 02-26-2024, 12:04 PM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,826

Rep: Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499
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.
 
Old 02-26-2024, 12:08 PM   #3
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
I don't recall choosing one or the other.
 
Old 02-26-2024, 12:19 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
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.
 
Old 02-26-2024, 12:40 PM   #5
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
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.
Attached Files
File Type: txt tree.txt (42.3 KB, 11 views)
 
Old 02-26-2024, 02:14 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
Post the contents of /boot/grub/grub.cfg
 
Old 02-26-2024, 02:26 PM   #7
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
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 ###
 
Old 02-26-2024, 07:27 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
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.
 
Old 02-26-2024, 07:46 PM   #9
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-26-2024, 08:23 PM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
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.
 
Old 02-26-2024, 08:45 PM   #11
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
OK that seemed to make it worse.
I got a kernel panic message with allot of other lines of code.
See attached.
Attached Thumbnails
Click image for larger version

Name:	IMG_2365.JPG
Views:	16
Size:	142.1 KB
ID:	42598  
 
Old 02-26-2024, 09:07 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
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
 
Old 02-26-2024, 09:21 PM   #13
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-26-2024, 09:45 PM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
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.
 
Old 02-26-2024, 09:55 PM   #15
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
First post for a noobie Jarhead5500 LinuxQuestions.org Member Intro 1 04-06-2023 01:31 AM
[SOLVED] Having some trouble running the broadcom wireless drivers slackbuild script [first time using slackbuilds] 700 Slackware 2 06-27-2019 02:32 PM
really enjoying slackware as a noobie..... have some q's r3b0rn Slackware 11 09-28-2007 02:06 AM
Noobie to Linux! First time installer! chowda633 Slackware 8 10-12-2003 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration