Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


  Search this Thread
Old 06-23-2011, 07:22 PM   #1
LQ Newbie
Registered: May 2011
Posts: 7

Rep: Reputation: 0
Dual boot Ubuntu and Slackware

I am running SW 13.37 right now with lilo as boot loader. Now I would like to dual boot with Ubuntu. How would I do that?
Old 06-23-2011, 07:31 PM   #2
Senior Member
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
You wouldn't need to use lilo any more.

You could just let Ubuntu's grub2 take over the MBR.

The os-prober should pick up your slackware kernels and entries will appear at boot.
Old 09-25-2011, 05:24 AM   #3
LQ Newbie
Registered: May 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Originally Posted by andrewthomas View Post
You wouldn't need to use lilo any more.

You could just let Ubuntu's grub2 take over the MBR.

The os-prober should pick up your slackware kernels and entries will appear at boot.
Thanks for the reply, I still havn't tried but I am thinking about installing FreeNAS instead of Ubuntu. I guess my main question is where to start? Can I install FreeNAS on the Slackware system disk? Do they need to be on different partitions?
Old 10-05-2011, 01:39 AM   #4
Senior Member
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,396
Blog Entries: 7

Rep: Reputation: 166Reputation: 166
Ok, from the above post you sound like a real fresh nooby, (no offense) so i'm going to treat you like one. Yes you will need to install the second distro, regardless of what you choose onto a second partition. Keep in mind that a hard drive can only have four primary partitions; or three along with an extended partition which may hold many logical partitions. gnu/linux is fine to be installed on either a primary or a logical partition. You will need to have a spare partition (or space) for the second distro; If you do not and you have installed slackware to take up all your space on your hard drive, then you will have to resize it. I recommend the live cd gpart for that job. Once you have an available partition (it will be non available if you are attempting to exceed the 4 partition limit i mentioned earlier) just insert the install cd for your chosen distro and install. When it gets to the part, where it askes where to install, make sure you assign the right partition. Your swap partition can be shared by both distributions so no need to create two swaps. gnu/linux needs a bootloader before the distro can boot; most use grub2 these days, but Slackware goes for the good old fashioned lilo, which you have installed to your mbr and you may want to keep it that way; i personally like lilo better than grub2. If you do wish to keep lilo in the mbr, then what you need to do in the process of installing the second distro is tell it to install it's bootloader to "/" (also known as root). What this is setting up is called chain-loading, and i personally find it the easiest way to dual boot linux distros. Chain-loading is when you have one bootloader setup to boot up another bootloader, and then get to your desired distro. It sounds like unnecessary complications but it does have it's benefits. If you have installed and done the above, restart and on bootup of lilo, bang you will notice that there is still only Slackware and no other distro to load. This is because you need to manually edit lilo for it to show another partition. Start up Slack, open up your terminal if you're in you gui, and su to root. Edit your lilo.conf file at /etc/lilo.conf, with you're favorite text editor. If you don't know how to do this, use the basic text editer called "nano". Do this by simply,
nano /etc/lilo.conf
. You need to make an entry for the newly installed distro. If you scroll down to the bottom you'll see the entry for Slackware:

# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sdaX
  label = Slackware
# Linux bootable partition config ends
The x after sda is the partition number (yours may or may not, say hda instead of sda, but that doesn't matter), but i've replaced mine with x for general sake. You can use this entry in your lilo.conf as a guide to make more entries. So you will have to make a new entry for the newly installed distro that will read somewhat similar to that. Here is my Debian parition in my lilo.conf (which i chainload) so you can use it (And make sure you edit it to suit your setup) to setup an entry to chainload your second distro.

# Linux bootable partition config begins
  other = /dev/sda3
  label = Debian
# Linux bootable partition config ends
This entry is in my lilo.conf file, is straight after the Slackware entry. Once you have created the new entry after your Slackware one, press [Ctrl, x] and it will ask if you want to save, press 'y' and then enter when it askes about what to name it. After it's exited and you're back at the command line still as root (su), use the command
This will update lilo with the lilo.conf you just edited. Now restart and you should see the new distro in the selection, select it and it will load up the bootloader you installed to it's "/" and then it'll load up the distro.

Hope this has helped.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot Dual hdds, Download of ubuntu 10.1, no vista or dual boot jim d Linux - Newbie 4 11-25-2010 04:18 PM
Grub issues in Slackware over Ubuntu in vista dual boot samrat.dce Slackware - Installation 4 10-04-2009 09:37 AM
How do I dual boot ubuntu 8.04 and slackware 12.2? dustin2128 Slackware 2 07-02-2009 05:05 PM
[SOLVED] Advice for Lilo setup: Dual Boot Slackware / Ubuntu andrew.46 Slackware 26 10-01-2008 03:26 PM
dual boot ubuntu and slackware 12.1 chd_lad Slackware 19 04-24-2008 02:56 PM > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 07:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration