LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-09-2005, 11:03 AM   #1
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Rep: Reputation: 15
2.6.14 Not Booting (LILO Problem)


Okay, so I have been running kernel 2.6.14 for a while with Slackware-current, and until today everything was fine. Today, I recompiled the kernel to change some USB settings. At the end, LILO gave me a warning:

Code:
/proc/partitions does not match /dev directory structure.
Name change '/dev/hda2' -> '/dev/hda2'
part_nowrite check :: No such file or directory
When I rebooted and tried to load 2.6.14, it gives the cryptic:

Code:
EBDA is big; kernel setup stack overlaps LILO second stage
Right now I am booted into Knoppix 4.0. I can also get into my old 2.4.31 kernel, so I can recompile the 2.6 kernel or mess with LILO if need be.

I changed my partitions a few days ago, and I'm guessing that's what caused it. Here is what /proc/partitions looks like:

Code:
major minor  #blocks  name

   3     0   58605120 hda
   3     1     192748 hda1 # /boot
   3     2          1 hda2 # extended partition containing 3, 4, 5
   3     3   11864002 hda3 # swap
   3     4   12538732 hda4 # slackware /
   3     5     995998 hda5 # /home
   3     6    5855661 hda6 # ntfs win xp, booting fine
   3     7   27149818 hda7 # fat32 partition i just created to share between linux & windows
here's the relevant section of my fstab if it helps:

Code:
/dev/hda5        swap             swap        defaults         0   0
/dev/hda6        /                reiserfs    defaults         1   1
/dev/hda1        /boot            ext2        defaults         1   2
/dev/hda7        /home            reiserfs    defaults         1   2
/dev/hda3        /ntfs            ntfs        ro               1   0
/dev/hda4        /store           vfat        defaults         1   2
Anyway, so I think the creation of hda7 is somehow the problem, but I don't understand how it has to do with hda2. I'm guessing perhaps LILO needs some critical amount of space, and parted messed it up somehow by rounding, but I don't understand enough about partitioning to figure out why this is the case, or why 2.4 still loads fine. Is my 2.6 kernel just too big somehow? After this happened I tried recompiling and disabling the stuff I had earlier enabled. I might recompile it completely later and see if that helps, but let me know if there's anything obviously wrong with my set up . . .

Also tell me if there's any other information needed.
 
Old 11-09-2005, 03:16 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
i think you can mount your system partition r/w on that knoppix,
then " chroot " to it and run " lilo ".

see if it then boots.
( lilo wasn't run correctly )

egag
 
Old 11-09-2005, 10:40 PM   #3
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Original Poster
Rep: Reputation: 15
I can get into my 2.4.31 kernel. Running /sbin/lilo returns what I got above, namely

Code:
/proc/partitions does not match /dev directory structure.
Name change '/dev/hda2' -> '/dev/hda2'
part_nowrite check :: No such file or directory
I have completely recompiled the Kernel, it seems to be a problem with LILO. I can't figure out how to fix LILO, I think it has more to do with the partitions.

I have tried lilo -F and lilo -P ignore but I am too afraid to try lilo -P fix. Is it possible I should somehow remove LILO and replace it in the MBR?
 
Old 11-09-2005, 11:21 PM   #4
drumz
Member
 
Registered: Apr 2005
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 188

Rep: Reputation: 33
It sounds like you're trying to put lilo on the root drive, not the MBR. In that case, the root drive should be /dev/hda6. So lilo.conf should be:
Code:
boot = /dev/hda6
...
image = /boot/whatever
  root = /dev/hda6
  label = whatever
  read-only
I'm assuming you have boot=/dev/hda2, and that's where the error is coming from, but I'm not sure. I dual boot and installed lilo to the MBR here's my relevant stuff in lilo.conf, should you want to try it:
Code:
boot = /dev/hda
...
image = /boot/bzImage-2.6.13
  root = /dev/hda5
  label = Slack_2.6.13
  read-only
...
other = /dev/hda1
  label = WindowsXP
  table = /dev/hda
Of course you'd have to change /dev/hda5 to /dev/hda6 and /dev/hda1 to /dev/hda3.

Note: also your added comments to /proc/partions don't match up correctly, but I figured it out .
 
Old 11-10-2005, 02:21 AM   #5
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks for your help, I didn't try your suggestions drumz, because I was too impatient to get back into slack before you posted. So I installed GRUB, it's working fine and I may go back and try to fix lilo eventually. We'll see.
 
  


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
lilo problem ...i just get L on booting johny joseph Linux - Newbie 2 09-19-2005 08:36 AM
LILO problem with booting bigoli Slackware 5 01-10-2005 02:36 PM
LILO / Booting problem Terragen Linux - Software 5 10-22-2003 01:56 PM
LILO Booting Problem...please help! WarMachine Mandriva 3 08-30-2003 05:50 PM
Lilo booting problem infernus Linux - Newbie 8 07-04-2003 03:57 AM


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