LinuxQuestions.org
Review your favorite Linux distribution.
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 01-14-2007, 09:20 PM   #1
ieatsplaydoh
Member
 
Registered: Oct 2006
Location: Denver
Distribution: All of them
Posts: 62

Rep: Reputation: 15
uhh... tri-booting i guess


okay. i finnaly got pclos, windows, and suse all on the same machine. I cant get suse to boot. any way i can set up the boot loader (grub) to boot suse as well? help would be appreciated
thanks.
 
Old 01-14-2007, 10:22 PM   #2
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
It's pretty easy, you just need to have an entry in the grub menu for suse as well as pclinux. You can probably use the entry from pclinux as a guide. If it's still confusing post what's in /boot/grub/menu.lst (I've sometimes seen it in /etc instead of /etc) and tell us what partitions each OS is on.
 
Old 01-15-2007, 06:16 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Absolutely---
First we need to know where each OS is installed and how grub is configured. From your description, it sounds like you can boot into PCLinux and thus that is likely where the grub config file is.
fdisk -l will tell you where all your partitions are--hopefully from this we can figure out where SUSE is installed and configure grub so it can find it.

If you want to jump ahead a bit, look at /boot/grub/menu.lst You will be adding an entry to this which looks something like this:
title SUSE
root (hdX,Y)
kernel /boot/vmlinuz root=/dev/ZZZZ
initrd /boot/initrd

hdX,Y is the drive and partition # where the /boot directory is, and ZZZZ is the location where the kernel will mount the "root" of the filesystem---namely /. Unless you made a separate /boot partition, these tso entries will be the same, but the first is in grubspeak, and the second is in Linuxspeak.

eg for the 4th partition on the first IDE/PATA drive:
root (hd0,3)
..........root=/dev/hda4
etc.

Next, "vmlinuz" and "initrd" (the 2nd one) need to be replaced by the actual names of the files in /boot. One easy way is to simply create aliases in /boot

Finally, if the IS a separate /boot partition, take "/boot" out of the two lines--thus:
title SUSE
root (hd0,6)
kernel /vmlinuz root=/dev/sda7
initrd /initrd
and change the other values accordingly
 
Old 01-15-2007, 09:12 AM   #4
ieatsplaydoh
Member
 
Registered: Oct 2006
Location: Denver
Distribution: All of them
Posts: 62

Original Poster
Rep: Reputation: 15
so... it should look like this?

title openSUSE 10.2
root (hd1,0)
kernel /boot/vmlinuz root=/dev/hdb1 resume=/dev/hdb3 splash=silent showopts
initrd /boot/initrd

i have two hard drives. suse is installed on the first partition of the second hard drive. and the /home partition is the second partition.
 
Old 01-15-2007, 02:16 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
This looks reasonable (not sure about the resume part)

does it work?
 
Old 01-15-2007, 02:23 PM   #6
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
That looks like it should work. There might be a problem if suse calls the kernel and initrd something other than just vmlinuz and initrd. Some distros add something like the kernel version number at the end or something like that. But a lot of times if this is done then vmlinuz is just a link to vmlinuz-[latest kernel #]. You can try mounting the suse partition from within PCLinux and looking into suse's /boot to see what suse does.
 
Old 01-15-2007, 02:51 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
As I mentioned earlier, the generic "vmlinuz" and "initrd" need to be replaced by the real names. I always just make aliases in the /boot directory. Then all my grub entries are the same (less to keep track of)
 
Old 01-15-2007, 03:22 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If you do "chainloading" you never have a need to know the kernel and initrd names.

In a nutshell you let the boot loader boot a Linix in exactly the same way it boots a Windows. All you have to do is to make sure the Linux to be chainloaded has the boot loader in its root partition.

The reward (or the downside of it if you like) is you can proceed to boot over 100 systems without the need to learn any more about booting.

Last edited by saikee; 01-15-2007 at 03:27 PM.
 
Old 01-15-2007, 05:46 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
touche (too-shay)
I keep avoiding the chainload thing due to some unconscious hangup
 
Old 01-15-2007, 06:16 PM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
pixellany,

I would be more than happy to look into your case.

There is nothing specially about chainloading as it is done by Lilo and NTLDR too.

It is the duty of every Linux installer to check for a boot loader in every partition and include it as a booting alternative if one is found. That is the very basis how a Linux can automatically boot a Windows but doesn't know if it is a Dos, a Win9x, a Win2k, a XP or a Vista. A MS system always has the boot loader stored in the boot sector.

To make a Linux chainloadable requires its boot loader restricted inside the root partition. That is totally logical because there is only one MBR and we can't install every Linux to the same MBR. In the 145-system link in my signature I have the entire 145 operating systems chainloaded and not even one kernel is mentioned in the menu.lst. It is kind of lazy thing to do I admit as I had the menu.lst written out before installing any of the systems. Actually I was lazier than that as I generated the menu.lst by writting a small program to do the loops. Any way it is an example how one can get away without doing the hard work.
 
Old 01-21-2007, 05:20 PM   #11
ieatsplaydoh
Member
 
Registered: Oct 2006
Location: Denver
Distribution: All of them
Posts: 62

Original Poster
Rep: Reputation: 15
well, it works.
thanks
 
  


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
Tri-booting with Ubuntu? Banyon Ubuntu 7 04-26-2006 01:08 PM
Help Tri-Booting derek_tracy Linux - General 2 03-07-2003 08:29 AM
More Dual (Tri) Booting ;) CroTeam Linux - General 5 07-25-2002 05:28 PM
Already TRI booting ME, 2k, XP, about to add RH 7.3 PLEASE HELP!!! Ůmegaflops Linux - General 3 05-23-2002 04:24 PM
Already TRI booting ME, 2k, XP, about to add RH 7.3 PLEASE HELP!!! Ůmegaflops Linux - Software 2 05-23-2002 03:13 PM

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

All times are GMT -5. The time now is 07:21 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration