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, 09:37 AM
|
#1
|
|
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,183
|
http://www.linuxquestions.org/questions/slackware-14/cant-add-ubuntu-in-lilo-conf-855333/
You'll have to reinstall grub, to Ubuntu's root, /dev/sda7, (not sure how to do this), then put this in lilo.conf:
Code:
other = /dev/sda7
label = Ubuntu
Then run, as root:
|
|
|
|
01-10-2011, 10:15 AM
|
#2
|
|
Member
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 523
Rep:
|
brianL,
Thats how I do all of my multy booting systems... Each OS has its own boot (grub, lilo, etc...) as it was stand alone and all I have to do is set lilo (In my primary OS) to point me to the drive and thats all.... Very simple!
Good recommendation!
To reinstall grub in ubuntu:
http://ubuntuforums.org/showthread.php?t=224351
|
|
|
|
01-10-2011, 10:19 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,183
Original Poster
|
He's asked the same question in the Slackware forum.
|
|
|
|
01-10-2011, 10:29 AM
|
#4
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
|
To reinstall grub this needs to be run from root:
Code:
grub-install /dev/sda7
or whichever the partition Ubuntu is on.
|
|
|
|
01-10-2011, 10:36 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,183
Original Poster
|
Boot up Ubuntu as a live CD to do as Anisha instructed.
|
|
|
|
01-10-2011, 11:00 AM
|
#6
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Rep:
|
But at this moment I cannot boot into Ubuntu. How could I reinstall grub?
|
|
|
|
01-10-2011, 11:01 AM
|
#7
|
|
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,183
Original Poster
|
Like I said, boot up from the Ubuntu CD, choose the "Live" option.
|
|
|
|
01-10-2011, 11:31 AM
|
#8
|
|
Member
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 523
Rep:
|
Quote:
Originally Posted by Miter_J
But at this moment I cannot boot into Ubuntu. How could I reinstall grub?
|
I gave you the link and it explains everything and is all done from a live cd.
If me.... I would boot in to slackware chroot to the ubuntu drive and ran grub from there grub-install /dev/sd*. BOOM HEAD SHOT!
Last edited by SeRi@lDiE; 01-10-2011 at 11:33 AM.
|
|
|
1 members found this post helpful.
|
01-10-2011, 11:33 AM
|
#9
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Be warned: Ubuntu will want to install / to an ext4 partition.
I don't think lilo can boot ext4 (grub "legacy" couldn't either (but maybe things have changed), hence the move by ubuntu to "grub2")
You should be OK if you make sure you use an ext3 partition for / or install grub2
A HOWTO for (re-)installing grub2 is here
|
|
|
|
01-10-2011, 11:36 AM
|
#10
|
|
Member
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 523
Rep:
|
Quote:
Originally Posted by tredegar
Be warned: Ubuntu will want to install / to an ext4 partition.
I don't think lilo can boot ext4 (grub "legacy" couldn't either (but maybe things have changed), hence the move by ubuntu to "grub2")
You should be OK if you make sure you use an ext3 partition for / or install grub2
A HOWTO for (re-)installing grub2 is here
|
ouch.... Yeap..... thats true as far as ext4 and been the default fs...
|
|
|
|
01-10-2011, 11:37 AM
|
#11
|
|
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,183
Original Poster
|
Quote:
Originally Posted by tredegar
I don't think lilo can boot ext4
|
It's booting plenty of Slackware 13.1's on ext4.
|
|
|
|
01-10-2011, 11:53 AM
|
#12
|
|
Member
Registered: Sep 2010
Distribution: Slackware 13.37
Posts: 313
Rep:
|
You could also use LILO to boot Ubuntu directly. First you mount it to /mnt/hd, then you go to its /boot directory and look for its vmlinuz file name as well as the initrd file name. Let's assume its Linux image is vmlinuz-ubuntu and its initrd is initrd-ubuntu.gz.Edit lilo.conf and add something like:
Code:
image = /mnt/hd/boot/vmlinuz-ubuntu
initrd = /mnt/hd/boot/initrd-ubuntu.gz
root = /dev/sda3
label = ubuntu
read-only
Don't forget to add the /mnt/hd (or whatever point you choose to mount on) to the lilo.conf. If you don't do that, LILO won't be able to find it. Then you run lilo.
|
|
|
1 members found this post helpful.
|
01-10-2011, 12:13 PM
|
#13
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Moved: This thread was moved for merge with the original.
|
|
|
|
01-10-2011, 12:32 PM
|
#14
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Rep:
|
Quote:
Originally Posted by bonixavier
You could also use LILO to boot Ubuntu directly. First you mount it to /mnt/hd, then you go to its /boot directory and look for its vmlinuz file name as well as the initrd file name. Let's assume its Linux image is vmlinuz-ubuntu and its initrd is initrd-ubuntu.gz.Edit lilo.conf and add something like:
Code:
image = /mnt/hd/boot/vmlinuz-ubuntu
initrd = /mnt/hd/boot/initrd-ubuntu.gz
root = /dev/sda3
label = ubuntu
read-only
Don't forget to add the /mnt/hd (or whatever point you choose to mount on) to the lilo.conf. If you don't do that, LILO won't be able to find it. Then you run lilo.
|
Thank you, this worked. But I've got several more quetions and I made another post.
Thanks to all of you guys!
|
|
|
|
01-10-2011, 12:48 PM
|
#15
|
|
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,183
Original Poster
|
Great. Two messed up threads + another one closed. All for one problem. 
|
|
|
|
| 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 03:59 AM.
|
|
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
|
|