LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel Panic: could not find kernel image (https://www.linuxquestions.org/questions/slackware-14/kernel-panic-could-not-find-kernel-image-4175528263/)

Ztcoracat 12-14-2014 04:11 PM

Kernel Panic: could not find kernel image
 
Hi:

My 64-bit AMD desktop is in kernel panic mode.

I tried using the Live Slackware DVD and at the prompt I typed:
mount /dev/sda1 /mnt. The konsole than returned: Could not find kernel image. So I tried typing huge.s to see if it would boot the kernel.

Do I have to complete a fresh installation of Slackware?

The screen went to black and than displayed this message:

number22 12-14-2014 04:49 PM

mismatch kernel and glibc or missing file system modules to read disk.

you probably trying boot from older Slackware cd/dvd to boot later versions Slackware root disk.

Ztcoracat 12-14-2014 04:55 PM

Here's some more details about the circumstances:

This desktop has 2 hard drives.
The 500 GB HDD Western Digital is what I installed Slackware to over the summer.
The new drive that I just installed last week is a Seagate 1 TB HDD and I installed Debian on it.

The first installation of Debian failed. It would take me to a log-in, I'd log in the screen flashed black and
took me directly back to log-in again. Due to the failure I re-installed Debian again and the second install worked properly.

Before I installed Debian I edited the lilo.conf file with a argument letting LILO know about Debian:
Code:

other = /dev/sdb
lablel = debian

I didn't have sound at the first boot of Debian nor at all the other previous boots either.
I booted into Slackware yesterday and the video's would play for a minute but crash.
After rebooting into Slackware I'm stuck in kernel panic mode.
I put the Slackware DVD in the CDROM drive and shut down the tower.

Once the Slackware DVD boots I don't know what to try at this point.

Ztcoracat 12-14-2014 04:57 PM

Quote:

Originally Posted by number22 (Post 5284637)
mismatch kernel and glibc or missing file system modules to read disk.

you probably trying boot from older Slackware cd/dvd to boot later versions Slackware root disk.

The Live Slackware DVD I'm booting with is Slackware 14.1-

Can anything be done at this point or do I need to re-install?

Ser Olmy 12-14-2014 04:59 PM

Quote:

Originally Posted by Ztcoracat (Post 5284610)
I tried using the Live Slackware DVD and at the prompt I typed:
mount /dev/sda1 /mnt. The konsole than returned: Could not find kernel image.

That's not the Linux console, it's the bootloader prompt. You can specify the name of one of the kernel images on the DVD and various parameters, but you cannot run commands.

Have you tried booting the system by following the onscreen instructions? Those that start with "In a pinch, you can boot your system from here..."?

If you type huge.s root=/dev/sda1 rdinit= ro (note the space after rdinit=), the bootloader will load the "huge.s" kernel from the DVD, which in turn will try to mount /dev/sda1 as the root file system. If you installed Slackware to a partition other than /dev/sda1, modify the command line accordingly.

number22 12-14-2014 05:16 PM

Quote:

Originally Posted by Ztcoracat (Post 5284640)
The Live Slackware DVD I'm booting with is Slackware 14.1-

Can anything be done at this point or do I need to re-install?

Maybe your disk has older version Slackware, it is best and easy just reinstall with new Slackware.

Live DVD is not same as installation DVD, if you arleady has live DVD then you already has a working slackware, you just need lsblk to see all disk, and then use mount command to chose disk to mount.

Ztcoracat 12-14-2014 05:30 PM

Quote:

Originally Posted by Ser Olmy (Post 5284642)
That's not the Linux console, it's the bootloader prompt. You can specify the name of one of the kernel images on the DVD and various parameters, but you cannot run commands.

Have you tried booting the system by following the onscreen instructions? Those that start with "In a pinch, you can boot your system from here..."?

If you type huge.s root=/dev/sda1 rdinit= ro (note the space after rdinit=), the bootloader will load the "huge.s" kernel from the DVD, which in turn will try to mount /dev/sda1 as the root file system. If you installed Slackware to a partition other than /dev/sda1, modify the command line accordingly.


If I recall correctly it's kernel 3.10. but I don't remember the extension-
I haven't booted the system by following the onscreen instructions because the on screen instructions take me directly into a fresh installation.

Do you mean that there should not be a space after rdinit= it should look like this instead?
Code:

huge.s root=/dev/sda1 rdinit=ro

Ser Olmy 12-14-2014 05:35 PM

Quote:

Originally Posted by Ztcoracat (Post 5284653)
I haven't booted the system by following the onscreen instructions because the on screen instructions take me directly into a fresh installation.

It mounts your root file system and boots the installed Slackware system using the kernel from the DVD. It does not start the installer.
Quote:

Originally Posted by Ztcoracat (Post 5284653)
Do you mean that there should not be a space after rdinit= it should look like this instead?

There should definitely be a space after rdinit=. It means "do not use the supplied RAM disk image":
Code:

huge.s root=/dev/sda1 rdinit= ro

Ztcoracat 12-14-2014 05:43 PM

Ok, thanks; Ser Olmy:-

At the bootloader prompt I'll type it the way you've posted it in code tags.

Once it boots the installed Slackware os what should I do from there?
(aside from looking in /var/log to find out what's going on)

Ser Olmy 12-14-2014 05:48 PM

The error message says the kernel can't mount root, so you should check /etc/lilo.conf and make sure the root directive specifies the right partition. It looks like the current setting is /dev/sda2, actually.

If you make any changes to lilo.conf, remember to run lilo afterwards to apply the changes to the bootloader.

Ztcoracat 12-14-2014 06:20 PM

Quote:

Originally Posted by Ser Olmy (Post 5284660)
The error message says the kernel can't mount root, so you should check /etc/lilo.conf and make sure the root directive specifies the right partition. It looks like the current setting is /dev/sda2, actually.

If you make any changes to lilo.conf, remember to run lilo afterwards to apply the changes to the bootloader.

Booting the Live Slackware DVD now....

I'll post what I see in lilo.conf so you can see it, bb-

Ser Olmy 12-14-2014 06:24 PM

Quote:

Originally Posted by Ztcoracat (Post 5284667)
Booting the Live Slackware DVD now....

The Slackware DVD does not contain a live system, just the installer.

Ztcoracat 12-14-2014 06:34 PM

I tried to look at the /etc/lilo.conf at the boot prompt but that's not working.
After a few min's it appeared to boot the kernel image and now I'm being asked for info. on the keyboard-
Code:

$ Enter 1 to select a keyboard map.
What am I doing wrong?

Ser Olmy 12-14-2014 06:41 PM

Then you must have tried to run some sort of command from the boot prompt, which obviously didn't work. Eventually the default kernel booted with no options, leading you straight to the installer. That is not what you wanted.

This is what you need to do:
  1. Boot from the DVD
  2. At the boot prompt, type huge.s root=/dev/sda1 rdinit= ro and press Enter
  3. Wait as the kernel loads and the system boots
  4. Log in and troubleshoot the boot issue
If step 3 doesn't get you to the login prompt, try specifying /dev/sda2 as the root file system. If it still doesn't work, make a note of any error messages and return here.

Ztcoracat 12-14-2014 07:05 PM

Quote:

Originally Posted by Ser Olmy (Post 5284681)
Then you must have tried to run some sort of command from the boot prompt, which obviously didn't work. Eventually the default kernel booted with no options, leading you straight to the installer. That is not what you wanted.

This is what you need to do:
  1. Boot from the DVD
  2. At the boot prompt, type huge.s root=/dev/sda1 rdinit= ro and press Enter
  3. Wait as the kernel loads and the system boots
  4. Log in and troubleshoot the boot issue
If step 3 doesn't get you to the login prompt, try specifying /dev/sda2 as the root file system. If it still doesn't work, make a note of any error messages and return here.

I tried steps 1-3 and never make it to log in. I also tried /dev/sda2 as well--
After the kernel loads this is what I have:

Code:

No filesystem could mount root tried: reiserts ext3 ext 2 ext4 vfat msdos iso96 60 ntfs romfs
udf jfs sfs ocfs2 btrfs

Kernel panic-not syncing: vfs Unable to mount root fs on unknown-block (8,1)
Call Trace
dum_stack +0x9d/0x1b
panic +0xc2/0x1ba
mount_block_root+0x2aa/0x2bg
Mount_root+0x9d/0xa0
prepare_namespac+0x16c/0x1a4
kernel_init_freeable+0x1d1/0x1df
? do_early_param+0x88/0x88
? rest_init+0x80/0x80
ret_from_fork+0x7c/0xbo
? rest_init+0x80/0x80

The prompt is flashing as well as the lights on the keyboard and the keyboard is temporarily not working.


All times are GMT -5. The time now is 08:02 AM.