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, 09:37 AM   #1
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
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:
Code:
lilo
 
Old 01-10-2011, 10:15 AM   #2
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
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
 
Old 01-10-2011, 10:19 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
He's asked the same question in the Slackware forum.
 
Old 01-10-2011, 10:29 AM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
To reinstall grub this needs to be run from root:
Code:
grub-install /dev/sda7
or whichever the partition Ubuntu is on.
 
Old 01-10-2011, 10:36 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
Boot up Ubuntu as a live CD to do as Anisha instructed.
 
Old 01-10-2011, 11:00 AM   #6
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Rep: Reputation: 0
But at this moment I cannot boot into Ubuntu. How could I reinstall grub?
 
Old 01-10-2011, 11:01 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
Like I said, boot up from the Ubuntu CD, choose the "Live" option.
 
Old 01-10-2011, 11:31 AM   #8
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by Miter_J View Post
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.
Old 01-10-2011, 11:33 AM   #9
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
 
Old 01-10-2011, 11:36 AM   #10
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by tredegar View Post
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...
 
Old 01-10-2011, 11:37 AM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
I don't think lilo can boot ext4
It's booting plenty of Slackware 13.1's on ext4.
 
Old 01-10-2011, 11:53 AM   #12
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 69
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.
Old 01-10-2011, 12:13 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread was moved for merge with the original.
 
Old 01-10-2011, 12:32 PM   #14
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Rep: Reputation: 0
Quote:
Originally Posted by bonixavier View Post
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!
 
Old 01-10-2011, 12:48 PM   #15
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
Great. Two messed up threads + another one closed. All for one problem.
 
  


Reply


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
There was a post like this, but it was very old, [URL="http://www.linuxquestions.org/ digorykirke Linux - Hardware 1 11-29-2009 06:33 PM
Clicking on a review # redirects to http://www.linuxquestions.org/questions/ Mega Man X LQ Suggestions & Feedback 3 07-15-2008 06:55 AM

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

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