LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-28-2006, 01:17 AM   #1
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Rep: Reputation: 16
Ubuntu not booting from LILO


Hi there, all

I recently installed ubuntu 6.06 Dapper Drake (I think) and I enjoyed it lots, but the problem that I had was that I already had slamd64 and a cross-compiled linux-from-scratch system (clfs) installed on various partitions on my sda.

The installation of grub seemed to pick up my clfs install but not my slamd64 one. No problem, I just booted to clfs and re-installed lilo as the bootloader, simply adding an entry for ubuntu in /etc/lilo.conf. Now everything boots fine except ubuntu! It gives me some sort of kernel panic, can't remember exatly what it said and I'll have to reboot to check it again if necessary. I went over the lilo.conf file and it's definitely pointing to the right partition, the right kernel (I have 2 versions installed because I updated all the packages immediately after installing and I tried both - same problem both times.

Does Ubuntu NEED to boot from grub or something? I initially didn't think anything of it, assuming that lilo would work and since I didn't know how to work grub I didn't bother to try it.

Is there a way that I can perhaps use the ubuntu livecd to fix this because I don't really want to reinstall (it'll just overwrite my bootloader again and I'll have wasted the 3 hours that I spent letting it download and install updates), or is there some special way to configure lilo when you use ubuntu?

Thanks in advance
silkenphoenixx
 
Old 10-28-2006, 03:43 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
I have booted Ubuntu from lilo, so that should work.
Give us the contents of Ubuntu's grub configuration (menu.lst IIRC), as well as the precise error message you get when booting from lilo.
 
Old 10-29-2006, 01:10 PM   #3
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Original Poster
Rep: Reputation: 16
Um... Ok. As mentioned, I really know nothing about grub, and I tried looking into its documentation yesterday to no avail. Could you point me to its grub configuration files? I didn't fine any /etc/grub.conf like what you get with LILO.

Will post the error message that lilo gives when I get the chance to reboot again and write it down...

Ummm.... Perhaps I should mention that I installed the x86_64 version, for if that makes a difference, but I don't think that it will because all the other distros that I use lilo to boot are also for x86_64.
 
Old 10-29-2006, 01:12 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Grub's files are usually in /boot/ or /boot/grub/, depending on the distro. Not in /etc/.
 
Old 11-01-2006, 10:42 AM   #5
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Original Poster
Rep: Reputation: 16
Ok. Just tried to boot Ubuntu again and here's the result (will post both my grub and lilo files in a little while) :

(Will only post last 3 lines as they seem to be the only ones pertinent)

[ 19.163802] VFS: Cannot open root device "808" or unknown-block (8,8)
[ 19.163859] Please append a correct "root=" boot option
[ 19.163922] kernel panic - not syncing: VFS: Cannot open root device "808" or unknown-block (8,8)

I went and checked my lilo.conf and I'm 150% sure that the "root=" option is there and correct.

Ok. Here is my /etc/lilo.conf which is on my /dev/sda5 which is my clfs partition:

Quote:
# Begin /etc/lilo.conf
# lilo.conf
#
# global options
boot=/dev/sda
#keytable=/boot/<keytable>
lba32
map=/boot/map
prompt

# set the name of the default image to boot
default=clfs

# define an image
image=/mnt/clfs/boot/clfskernel-2.6.17.13
label=clfs
root=/dev/sda5
read-only
# optionally add parameters to pass, e.g.
# append="video=radeonfb:1024x768-16@70"

# if you had an existing system, you could
# add its details here.
image=/boot/vmlinuz
root=/dev/sda2
label=Linux
read-only
#END
Ok... here is what I think is ubuntu's grub config...

File: /boot/grub/menu.lst
[quote]
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
#

Last edited by silkenphoenixx; 11-01-2006 at 10:57 AM.
 
Old 11-01-2006, 11:17 AM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
I'd say you need to add an initrd= line to your Ubuntu stanza in lilo.
 
Old 11-02-2006, 09:38 AM   #7
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Original Poster
Rep: Reputation: 16
Hmmm... that makes sense. I suppose I just use "initrd=<whatever was in the grub conf file here>" and it should work? I'll try it out as soon as I reboot again and then I'll post the result.

Thanks for the help.
 
Old 11-02-2006, 11:08 AM   #8
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Original Poster
Rep: Reputation: 16
Hello again and thank you! Ubuntu is booting fine now, and now I'm equipped to deal with it if something like this ever happens again. Thanks very much

Regards
silkenphoenixx
 
  


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
lilo trashed, when booting from cd, lilo command is not present wakeboarder3780 Linux - Software 3 03-23-2006 05:02 PM
Dual Booting Ubuntu With Lilo And Mandriva viajante Ubuntu 8 11-06-2005 02:39 PM
LILO: LILO lost upon booting. Nevchift Mandriva 3 09-16-2003 07:21 AM
booting from lilo... apax Slackware 10 07-22-2003 04:41 PM
New Lilo Booting hal8000b Linux - General 2 04-02-2001 09:09 AM

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

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