LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   lilo edit for three boot system (http://www.linuxquestions.org/questions/slackware-14/lilo-edit-for-three-boot-system-4175479524/)

BW-userx 10-03-2013 05:06 PM

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

volkerdi 10-03-2013 05:12 PM

Quote:

Originally Posted by BW-userx (Post 5039587)
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.

djemos 10-04-2013 12:48 AM

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.

djemos 10-04-2013 12:54 AM

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/

BW-userx 10-05-2013 09:06 AM

Quote:

Originally Posted by djemos (Post 5039761)
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


All times are GMT -5. The time now is 11:39 AM.