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 01-10-2011, 07:09 AM   #1
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Rep: Reputation: 0
Unhappy 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?
 
Old 01-10-2011, 09:43 AM   #2
SeSoX
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
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.
 
Old 01-10-2011, 09:48 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I've written a possible solution in your duplicate thread:
http://www.linuxquestions.org/questi...o-conf-855354/
 
Old 01-10-2011, 11:06 AM   #4
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,780

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
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

Last edited by enorbet; 01-10-2011 at 11:08 AM.
 
Old 01-10-2011, 11:22 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
OP's duplicate thread:
http://www.linuxquestions.org/questi...o-conf-855354/
 
Old 01-10-2011, 11:49 AM   #6
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SeSoX View Post
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.
 
Old 01-10-2011, 11:56 AM   #7
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 69
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.
 
Old 01-10-2011, 12:00 PM   #8
SeSoX
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
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
 
Old 01-10-2011, 12:10 PM   #9
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Original Poster
Rep: Reputation: 0
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
 
Old 01-10-2011, 12:21 PM   #10
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
It's a sign from God.
 
Old 01-10-2011, 12:27 PM   #11
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
This is ubuntu kernel and its initrd placed in Slackware /ub directory. So you cannot find them at least you will copy them.
 
Old 01-10-2011, 12:38 PM   #12
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
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.
 
Old 01-10-2011, 12:51 PM   #13
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by igadoter View Post
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 - -).
 
Old 01-10-2011, 02:07 PM   #14
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 20 Cinnamon
Posts: 589

Rep: Reputation: 49
Maybe this will help: http://www.gentoo.org/doc/en/handboo...p=10#doc_chap3
 
Old 01-10-2011, 02:47 PM   #15
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Quote:
Originally Posted by Robert.Thompson View Post
I get the error: page not found.
 
  


Reply

Tags
lilo, ubuntu


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
what do I add to /etc/lilo.conf to boot windbloze ? rob.rice Linux - General 4 12-26-2010 11:35 PM
[SOLVED] How do add lilo entry for ubuntu Tim Johnson Slackware 16 07-03-2010 06:08 PM
How to add Ubuntu 9.04 to lilo sevic33 Linux - Newbie 2 05-27-2009 10:33 AM
Can't add "read-write" to lilo.conf natewlew Slackware 5 07-10-2006 11:33 AM
how to add the line 'compact' to /etc/lilo.conf. kuertensun Linux - Newbie 6 06-23-2005 10:02 PM

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

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