LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General > LinuxQuestions.org Member Intro
User Name
Password
LinuxQuestions.org Member Intro New to LinuxQuestions.org? Been a long time member but never made a post? Introduce yourself here.

Notices

Reply
 
Search this Thread
Old 04-17-2009, 08:13 AM   #1
the goat
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
New to linux questions


Ive been using linux for many years as a hobby, but now i need to learn it in a new way ,my favorite is pclinux works good with my laptop ,ubuntu and then redhat/fedora
Iwant to try slackware but having a hard time trying to setup a dual boot with unbuntu any suggestions would be great
 
Old 04-17-2009, 08:28 AM   #2
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 548

Rep: Reputation: 74
For a dual boot I recommend making different partitions for each distribution. This goes much the same as having a dual boot with windows; except that all the partition types would be linux-readable. (A second harddisk would be more or less the same thing)

As I do not know your current partitioning scheme I will assume you have your current OS (Ubuntu?) on one big partition called hda0 and swap as hda1.
NB: Mind that this is probably not how you currently have setup the partitioning scheme.

What you need is (at least) one free partition (the swap partition can be used by either) that is at least big enough to contain the intended installation (for a full slackware 12.2 installating this is along the lines of 6gb). This can be hda2 (or hdb0, or whatever free diskspace you have)

Slackware by default uses lilo, I think Ubuntu uses grub. I'm not 100% aware of the grub configuration lines, so I assume the slackware lilo will be your bootmanager. In said situation you'll just have to make sure both kernels are listed with a proper path and with the proper partition as the root partition in /etc/lilo.conf (e.g. root=/dev/hda0 for the Ubuntu one and root=/dev/hda2 for the Slackware root partition); run /sbin/lilo after as root and you should be set. Something similar will be needed in your grub configuration if you wish to use grub (except for the running of grub as the grub system works a bit different)

Hope this helps.
 
Old 04-17-2009, 08:40 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,208

Rep: Reputation: 230Reputation: 230Reputation: 230
the_goat:

If you have Ubuntu running currently there is no problem dual booting with Slackware.

Method:

1. Install Slackware as usual. When the dialogue window asks whether Lilo boatloader be installed or not just click "No" and proceed to remaining steps without installing a boot loader for Slackware.

2. Boot to your Ubuntu and edit its /boot/grub/menu.lst; under the the line ## ## End of Default Options ## are listed the pointers to boot up, there in the beginning line enter the following:

THIS IS ONLY AN EXAMPLE, CHANGE SPECIFICATIONS ACCORDING TO YOUR OWN SITUATION:

## ## End Default Options ##

title Slackware 12.2 GNU/Linux
root (hd0,3)
kernel /boot/vmlinuz root=/dev/sda4 ro quiet splash
#initrd /boot/initrd.gz
quiet

If your slackware is installed in the second partition you may change the 'root' line into

root (hd0,1)

and then the kernel line must also implement the same, e.g.

kernel /boot/vmlinuz root=/dev/sda2 ro quiet splash

Under Slackware the initrd is not built upon installation, you have the option to build it yourself later <it is not a critical option> for systems having good RAM sizes.

Usual problem for any newbie editing /boot/grub/menu.lst lies in NOT ACCURATELY POINTING the target kernel. Don't be surprised if you can't hit the target right away: everybody falls the first time. Just be sure you have read enough about difference between Grub syntax of using "hd0,0" instead of Linux syntax of "/dev/sda1" when technically they point to THE SAME TARGET. Refresh your Grub first, here's a good tutorial:

http://www.dedoimedo.com/computers/grub.html

Don't forget to read first the Slackware book in your cd /slackbook/slackbook.pdf

Or visit Slackware Essentials:

http://www.slackbook.org/html/book.html

Check back if you need help how to build an initrd later if you decide.

BY THE WAY:

What if your Grub in Ubuntu was overwritten by Lilo?

Solution: Reinstall Grub booting from Ubuntu CD. when it is installed configure /boot/grub/menu.lst accordingly as above. This if you don't know how to configure Lilo. But I always advise others to use Grub.

Or you can install Grub from the Slackware CD it located in the cd/extra/grub.

Hope this helps.

Goodluck.

Last edited by malekmustaq; 04-17-2009 at 08:52 AM.
 
Old 04-18-2009, 01:27 AM   #4
dchmelik
Member
 
Registered: Nov 2008
Location: Washington state, USA
Distribution: BSD, GNU/Linux (Slackware, etc.,) openSolaris
Posts: 197

Rep: Reputation: 21
You could also set up a 'home' partition to use in both: /home/user (but put your username instead of user) or maybe even '/root' if they have the same files in any home directory. If not, then probably also do not use '/home/user' as your main home folder, but you could use it to try things on both OSes.
 
  


Reply

Tags
dual boot, fedora, laptops, slackware12


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
Linux nub! a bunch of questions from a brand new linux user. TooTone Linux - Newbie 19 12-28-2005 06:53 PM


All times are GMT -5. The time now is 09:22 PM.

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