LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-03-2013, 05:06 PM   #1
BW-userx
LQ Newbie
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14
Posts: 11

Rep: Reputation: Disabled
Post lilo edit for three boot system


Hello I am having three OS's on my system XP, Ubuntu 13.04 and Slackel a slackware based OS. I have all three installed, xp first then Ubuntu gurb(X) it worked dual boot, desided to use somemore free HD space and try another Linux installed Slackel with Lilo boot loader, now it did not install the Ubuntu but it did XP I have windows and Linux as options for a dual boot.

Q: how do I edit lilo to add and make it three different OS options?

I went to /etc/lilo.conf added TO the file at end by just coping then changing the mount point to this /dev/sda5 that is what Ubuntu is installed on it does not show anying of changes as I added a XP to the end of label = WindowsXP to see if it effected it any when I boot up it does not even show that change I made -- so one of two things it doesn't see it or I am not editing the right file

I just edeited it saved it then rebooted no changes showing to what I did.

any Ideas as I know there has ot be someone out there that knows more then me about this lol.

as I rather not reinstall OS's again and try it like that thanks

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append="quiet vt.default_utf8=1"
boot = /dev/sda

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slackel.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,20,255,20,255,20
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,29,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 500
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda1
label = WindowsXP
table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda3
label = Linux
read-only
# Linux bootable partition config ends# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda5
label = Linux2
read-only
# Linux bootable partition config ends
 
Old 10-03-2013, 05:12 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 876

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
Originally Posted by BW-userx View Post
I went to /etc/lilo.conf added TO the file at end by just coping then changing the mount point to this /dev/sda5 that is what Ubuntu is installed on it does not show anying of changes as I added a XP to the end of label = WindowsXP to see if it effected it any when I boot up it does not even show that change I made -- so one of two things it doesn't see it or I am not editing the right file

[...]

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda5
label = Linux2
read-only
# Linux bootable partition config ends
What you need to do (assuming you're running Slackware, and Ubuntu is on /dev/sda5) is mount /dev/sda5 someplace temporarily, such as /mnt. Then edit lilo.conf to point to the proper kernel and initrd for Ubuntu:

# Linux bootable partition config begins
image = /mnt/boot/vmlinuz
root = /dev/sda5
label = Linux2
read-only
# Linux bootable partition config ends

I'm assuming that's likely not the name of the Ubuntu kernel, and that you'll probably need an initrd to go with that. That's the basic approach though... lilo is going to need access to all the Linux boot directories at the time of installation.
 
1 members found this post helpful.
Old 10-04-2013, 12:48 AM   #3
djemos
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
You can boot in slackel and install grub2-2.00-x86_64-3dj.txz os-prober-1.63-x86_64-1dj.txz grub-customizer-3.0.4-x86_64-1dj.txz
Open a konsole in kde
Then type
su
type root password

slapt-get -u
slapt-get -i grub2 os-prober grub-customizer
grubconfig

It will install grub2 and add all your distro's on grub2 menus

Then reboot

Any time you update a new kernel can run update-grub to update grub menus
Same can be done with running grub-customizer a gui for update-grub.

Last edited by djemos; 10-04-2013 at 12:49 AM.
 
Old 10-04-2013, 12:54 AM   #4
djemos
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
You can boot in slackel and install grub2-2.00-x86_64-3dj.txz os-prober-1.63-x86_64-1dj.txz grub-customizer-3.0.4-x86_64-1dj.txz
Open a konsole in kde
Then type
su
type root password

slapt-get -u
slapt-get -i grub2 os-prober
grubconfig

It will install grub2 and add all your distro's on grub2 menus
reboot

Any time you update a new kernel can run update-grub to update grub menus
Same can be done with running grub-customizer a gui for update-grub.

Note: Users who have a previous version of grub have to remove it first.
removepkg grub or removepkg grub2
rm -rf /etc/default/grub/
rm -rf /etc/grub.d/
rm -rf /boot/grub/

Last edited by djemos; 10-04-2013 at 12:56 AM.
 
Old 10-05-2013, 09:06 AM   #5
BW-userx
LQ Newbie
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by djemos View Post
You can boot in slackel and install grub2-2.00-x86_64-3dj.txz os-prober-1.63-x86_64-1dj.txz grub-customizer-3.0.4-x86_64-1dj.txz
.....

Any time you update a new kernel can run update-grub to update grub menus
Same can be done with running grub-customizer a gui for update-grub.
I just reinstalled Ubuntu and it picked up Slackel and placed it in/added it to there Grub(2) so now I am running Ubuntu/WinXP/Slackel with out jhaving to do all that how do I do this config stuff
thanks
 
  


Reply

Tags
dual boot, liloconf, liloconfappend


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
[SOLVED] Edit lilo.conf, run /sbin/lilo, but lilo won't take changes lukameen Slackware 2 02-10-2012 01:10 PM
edit lilo.conf to enable distro (sugar on a stick) to boot from usb captain_sensible Slackware 4 08-21-2011 08:13 AM
Edit the GRUB to make LILO-using distro to boot???? Karaxarias Linux - Newbie 5 01-31-2009 03:42 PM
how-to properly edit lilo to boot 2nd linux partition agrestic Slackware 12 01-27-2009 12:52 PM
edit windows boot ini to allow booting to lilo V_LESTAT Linux - Newbie 2 01-15-2004 07:58 PM


All times are GMT -5. The time now is 04:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration