LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 02-03-2012, 01:13 PM   #1
kristizz
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 150

Rep: Reputation: 19
boot problem after update to current


Hello. I updated a 13.37 install to current. Well, not quite, I actually just changed /etc/slackpkg/mirror to current and did slackpkg update *kernel and edit lilo accordingly. I have an initrd in boot but didn-t do a new one because the required modules at boot haven't changed. Anyway, when I boot I get:

loading linuxebda is big;kernel setup stack overlaps lilo second stage.

Obviously not good.
Can some one tell me what this means?
 
Old 02-03-2012, 02:12 PM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,372

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
you should have made the new initrd.gz image, because the one you got cointains modules built for the old kernel, so the new one cannot load them.

try booting with a boot disk, chroot in your root partition, create the initrd for the new kernel and run "lilo".

I think the message you got is because you probably forgot to run lilo again after updating the kernel: the new one is located differently on the disk and lilo cannot find it, looking for the position of the old one that's not around anymore.
The positions of the kernels it has to look for are updated each time you run the "lilo" command, accordingly on what's in /etc/lilo.conf.

Last edited by ponce; 02-03-2012 at 02:19 PM.
 
Old 02-04-2012, 04:37 AM   #3
kristizz
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 150

Original Poster
Rep: Reputation: 19
Quote:
you should have made the new initrd.gz image, because the one you got cointains modules built for the old kernel, so the new one cannot load them.

try booting with a boot disk, chroot in your root partition, create the initrd for the new kernel and run "lilo".

I think the message you got is because you probably forgot to run lilo again after updating the kernel: the new one is located differently on the disk and lilo cannot find it, looking for the position of the old one that's not around anymore.
The positions of the kernels it has to look for are updated each time you run the "lilo" command, accordingly on what's in /etc/lilo.conf.
Thanks for help. I didn't write my question very well. I should have said that I ran lilo before rebooting and kept getting errors. I ran sh /usr/share/mkinitrd/mkinitrd_command_generator.sh -i to build my initrd, but got this:

Code:
ash-4.1# sh /usr/share/mkinitrd/mkinitrd_command_generator.sh -i
Modules for kernel 2.6.37.6 aren't installed.
I did a clean install and upgraded to current (only took 20 mins!), but still get the mkinitrd_command_generator_looking.sh looking for 2.6.37.6 modules, and not seeing the 3.2.2 modules that are definitely there.

I'm going try and understand how the script works to see if I can do anything with it, but the basic problem is that it obviously can't accurately read the contents of /lib/modules.

I'm also going to look at writing a mkinitrd command manually to force it to use the right modules.
 
Old 02-04-2012, 05:18 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,372

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Code:
mkinitrd -c -k 3.2.2 -f ext4 -r /dev/sda7 -m ext4 -u -o /boot/initrd.gz
if you're using ext4 and don't need special hardware modules, this should do (substitute /dev/sda7 with your root device)

you can also do a
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 3.2.2

Last edited by ponce; 02-04-2012 at 05:23 AM.
 
1 members found this post helpful.
Old 02-06-2012, 03:49 AM   #5
kristizz
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 150

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by ponce View Post
Code:
mkinitrd -c -k 3.2.2 -f ext4 -r /dev/sda7 -m ext4 -u -o /boot/initrd.gz
if you're using ext4 and don't need special hardware modules, this should do (substitute /dev/sda7 with your root device)

you can also do a
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 3.2.2
All sorted. Luckily I had kept a copy of the mkinitrd command that I had generated when I did the original install. I just changed the target kernel and it's fine.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] start KDE error after update to -current but interrupted by electricity problem ! el_jauzaa Slackware 2 09-13-2010 12:43 AM
Slackware current : boot problem on ata disk carla schneider Slackware - Installation 1 05-12-2010 02:35 AM
[SOLVED] custom kernel not boot after current lastest update zhoun Slackware 13 03-06-2010 09:33 PM
Problem with pppd after new udev update from -current niels.horn Slackware 8 10-10-2008 07:30 AM
alsa problem after the latest slackware-current update perfect_circle Slackware 8 04-26-2006 02:15 PM


All times are GMT -5. The time now is 09:35 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration