LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2004, 04:18 PM   #1
PhuckFonix
Member
 
Registered: Mar 2004
Location: United States of Bush
Distribution: Knoppix 3.7, Debian Sarge
Posts: 297

Rep: Reputation: 30
Dual-booting Linux System


I see a lot of threads address dual-booting Windoze and Linux OSes, but could not find a a thread about LInux systems dual-booted yet have seen this frequently talked about by other users.

Since I can't find a particular thread to help me, I will now ask the obvious question. How do I dual boot linux systems?

I already have Gentoo on machine, I'd like to add SuSE to some free space I have.
 
Old 09-06-2004, 04:54 PM   #2
name_in_use450
Member
 
Registered: Jun 2004
Location: United States
Distribution: slackware 10.0 mostly; used many
Posts: 109

Rep: Reputation: 15
damn man dont mean to be rude but you can install gentoo and not dual boot? Gentoo is a pain to install :P. Well, Just make sure all your OSs partitions have a boot flag and are in lilo or grub (which ever you use). Either edit lilo or grub text files or do it during second OS install or something else.
 
Old 09-06-2004, 04:57 PM   #3
dbkluck
Member
 
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78

Rep: Reputation: 15
there are two schools of thought on how to do this: the first is to have your main lilo, which was installed on the mbr by gentoo, load both operating systems. this is what i usually do, though it has lots of disadvantages; i'm just lazy and never got around to doing it differently. the way i do it is by

1. Install SuSE on a device, say, /dev/hda3, and say no when it asks to install a bootloader.
2.. boot into gentoo, then $ mkdir /suse
2. if, for example your suse install is a reiserfs system on /dev/hda3, then $ mount -t reiserfs /dev/hda3 /suse
3. (optionally) edit your /etc/fstab to do the mounting for you at boot time so you don't have to manually mount it in the future. this is a good idea, 'cause you're probably going to want to share files between the two installs.
4. edit your lilo.conf (someone else will have to help you with grub, or perhaps you can translate into grubese yourself). this entails creating an almost identical copy of the entry for your current gentoo install. for example, my gentoo lilo entry is:

image = /boot/kernel-2.6.7
root = /dev/hda2
label = Gentoo
read-only

copy that, and change the appropriate paths. REMEMBER that the suse system, including its kernel, has been mounted in toto onto /suse, so the path to it is going to be something like image = /suse/boot/kernel-2.whatever. then change the root device to point to the correct place, and make the label something else (suse would be a good suggestion).
5. close the file and run $ lilo write the new lilo to the mbr. lilo will bitch if there are any problems (the path to the new kernel isn't right, etc).

there are better ways of doing this, but this works for me and i am set in my ways. (a quick googling for chainloading will probably get you on your way though if you want to use the preferred method. this involves installing a second bootloader on the superblock of your suse install, and then just creating a simple entry in gentoo's lilo (or grub) telling it to do nothing and punt over to the secondary bootloader whenever "suse" is selected. the benefits of this method is that you don't have to reboot into gentoo and rerun lilo everytime you change a kernel in suse. i'm somewhat fuzzy on the details of how to do this, though, so i can't give you detailed instructions. sorry)

hope this helps,
david
 
Old 09-06-2004, 04:57 PM   #4
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
just run through the suse install and specify the partition you want to install on, most likely the installer will detect that you have another OS and just ask you which one you want to boot as default...just be careful to specify the right partition for the install, don't want to blow away your gentoo install by accident.

linux_terror
 
Old 09-06-2004, 06:19 PM   #5
PhuckFonix
Member
 
Registered: Mar 2004
Location: United States of Bush
Distribution: Knoppix 3.7, Debian Sarge
Posts: 297

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by name_in_use450
damn man dont mean to be rude but you can install gentoo and not dual boot? Gentoo is a pain to install :P. Well, Just make sure all your OSs partitions have a boot flag and are in lilo or grub (which ever you use). Either edit lilo or grub text files or do it during second OS install or something else.
Heh, I just don't happen to have that knowledge. Aside with what you have heard and/or experienced about Gentoo, it's also true that Gentoo is well documented. There is an entire handbook written to follow for installation. Most people have the potential to be able to follow a manual afterall. Only with a few weeks knowledge of Gentoo, I smoothly moved through a stage1 installation with success. It's probably just a little overwhelming for UNIX newcomers.

On topic...
As of now, I only need me /boot partition flagged bootable because it is what is booted to, no? I failed to install a bootmanager for SuSE thinking I would kill two birds with one stone. I am using GRUB for Gentoo, though. We will have to do a few translations here. I have mounted SuSE as /dev/hdb1 while /boot is /dev/hda7 and Gentoo is /dev/hda8. I'll try to find the kernel image, follow normal GRUB linux partition procedures. That sounds about in sync with your instructions. I think I better wait for the go ahead.
 
Old 09-06-2004, 10:37 PM   #6
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
I think if I am understanding you correctly that your right on track... I wouldn't modify your gentoo grub entry at all, shouldn't have to, just add an entry like it below the gentoo entry and specify the right partition, kernal image etcetera.

Good luck to ya, sounds like you have a good handle on whats going on. If you have problems post again i'll check back.

linux_terror
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual booting system Rylinkus Linux - Newbie 9 03-08-2004 05:38 PM
Help needed : Dual booting of Linux 8.0 after system upgrade akroy Linux - General 1 11-08-2003 12:01 AM
partition on dual booting system learner Linux - Software 3 09-25-2003 11:57 PM
dual-booting Linux system on a single hard monaliza Linux - Newbie 2 07-22-2003 09:49 AM
Dual booting system w/ Win ME Cannon Linux - Newbie 7 04-09-2001 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration