SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm setting up a dual-boot for a friend with Ubuntu Studio and Slackware 13.1. Slackware will be the primary OS and Lilo will control the bootloader. After doing some research it seemed to me the best way would be to chainload grub from the lilo menu, so when I installed Ubuntu I stuck Grub in the Ubuntu root partition instead of the MBR and added the following to Slackware's lilo.conf:
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.33.4
initrd = /boot/initrd.gz
root = /dev/sda3
label = Linux_Gen
read-only # Partitions should be mounted read-only for checking
other = /dev/sdb2
label = Ubuntu_Studio
# Linux bootable partition config ends
It's not working. It just errors out and asks me to boot something else when I select Ubuntu_Studio from the lilo menu. I've never tried this before so I'm sure I'm making a really basic and stupid error; could somebody tell me what I'm doing wrong?
It should work. Are you sure Ubuntu is sdb not sda?
And maybe try for clarity to start the lilo entry for Ubuntu from new line and without spaces before it. Remember to reinstall lilo.
It might have something to do with Ubuntu Studio (any new Ubuntu) using GRUB2. That method used to work on previous releases of Ubuntu, and Debian "lenny".
It should work. Are you sure Ubuntu is sdb not sda?
And maybe try for clarity to start the lilo entry for Ubuntu from new line and without spaces before it. Remember to reinstall lilo.
If I got 'em mixed up my Slackware wouldn't boot. It's correct. I'll try modifying the entry. I hope to God it's not a Grub2 issue. I have very little experience with dual-booting.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
With Linux Mint I tried to install GRUB on the partition using ReiserFS but I failed. There is some bug in Mint's GRUB so it's also in Ubuntu's GRUB. The only way is to chainload from Ubuntu's GRUB to Slackware's LILO. For comparison Arch's GRUB works well -- it's possible to install it on the partition using ReiserFS.
This creates a file called 'grub2.img' that can be booted from LILO with a menu entry like:
Code:
image = /mnt/ubuntu/boot/grub2.img
label = Grub2
Note: This method is kind of annoying because you'll always have to mount your Ubuntu partition before running /sbin/lilo. Personally, I prefer to just install Grub to the MBR when dual-booting.
Last edited by piratesmack; 12-21-2010 at 01:53 PM.
it seemed to me the best way would be to chainload grub from the lilo menu, so when I installed Ubuntu I stuck Grub in the Ubuntu root partition instead of the MBR
If I were you, I would install grub2 on MBR and then again install lilo and chainload grub2 as primary partition.
For me it worked for FreeBSD bootloaderr and Minix bootloader, who knows it might as well work for you!
Tried piratesmack's solution; still got "error 0x01" or something to that effect. Kapz, I'm not sure I undestand what you're suggesting, can you elaborate? Gnashley... I was hoping to leave lilo in control, but I may have to do what you're suggesting.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
2handband,
Thanks to gnashley I finally solved the problem concerning the installation of GRUB's bootloader at the beginning of the partition using ReiserFS. So I installed Slackware LILO's bootloader at MBR and now I can chainload Linux Mint's GRUB using Slackware's LILO.
To achieve that run the following commands in Ubuntu or Linux Mint:
sudo su -
apt-get remove grub-pc
apt-get install grub
update-grub # answer yes to the question about generating menu.lst
grub-install /dev/sda1
Then run Slackware, add to lilo.conf the following lines:
Quote:
other = /dev/sda1
label = mint
and run lilo command.
Last edited by w1k0; 12-22-2010 at 04:54 AM.
Reason: sudo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.