LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't add Ubuntu in lilo.conf (http://www.linuxquestions.org/questions/slackware-14/cant-add-ubuntu-in-lilo-conf-855333/)

Miter_J 01-10-2011 07:09 AM

Can't add Ubuntu in lilo.conf
 
Hi, everyone.
I finally installed Slackware and now I have Windows, Slackware and Ubuntu in my laptop.
I installed Ubuntu at the last order and at that time GRUB the default loader. But I feel that I'd like to use lilo more, so I booted into Slackware and run "lilo" and then lilo became the default loader.
But then I cannot access Ubuntu anymore. Because in lilo there're no information about Ubuntu.
So I added some information about Ubuntu according to that of Windows in lilo. But that failed. I still cannot access Ubuntu.
I searched for the posts about this problem, and this is what they say:
Quote:

image=/ub/vmlinuz
label=ubuntu
read-only
root=/dev/sda7
initrd=/ub/initrd.img-2.6.28-13-generic
or something like this.
But in my slack I cannot find the image or the initrd.
Could someone tell me how to solve this?

SeSoX 01-10-2011 09:43 AM

Hi there,

I used to add entries in lilo just like this:

image = /boot/vmlinuz-2.6.15.2
root = /dev/hda1
label = linux

Make sure your paths and file names are correct and remember to execute lilo every time you make a change to update the boot loader.

brianL 01-10-2011 09:48 AM

I've written a possible solution in your duplicate thread:
http://www.linuxquestions.org/questi...o-conf-855354/

enorbet 01-10-2011 11:06 AM

Alternative
 
Greetz
Maybe this is a hangover from older times using 3rd party bootloaders like Xosl and AirBoot but I like redundancy. I install all systems bootloaders to the root partition, edit conf to refer to all others and then only have one on the main MBR. That way if i can even get to one, I can get to them all. This may not apply to your system now since most people don't have but two bootable systems on one box. Not only do I experiment with "testbed" installs but I like having a maintenance system. Granted LiveCDs have greatly diminished their value but there are still some advantages to an actual hdd install.

In this specific case it sounds like you have at least two Linuxes. The easiest way is to chainload as in

Code:

Other=Ubuntu
root=/dev/foo

where "foo" is drive and partition. The only caveat IIRC, is that you need to symlink the desired Ubuntu kernel from /boot to /vmlinuz so the kernel can be found with just /dev/foo

brianL 01-10-2011 11:22 AM

OP's duplicate thread:
http://www.linuxquestions.org/questi...o-conf-855354/

Miter_J 01-10-2011 11:49 AM

Quote:

Originally Posted by SeSoX (Post 4219376)
Hi there,

I used to add entries in lilo just like this:

image = /boot/vmlinuz-2.6.15.2
root = /dev/hda1
label = linux

Make sure your paths and file names are correct and remember to execute lilo every time you make a change to update the boot loader.

Hi,SeSoX.
I tried this and here's the content I added:
Quote:

image=/boot/vmlinuz-generic-2.6.33.4
root=/dev/sda5
label=Ubuntu
But when loading, the system said that could not mount root.

bonixavier 01-10-2011 11:56 AM

Milter J, you have to mount Ubuntu's partition first and put its mounted path to lilo.conf. I gave such an example in your other thread.

SeSoX 01-10-2011 12:00 PM

Before you were using /dev/sda7 and now /dev/sda5, which partition has ubuntu ?

You can check all your partitions with:

sudo fdisk -l

or

fdisk -l (as root)

Make sure you've got the right partition number ;)

Miter_J 01-10-2011 12:10 PM

Haha~ The first "sda7" was just a QUOTE that someone else took for an example~
Now I got this solved.
Just mount the disk and then finding the "image" and "initrd" file would be very easy.
And add
Quote:

image=/mnt/hd/boot/vmlinuz......(can't remember)
initrd=/mnt/hd/boot/initrd......
label=Ubuntu
root=/dev/sda5
read-only
and that's okey~
Now I'm in Ubuntu already.
Thank you, SeSoX

2handband 01-10-2011 12:21 PM

It's a sign from God.

igadoter 01-10-2011 12:27 PM

This is ubuntu kernel and its initrd placed in Slackware /ub directory. So you cannot find them at least you will copy them.

igadoter 01-10-2011 12:38 PM

Are you sure that you are running ubuntu with its native kernel? For me all this looks like miracle - the solution. But maybe (it is possible) in fact you are running ubuntu with Slackware kernel. I can imagine that huge-smp kernel is able to do that. I did this some time ago.

Miter_J 01-10-2011 12:51 PM

Quote:

Originally Posted by igadoter (Post 4219548)
Are you sure that you are running ubuntu with its native kernel? For me all this looks like miracle - the solution. But maybe (it is possible) in fact you are running ubuntu with Slackware kernel. I can imagine that huge-smp kernel is able to do that. I did this some time ago.

0.0 Sorry.. I'm really a newbie so I'm not sure if I can catch your point.
My slackware is installed in /dev/sda1 and Ubuntu is in /dev/sda5. I mounted the disk sda5 to /mnt/hd and then I added the info using files in /mnt/hd/boot/. So I think I'm running Ubuntu kernel...
Is there a way to detect whether I'm running Ubuntu or Slackware kernel?
BTW, I have no "ub" folder in slackware(at least I didn't find it - -).

Robert.Thompson 01-10-2011 02:07 PM

Maybe this will help: http://www.gentoo.org/doc/en/handboo...p=10#doc_chap3

igadoter 01-10-2011 02:47 PM

Quote:

Originally Posted by Robert.Thompson (Post 4219619)

I get the error: page not found.


All times are GMT -5. The time now is 03:14 PM.