LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-21-2010, 02:54 AM   #1
DonaldUK
Member
 
Registered: Apr 2004
Posts: 106

Rep: Reputation: 15
kernel update problem


OK, I'm running Slacware current. Ran the updates this morning, including kernel 2.6.33.2. I always get nervous about that since something often goes wrong. Sure enough -

trying to boot I get

No kewrnel modules found for Linux 2.6.33.2-smp
mount: mounting /dev/sda9 on /mnt failed: No such device
ERROR: No /sbin/init found on rootdev ( or not mounted )

and failure to proceed with booting. I got an original warning about the initial ram disk being too big to fit and switched to using generic kernel, and yes I did run lilo afterwards and did add the initrd.gz line.

Any help would be appreciated. I run Ubuntu on the same laptop and have to boot into that and work as chroot in my Slackware partition to try and fix things.

Donald
 
Old 04-21-2010, 03:23 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,520

Rep: Reputation: 100Reputation: 100
Have you tried manually downloading that kernel and configuring, compiling, and installing it by hand as a "secondary" kernel?

I always tend to avoid auto-updates precisely for the reason you specify - they too often go completely wrong.

However, I've compiled several kernels by hand, it really is not that hard. What you'd probably encounter is that the kernel compilation will stop somewhere with a descriptive error message... and THAT is what you want. Then you'll probably be able to know why the auto-update failed on your system with your particular hardware. You've probably got something in the new kernel that invalidates it for use on your system.

My advice would thus be to download the kernel version you want to run, and compile it "by hand".

I've also had newly compiled kernels fail to boot - which is why I've always kept my older, working kernel in my grub.conf. So if a kernel fails to boot, it is as simple as hitting reset and simply selecting the older, working kernel for booting in grub when the system starts up. Then I can tinker with the recalcitrant new kernel's config and try to compile it again.

I suspect the auto-update did NOT leave the older, working kernel around as a backup, or did it?
 
Old 04-21-2010, 03:26 AM   #3
tmkd
Member
 
Registered: Mar 2010
Posts: 31

Rep: Reputation: 0
I think new kernel doesnot have some modules/drivers for disk controler. Do you have marked it in configuration?
 
Old 04-21-2010, 05:27 AM   #4
DonaldUK
Member
 
Registered: Apr 2004
Posts: 106

Original Poster
Rep: Reputation: 15
Sadly I haven't got an older kernel saved to switch to. Note to self, always keep a working version I can revert to in future!

Lack of modules/drivers sounds like that might be it. It's complaining there is no /proc/partitions and cannot find /dev/sda9.

Queston - why release a kernel without the necessary modules/drivers?

What do I do now to get my Slackware back? Am thinking I will simply re-install (loathe to go through that again though) Slackware 13.0 and update to that, avoiding 'current' in future.

Don
 
Old 04-21-2010, 05:38 AM   #5
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,520

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by tmkd View Post
I think new kernel doesnot have some modules/drivers for disk controler. Do you have marked it in configuration?
Good point. Do you know if the person who put that update together did the

Code:
make modules
step of the kernel compilation? Were these modules then included in the actual kernel you eventually ended up with?

Omitting the "make modules" step might give the error messages on boot you posted. Do you have an IDE or SATA HDD?
 
Old 04-21-2010, 05:45 AM   #6
DonaldUK
Member
 
Registered: Apr 2004
Posts: 106

Original Poster
Rep: Reputation: 15
I have SATA I believe.

Don
 
Old 04-21-2010, 05:48 AM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,382

Rep: Reputation: Disabled
The modules package should have been updated too. Not sure why it wasn't but it could be that your mirror wasn't completely updated.

http://slackware.mirrors.tds.net/pub...3.2-i486-1.txz

I would try doing slackpkg upgrade-all again.

Last edited by dive; 04-21-2010 at 05:49 AM.
 
Old 04-21-2010, 06:04 AM   #8
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.2 64bit
Posts: 915
Blog Entries: 5

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by DonaldUK View Post
I got an original warning about the initial ram disk being too big to fit and switched to using generic kernel, and yes I did run lilo afterwards and did add the initrd.gz line.
It would be helpful if you could detail the steps you have taken.

Did you run lilo before adding the initrd.gz? It should be the other way around.
Did you create the /boot/initrd.gz in the first place using mkinitrd (refer to /boot/mkinitrd.README or something like that. I'm sorry but I'm not in front of my Slacwkare machine right now)?

Useful information is available at README.initrd

Also what was your starting point before upgrade: Slackware 13.0 or latest -current (i.e. dated 5th April 2010)?
 
Old 04-21-2010, 08:02 AM   #9
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
Originally Posted by gegechris99 View Post
]

Also what was your starting point before upgrade: Slackware 13.0 or latest -current (i.e. dated 5th April 2010)?
Current was updated yesterday, it is entirely possible that there was an incomplete update if run in the last 12 - 18 hours.
 
Old 04-22-2010, 02:11 AM   #10
DonaldUK
Member
 
Registered: Apr 2004
Posts: 106

Original Poster
Rep: Reputation: 15
Hello everyone, thanks for the replies.

I did run lilo after adding the initrd and made the initrd with makeinitrd.

I've booted into Ubuntu and chroot. Am trying to run slackpkg update but keep getting an error message -

Resolving ............. failed: Temporary failure in name resolution.
wget: unable to resolve host address .........
Error downloading from .............
Please check you mirror and try again.

I have tried different mirrors but always get this error message.

Don
 
Old 04-22-2010, 06:38 AM   #11
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
No kernel modules found for Linux 2.6.33.2-smp
mount: mounting /dev/sda9 on /mnt failed: No such device

These errors point to an incorrectly created initrd, most likely the correct kernel was not passed to mkinitrd.
By default mkinitrd is going use the running kernel, you have to tell it explicitly to use the newly added kerenl.

Last edited by XGizzmo; 04-22-2010 at 06:39 AM.
 
Old 04-22-2010, 07:40 AM   #12
DonaldUK
Member
 
Registered: Apr 2004
Posts: 106

Original Poster
Rep: Reputation: 15
Thanks Gizzmo. I did use the right kernel version. Even reran the whole mkinitrd process (and not forgetting to run lilo again afterwards). No effect - I still get the error message and cannot continue booting.

Any idea why I cant update from the mirrors?

Don
 
Old 04-22-2010, 08:22 AM   #13
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,285

Rep: Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646
Quote:
Originally Posted by DonaldUK View Post
OK, I'm running Slacware current. Ran the updates this morning, including kernel 2.6.33.2. I always get nervous about that since something often goes wrong. Sure enough -

trying to boot I get

No kewrnel modules found for Linux 2.6.33.2-smp
mount: mounting /dev/sda9 on /mnt failed: No such device
ERROR: No /sbin/init found on rootdev ( or not mounted )

and failure to proceed with booting.
What does
Code:
ls -l /boot/initrd-tree/lib/modules
show? What does
Code:
cat /boot/initrd-tree/load_kernel_modules
show?
 
Old 04-22-2010, 09:05 AM   #14
DonaldUK
Member
 
Registered: Apr 2004
Posts: 106

Original Poster
Rep: Reputation: 15
Richard,

I get

ls -l /boot/initrd-tree/lib/modules
drwxr-xr-x 3 root root 4096 2010-04-21 08:47 2.6.33.2

cat /boot/initrd-tree/load_kernel_modules
insmod -v /lib/modules/$(uname -r)/kernel/fs/mbcache/ko
insmod -v /lib/modules/$(uname -r)/kernel/fs/jbd/jbd.ko
insmod -v /lib/modules/$(uname -r)/kernel/fs/ext3/ext3.ko

Don
 
Old 04-22-2010, 09:25 AM   #15
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,285

Rep: Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646Reputation: 1646
For some reason, the kernel you are using to boot reports itself as 2.6.33.2-smp but the modules you are telling mkinitrd to put in the initrd are for 2.6.33.2.

I'm running Slackware64 13.0 and my SMP enabled kernel simply calls itself 2.6.29.6.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem with update to new kernel masterjml Red Hat 3 05-15-2009 12:04 PM
serious problem after kernel update valemon SUSE / openSUSE 9 03-12-2007 12:46 PM
Kernel update problem redhatbadboi Fedora 2 02-17-2005 05:00 PM
kernel update: problem with X tjuii Linux - General 6 03-15-2004 01:16 PM
modprode problem after update kernel karleong Linux - Newbie 10 09-22-2003 09:07 PM

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

All times are GMT -5. The time now is 05:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration