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
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-06-2016, 11:19 PM   #1
lzhiren
LQ Newbie
 
Registered: Oct 2014
Distribution: Slackware
Posts: 14

Rep: Reputation: Disabled
How to run lilo without booting in


I think I forgot to run lilo after a kernel update and now I can't boot.

I get the message
Loading SlackwareEBDA is big: kernel setup stack overlaps LILO second stage

I think I have to run LILO but I'm not sure how. Or if the problem is something else please let me know.
 
Old 02-06-2016, 11:51 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
You can boot to your installation media, mount the root partition, chroot into it and run lilo.

Just to be complete, boot into your installation media and login as root (no passwd), then...

Code:
mount /dev/sdxy /mnt (where x is the Slackware drive and y is the root partition)

mount --bind /proc /mnt/proc *** See below ***
mount --bind /dev /mnt/dev

chroot /mnt

vi /etc/lilo.conf
...make any necessary edits for the new kernel...

lilo
Then reboot...

That should work for most cases I think.

Try it and post back if you get stuck anywhere.

**** Update ****

It has been a while since I did this - it now occurs to me that will need to bind the /dev directory at least, and maybe the /proc directory before chrooting...

So after mount and before chroot in the steps above add these... (I have now done this - sorry if that created any confusion for you!)

Code:
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
...that will assure that lilo can see the /dev/sdx partitions!

Last edited by astrogeek; 02-07-2016 at 12:24 AM. Reason: Added bind mounts
 
Old 02-07-2016, 12:23 AM   #3
lzhiren
LQ Newbie
 
Registered: Oct 2014
Distribution: Slackware
Posts: 14

Original Poster
Rep: Reputation: Disabled
So I did what you said and ran lilo. It now boots up but stops and says it failed to mount /dev/sda2 (my root partition) on /mnt because it does not exist. I think the problem might be that when I ran slackpkg to update I forgot to tell it to use the new .conf files. So what should I do now?
 
Old 02-07-2016, 12:31 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by lzhiren View Post
So I did what you said and ran lilo. It now boots up but stops and says it failed to mount /dev/sda2 (my root partition) on /mnt because it does not exist. I think the problem might be that when I ran slackpkg to update I forgot to tell it to use the new .conf files. So what should I do now?
It should not be trying to mount /dev/sda2 on /mnt during boot unless you changed your /etc/fstab...?

Please post the contents of /etc/fstab from the /root partition. Also the boot= line and image lines frrom /etc/lilo.conf.

Also please be very clear about when it fails to mount the /dev/sda2 partition, normal boot or when mounting while booted to the install media.
 
Old 02-07-2016, 12:44 AM   #5
lzhiren
LQ Newbie
 
Registered: Oct 2014
Distribution: Slackware
Posts: 14

Original Poster
Rep: Reputation: Disabled
So I played around a little bit, and I remembered that I forgot to make a new initrd. So I ran mkinitrd and created a new one for my new kernel and everything works fine now. Thanks for all your help, astrogeek I really appreciate it.
 
Old 02-07-2016, 12:46 AM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by lzhiren View Post
So I played around a little bit, and I remembered that I forgot to make a new initrd. So I ran mkinitrd and created a new one for my new kernel and everything works fine now. Thanks for all your help, astrogeek I really appreciate it.
Ah great! That was on my list of next questions to ask, "Huge or generic?"...

You are welcome, glad you got it going!
 
  


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
[SOLVED] Edit lilo.conf, run /sbin/lilo, but lilo won't take changes lukameen Slackware 2 02-10-2012 12:10 PM
[SOLVED] How to run lilo from install dvd to reinstall lilo to MBR? timetraveler Slackware - Installation 5 04-28-2010 01:48 PM
[SOLVED] LILO fails when run from live CD after installing Slack (skipped LILO during setup) sysfce2 Linux - Newbie 7 08-04-2009 12:16 AM
lilo trashed, when booting from cd, lilo command is not present wakeboarder3780 Linux - Software 3 03-23-2006 05:02 PM
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 11:21 AM

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

All times are GMT -5. The time now is 07:25 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