Click to See Complete Forum and Search --> : Adding Zenwalk to Grub


mobius11
09-01-2007, 11:58 AM
Hi! I installed Zenwalk on a harddisk where I had already Windows XP and Ubuntu. I refused the installation of Lilo and I just want to add Zenwalk to Grub, but I did not manage to do that right. Please help!
Here are a copy of my Grub like it is right now.

## ## End Default Options ##

title Ubuntu, kernel 2.6.20-16-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=d2521c37-5581-4528-8c9a-85e6fdb47ec7 ro quiet splash locale=ro_RO acpi=force irqpoll
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=d2521c37-5581-4528-8c9a-85e6fdb47ec7 ro single
initrd /boot/initrd.img-2.6.20-16-generic

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=d2521c37-5581-4528-8c9a-85e6fdb47ec7 ro quiet splash locale=ro_RO acpi=force irqpoll
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=d2521c37-5581-4528-8c9a-85e6fdb47ec7 ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP dition familiale
root (hd0,0)
savedefault
makeactive
chainloader +1[/COLOR]


My disk structure is:

/dev/sda1 WindowsXP
/dev/sda4 Zenwalk
/dev/sda2 Ubuntu
/dev/sda3 extended
/dev/sda5 linux-swap

Many thanks!

saikee
09-01-2007, 03:32 PM
I think Zenwalk has Grub as well. Try this. Add these 3 lines in Ubuntu's /boot/grub/menu.lst
title Zenwalk in sda4 or (hd0,3) to Grub
root (hd0,3)
chainloader +1
Save the file.

You then proceed to make Zenwalk chainloadable by a Grub shell in Ubuntu as follow, select Accessory then terminal,
sudo grub
root (hd0,3)
setup (hd0,3)
quit
If Grub reports no error you can reboot and Zenwalk will be waiting for you.

If Your Zenwalk uses only Lilo the follow Task B3 of the last link in my signature.

mobius11
09-01-2007, 04:16 PM
Thank you, it's working now.