Debian and Slackware Dual Boot - Which to Install First?
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.
Debian and Slackware Dual Boot - Which to Install First?
I am contemplating setting up a dual boot system on one of my computers that would have both Debian 4.0 and Slackware 12 on it. I was just wondering which distribution should I install first to avoid too many problems for this. I know that Debian uses grub by default, and I am not certain that, if I installed Slackware first, whether the grub boot loader installed by Debian would "see" Slackware and automatically add an entry to the boot menu. Any suggestions on this are appreciated.
I have been running Slackware exclusively for several months, and just yesterday added Debian. I am currently upgrading Debian stable to testing.
Months ago, I installed LILO to the MBR and also the Slackware partition. I plan to chainload LILO from Debian's GRUB, which is now in the MBR.
The reason I'm doing this is because the Debian installer surprisingly detected Slackware and suggested adding it to GRUB, but it later gave me a kernel panic when I booted into Slackware.
So, that's my suggestion: Slackware first; LILO to the partition; then Debian and its GRUB to the MBR; modify Debian's GRUB to boot Slack's LILO.
If you're not familiar with it, chainloading is easy. Just be careful with the partition values - i.e., the first partition is called 0 in GRUB, the second is called 1, etc.
Code:
title Slackware 12.0
root (hdx,x)
rootnoverify (hdx,x)
chainload +1
Edit: Given that you already have Slackware installed, it would be easier to just install Debian on SUSE's partition. There's no need to re-install Slackware. Debian's GRUB may or may not pick up Slackware, but you can just modify its /boot/grub/menu.lst after it's installed.
Last edited by AtomicAmish; 02-01-2008 at 10:34 AM.
I'd suggest the other way around -debian first then slackware. GRUB is much easier to setup and use for multi-boot than lilo. But, if yuo are more familiar with setting up lil, then install slackware first and then debian. Neither bootloader will 'automatically' see the other distro and create an entry for you, but grub is much easier. You could even mount the partition where the grub menu.lst file is after installing slackware and before rebooting to add the entry for the new slackware installation.
AtomicAmish, the computer that I wish to dual boot with Debian and Slackware only has Slackware 11 installed currently. I have SuSE (well, multiple SuSE installations anyway) on other systems. I actually prefer LILO, so if I installed either one and then just used this bootloader, I should be able to add the required entries accordingly. The only concern that I would have would be that I am not too familiar with Debian's structure needed to boot, such as initrd entries and such. What I can possibly do is take the existing lilo.conf file on the machine which currently has Slack 11 on it and then compare it to the lilo.conf file on the system once Debian and Slackware are installed. I believe that there is an option during Debian setup to specify to use LILO instead of grub, so I'll see what happens. Thanks for the suggestions so far.
As suggested above, use chainloading - means you get two loader menus, but you can always hide them or use short time-outs.
Put whatever you are most comfortable with in the MBR, then do the other install(s) with the loader they ship installed to the partition.
Then just chainload - no need to worry about (and continually update) boot-loader entries.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
Quote:
Then just chainload - no need to worry about (and continually update) boot-loader entries.
KISS.
I second this .... only if everyone did this, half of the booting problems wouldn't come. Whenever you install a new distro , don't let it touch your mbr, and ask it to install its bootloader to the root partition.
Would someone mind explaining the chain load a little more explicitly.
My situation is like this.
On one of my machines I have Slackware 12 default installation
lilo mbr hda1. Works fine.
On hdb1 I have been building embedded clfs x86.
Embedded clfs is still under development and the bootloader section is
left to the readers imagination. So I dont have one but would like to
use grub.
At first I would like to boot my build from Slackware.
Then boot itself.
Can I boot from Slackware without a bootloader in embedded?
Must I mount embedded somewhere in Slackware?
What would lilo stanza look like?
I have read a lot about booting a system called "other" from lilo but not much
about a Linux system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.