LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-30-2006, 09:58 PM   #1
hagabaka
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
unable to boot, stuck at LILO prompt


Hello,

At the LILO prompt, when I select to boot Slackware, it displays "Loading Linux", but then goes back to the prompt. I'm able to use the Slackware CD to boot with "bare.i root=/dev/hdb5 noinitrd ro", to get into the installation.

At first people suggested I could have upgraded a kernel package and not rerun lilo, but I didn't do it recently, and even after running lilo (which installs successfully, with the warning "hdb5 is not on the first harddrive"), I still get the problem. Before this problem, I was using kernel 2.4.33 from -current; I downgraded to the 2.4.31 and 2.4.32 on Slackware 10.1 and 10.2 CD's, and ran lilo, but still had the problem.

I'm not sure what broke things. During the session before this started, my keyboard and mouse froze. This had happened occasionally before, even when I'm in Windows. I pressed the power button, which triggered the apm_proxy script to call "poweroff" to shutdown cleanly. After starting up, the problem occured. When I booted with CD and checked disk, it was clean. I had shutdown like this before and didn't have the problem.

I initially installed Slackware 10.1 from CD, and then used slapt-get to upgrade to 10.2, and later started using it to upgrade to -current packages. Today people told me I shouldn't do that, but it's the first time I had this problem while I started doing it weeks ago. After the last time I could boot, the "important"-looking packages I upgraded were

dhcp-3.0.4-i486-1
coreutils-5.96-i486-1
bin-11.0-i486-1

The last time I upgraded kernel before the problem was two months ago, and I had been able to boot after that.

Appreciate any suggestions!
 
Old 05-30-2006, 10:46 PM   #2
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
are you installing lilo to the mbr, or to a boot partition? personally (not flaming here...) i've never had much success with lilo, and prefer grub...you might wanna give that a try. i install the bootloader to the mbr, and the files to the /boot on the partition where slackware lives...it's worked flawlessly for me...
 
Old 05-30-2006, 11:01 PM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
and even after running lilo (which installs successfully, with the warning "hdb5 is not on the first harddrive"), I still get the problem
Although i don't have personal experience, but have heard that sometimes slackware on hard drive other than primary, gives problem.
Just as hit n trial make this drive primary one and re-run lilo.

regards
 
Old 05-31-2006, 09:39 AM   #4
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
That warning from lilo only means that it is likely that your BIOS always tries to boot your first drive (hda) before the others, probably not reaching to boot the bootloaded that you are installing at that second drive (hdb). Most BIOSes offer options to change this behavior.

About the other problem ....

Quote:
Originally Posted by hagabaka
At the LILO prompt, when I select to boot Slackware, it displays "Loading Linux", but then goes back to the prompt. I'm able to use the Slackware CD to boot with "bare.i root=/dev/hdb5 noinitrd ro", to get into the installation.
hdb5 looks like a logical/extended partition, and according to what I learnt in the university and personal experiences: you cannot boot an OS directly from a logical partition. By directly I mean that you can not have an OS and make it boot with a bootloaded in that partition, but you have to pass control from a bootloader installed on a primary partition, in the same or in another hard disk... maybe the lilo warning was referring about that... don't know for sure.

What I understand perfectly is that when lilo displays "Loading Linux" and then goes back to the prompt means it can't find the OS, nor the bootloader chain, nor the files to load it.

I'm not sure how to address the problem directly, maybe you need to install lilo over hdb1, or just hdb (on the MBR outright), not the hdb5 logical partition.
 
Old 05-31-2006, 11:29 AM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi,
install the bootloader into the MBR of primary drive (plz. correct me if i'm wrong).

Quote:
I'm not sure how to address the problem directly, maybe you need to install lilo over hdb1, or just hdb (on the MBR outright), not the hdb5 logical partition
lilo is there in hdb, if it would have been in hdb5, his system would not have booted to prompt.

regards
 
Old 05-31-2006, 01:57 PM   #6
conrado
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware-Current
Posts: 23

Rep: Reputation: 15
I am not very expert in this problem, but the root system is in hdb5? why? shouldn,t be hdb1? cause as someone already said here, hdb5 is a logical extended partition I imagine that you even didn,t marked it as bootable in cfdisk the main root partition always go in the first sector of the drive, could be hda , hdb, hdc whatever but in the first sector not the third one in this case hdb5 is the third one, why you didn,t put root in the first one hdb1?
 
Old 05-31-2006, 01:59 PM   #7
hagabaka
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
fixed by installing LILO into MBR

Thanks for everyone's help! After I installed lilo to the Master Boot Record of the first drive, I can now boot from harddrive. Before I think I had it installed to the supreblock of the Linux root (would that mean hdb?).

I'm a little curious why this fixed it...but of course I'm happy to have it working again. Before fixing it, I also noticed that LILO did give an error message "0x01" when I tried to boot Linux. It flashed really quickly so I had to keep Enter pressed to see it (I tried that because someone told me they had the same problem and kept pressing Enter to get it to eventually boot ). In the lilo manual it says this stands for "invalid disk command". I was able to boot to Windows installed at hda1 even when I couldn't boot Linux.

Thanks again!
 
Old 05-31-2006, 04:46 PM   #8
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
well, it's good to know that hagabaka's problem is now solved

Quote:
Originally Posted by conrado
....whatever but in the first sector not the third one in this case hdb5 is the third one.....
that doesn't make sense at all third sector = hdb5 ??? where did you read that?
 
Old 05-31-2006, 05:24 PM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
Quote:
Originally Posted by hagabaka
Thanks for everyone's help! After I installed lilo to the Master Boot Record of the first drive, I can now boot from harddrive. Before I think I had it installed to the supreblock of the Linux root (would that mean hdb?).
then you probably had an older lilo installed in the mbr,
giving you the prompt and wasn't able the find the kernel.

fwiw.:the mbr is the first sector of cilinder 0 of a harddisk,
the superblock of the first partition starts at cilinder 1.
( all partition have a superblock ).

egag
 
Old 05-31-2006, 07:44 PM   #10
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by conrado
I am not very expert in this problem, but the root system is in hdb5? why? shouldn,t be hdb1? cause as someone already said here, hdb5 is a logical extended partition I imagine that you even didn,t marked it as bootable in cfdisk
hi conrado,
hdb5 is a logical partition. In earlier days of operating system it was mandatory to put the root system into the primary partitions. But now days you can run it (talking about linux and not windows) from any logical partition. Be it hdb5 or hdb6.....hdb9......and so on.
But if its windows, it require the 1st primary partition of the hard drive.

Quote:
the main root partition always go in the first sector of the drive, could be hda , hdb, hdc whatever but in the first sector not the third one in this case hdb5 is the third one, why you didn,t put root in the first one hdb1?
The 1st 64 sectors, from 0 to 63, are for MBR. You even can't see that partition.
You assumed hdb5 to be third one b'coz probably you checked it in you systems configuration, and there you are having it as the 3rd one.

Actually we could have the following combinations:
4 primary + 0 extended
hda1, hda2, hda3, hda4 (no logical since we don't have extended, as logical can't exist without extended)

3 primary + 1 extended
hda1, hda2, hda3, hda4(its extended), hda5...and so on will be logical.

2 primary + 1 extended ( you can't have more than 1 extended)
hda1 and hda2 as primary, hda3 extended, no hda4 in this case.....hda5 onwards as logical.

1 primary + 1 exteded
hda1 as primary, hda2 as extended and then hda5 onwards as logical (no hda3 or hda4 in this case).

So considering the last case, you are assuming the hda5 to be the third one. Right ???

regards
 
Old 05-31-2006, 08:35 PM   #11
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
-------------
The 1st 64 sectors, from 0 to 63, are for MBR.
-------------

there are only 63 sectors.
...and the mbr is the first ( one).

for info on mbr & partition table, here's a good link :
http://www.geocities.com/thestarman3..._in_detail.htm

egag
 
  


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
Boot the machine to the LILO prompt cyberfox1234 Linux - Newbie 4 05-30-2006 09:28 PM
Stuck at Grub2 prompt after deleting Linux partition of dual boot alcorta Linux - Software 3 07-08-2005 11:12 PM
Gentoo - stuck at lilo boot prompt brenan99 Linux - Distributions 1 11-29-2004 04:28 PM
Boot prompt from Graphical LILO ? L33t_H4x0R Linux - General 1 04-16-2002 07:31 AM
hda1 at LILO boot prompt Colonel Panic Linux - General 1 09-10-2001 11:00 PM

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

All times are GMT -5. The time now is 11:38 AM.

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