Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
01-10-2011, 07:09 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Rep:
|
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?
|
|
|
|
01-10-2011, 09:43 AM
|
#2
|
|
LQ Newbie
Registered: Aug 2009
Posts: 18
Rep:
|
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.
|
|
|
|
01-10-2011, 09:48 AM
|
#3
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,176
|
I've written a possible solution in your duplicate thread:
http://www.linuxquestions.org/questi...o-conf-855354/
|
|
|
|
01-10-2011, 11:06 AM
|
#4
|
|
Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware current, but constantly testing and playing
Posts: 121
Rep:
|
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.
|
|
|
|
01-10-2011, 11:22 AM
|
#5
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,176
|
|
|
|
|
01-10-2011, 11:49 AM
|
#6
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by SeSoX
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.
|
|
|
|
01-10-2011, 11:56 AM
|
#7
|
|
Member
Registered: Sep 2010
Distribution: Slackware 13.37
Posts: 313
Rep:
|
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.
|
|
|
|
01-10-2011, 12:00 PM
|
#8
|
|
LQ Newbie
Registered: Aug 2009
Posts: 18
Rep:
|
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 
|
|
|
|
01-10-2011, 12:10 PM
|
#9
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Original Poster
Rep:
|
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
|
|
|
|
01-10-2011, 12:21 PM
|
#10
|
|
Member
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Slackware 13.1
Posts: 809
Rep:
|
It's a sign from God.
|
|
|
|
01-10-2011, 12:27 PM
|
#11
|
|
Member
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 675
Rep:
|
This is ubuntu kernel and its initrd placed in Slackware /ub directory. So you cannot find them at least you will copy them.
|
|
|
|
01-10-2011, 12:38 PM
|
#12
|
|
Member
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 675
Rep:
|
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.
|
|
|
|
01-10-2011, 12:51 PM
|
#13
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by igadoter
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 - -).
|
|
|
|
01-10-2011, 02:07 PM
|
#14
|
|
Member
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578
Rep:
|
|
|
|
|
01-10-2011, 02:47 PM
|
#15
|
|
Member
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 675
Rep:
|
Quote:
Originally Posted by Robert.Thompson
|
I get the error: page not found.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|