LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Put A Slackware Boot Option In GRUB (https://www.linuxquestions.org/questions/linux-general-1/put-a-slackware-boot-option-in-grub-741184/)

theacerguy 07-19-2009 10:05 AM

Put A Slackware Boot Option In GRUB
 
hi all,
i just changed from lilo taht came with slack back to my good old grub
but i cant get slack working in grub
my slack partiton is /dev/sda1 and ubuntu /dev/sda6 so how do i add the slack option in grub i use kgrubeditor as my tool of choice
thanks theacerguy

linus72 07-19-2009 10:12 AM

OK
please post the lilo config for slack

colorpurple21859 07-19-2009 10:32 AM

if your using grub from ubuntu, not all grubs will boot slack because of the way slack formats an ext3 partition. If so you can rerun lilo from your slack install disk and install lilo to your slack root partition. then edit your menu.lst to chainload into the slack partition.

theacerguy 07-19-2009 10:41 AM

Quote:

Originally Posted by colorpurple21859 (Post 3612759)
if your using grub from ubuntu, not all grubs will boot slack because of the way slack formats an ext3 partition. If so you can rerun lilo from your slack install disk and install lilo to your slack root partition. then edit your menu.lst to chainload into the slack partition.

How Do I Do That Cos I Have Never Used LILO Before And How Do I Reinstalll Lilo/?

theacerguy 07-19-2009 10:49 AM

Quote:

Originally Posted by linus72 (Post 3612745)
OK
please post the lilo config for slack


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

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# 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,27,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 = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# 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
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda1
label = Linux
read-only
# Linux bootable partition config ends

colorpurple21859 07-19-2009 10:53 AM

reboot your slack one disk and go back into setup.
select the partition your slack is on that setup ask to install to but do not format.
cancel all other items till you get back to the main setup menu. select configure and select no or cancel until you get to the lilo option. when it ask you where to install lilo select the root partition, not mbr. after lilo installes select no and cancel until you get back to the main setup menu and exit out

colorpurple21859 07-19-2009 11:01 AM

after lilo is reinstalled edit your menu.lst in ubuntu

title slackware
rootnoverify (hd0,0)
chainloader +1

this is assuming that slack is on the first partition of your first harddrive

theacerguy 07-19-2009 11:07 AM

Quote:

Originally Posted by colorpurple21859 (Post 3612775)
reboot your slack one disk and go back into setup.
select the partition your slack is on that setup ask to install to but do not format.
cancel all other items till you get back to the main setup menu. select configure and select no or cancel until you get to the lilo option. when it ask you where to install lilo select the root partition, not mbr. after lilo installes select no and cancel until you get back to the main setup menu and exit out

sorry i dont understand how do i cancel it all and that?
i tried running liilo from the slack disc but it says it wasnt found

theacerguy 07-19-2009 11:08 AM

Quote:

Originally Posted by colorpurple21859 (Post 3612777)
after lilo is reinstalled edit your menu.lst in ubuntu

title slackware
rootnoverify (hd0,0)
chainloader +1

this is assuming that slack is on the first partition of your first harddrive

does grub or lilo need to be the active mbr here cos i have lilo on it but grub has been installed over it

theacerguy 07-19-2009 11:16 AM

Quote:

Originally Posted by colorpurple21859 (Post 3612775)
reboot your slack one disk and go back into setup.
select the partition your slack is on that setup ask to install to but do not format.
cancel all other items till you get back to the main setup menu. select configure and select no or cancel until you get to the lilo option. when it ask you where to install lilo select the root partition, not mbr. after lilo installes select no and cancel until you get back to the main setup menu and exit out

wait i think it is working cos i desellected installing everything and i didnt formant the old slack / and it asked me about lilo and i did it so i think i fixed it

theacerguy 07-19-2009 11:23 AM

LILO LIVES!!!!!!!!!!!!!!!!!!!!!!!!
and how do i add a option for ubuntu in lilo?

colorpurple21859 07-19-2009 11:24 AM

run setup just like you did when you installed slack. after you select your install to partition, but do not format, when it ask do you want select any other partition either hit the cancel button or tab down to "done adding partitions" and click ok. then when the setup program goes into install packages hit the cancel button until you back to the main menu. select configure system. it will ask you if you want to do this select yes. the program will the start regenerating fonts. then what ever option comes up next, I think it's making a usb boot, hit cancel. until you come to the install lilo part. use the simple method and select install to root partiton. after that you don't need to rerun of the other options. when it ask you if you want to rewrite your fstab select no.

theacerguy 07-19-2009 11:29 AM

Quote:

Originally Posted by colorpurple21859 (Post 3612793)
run setup just like you did when you installed slack. after you select your install to partition, but do not format, when it ask do you want select any other partition either hit the cancel button or tab down to "done adding partitions" and click ok. then when the setup program goes into install packages hit the cancel button until you back to the main menu. select configure system. it will ask you if you want to do this select yes. the program will the start regenerating fonts. then what ever option comes up next, I think it's making a usb boot, hit cancel. until you come to the install lilo part. use the simple method and select install to root partiton. after that you don't need to rerun of the other options. when it ask you if you want to rewrite your fstab select no.

ive got it working now but how do i add ubuntu into lilo?

colorpurple21859 07-19-2009 11:40 AM

in slack edit /etc/lilo to add ubuntu, then at a prompt
#lilo
not sure what the entries will be but the format will be the same as the slackware entry


All times are GMT -5. The time now is 08:10 PM.