LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-19-2003, 09:36 PM   #1
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Rep: Reputation: 30
using grub to boot multiple linux os's


Just wondering if anyone is using grub to boot more than one linux os and how they did it.

I am currently running RH, WindowsXP and attempting to run debian & slackware as well but grub doesn't pick up my slack & debian os's

any clues?
 
Old 03-20-2003, 03:12 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Re: using grub to boot multiple linux os's

Quote:
Originally posted by Smerk
Just wondering if anyone is using grub to boot more than one linux os and how they did it.

I am currently running RH, WindowsXP and attempting to run debian & slackware as well but grub doesn't pick up my slack & debian os's

any clues?
you have posted more than 100 times in this forum
that must mean that you have browsed through the forum
i am sure that the answer is somewhere round
anyway
grub supports ext2,ext3,jfs,reiserfs,xfs ,minix
so your root partition of slackware and debian has to be any of the above
now while booting type c to get to the grub command prompt
i am sure that you can identify your debian and slackware partition
(lets say they are /dev/hda5 and /dev/hda6 from fdisk -l (non devfs system))
now on the grub command prompt
type kernel (hd0,4)/boot/vmlinuz-(your kernel of debian/slackwire,provided you don't have boot partition)
you can get the full pathname by simply pressing tab after vmlinuz
now load the initrd similarly
initrd (hd0,4)/boot/initrd
now simply press boot
example
grub>>kernel (hd0,5)/boot/vmlinuz root=/dev/hda6 mount=devfs ro
grub>>initrd (hd0,5)/boot/initrd.img
grub>>boot
keep posted
 
Old 03-20-2003, 03:26 AM   #3
futurist
Member
 
Registered: Mar 2002
Location: malaysia
Distribution: Mandriva 2006 RC1
Posts: 486

Rep: Reputation: 30
buy one more HDD for other OS lah.
 
Old 03-20-2003, 07:48 AM   #4
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
yes I have searched the forums....
no I haven't found the answer that way...
yes I have tried booting similar to the way you had suggested without success so was thinking I had stuffed up in some way.

when I installed debian, I set it to boot from floppy.

I could not find an initrd in /boot on my debian to load.

I am also doing all of this on a laptop so cannot put another harddrive in, or believe me I would have..
 
Old 03-20-2003, 07:55 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
pick them up? what do you mean by that? you will need to add them in your config file /boot/grub/grub.conf (or menu.lst) and like the guy said above, set the other partitions to boot via a chainloader command. if you don't know what the parttitions are called use "fdisk -l /dev/hda" to list the partition numbers. then you need to convert them to grub ids, so change the letter for the alphabetical number it is, less one, a= 0 b = 1 etc, and then take one off of the partition number as well. the grub manpage should have a good amount of info. also the section in the http://gentoo.org installation docs near the end give a good quick step by step guide to setting up grub for you.
 
Old 03-20-2003, 08:11 AM   #6
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
ok, my lingo is wonky..
I edited grub.conf, added a section to point to my debian partition
ie:
title Debian
root (hd0,8)
kernel /boot/vmlinuz-2.4.18-bf2.4 ro root=/dev/hda8 hdc=ide-scsi
couldn't find a reference to initrd in debian boot.
being a nonce at linux, left it out.
booted grub returned message "file not found"
did as wonderfully friendly soundin rch said and searched the forums,
read manual at grub site, still none the wiser. all before posting here.. (should I have flagelated myself too? -probably be more fun )
read rch's oh so friendly response, and am ever so greatful that he replied to such a worthless simpleton such that I am.
followed his suggestion to boot, enter command line and try that way.. Oh-oh bios doesn't recognised cylinders that large or something.. (only 6 month's old this laptop, kinda thought it would be able to cope)
lots of funky code, rebooted to RH and here I am.
so bend me over and spank me!

will do some reading on gentoo's site. see if I can find anything.

Ahhh sarcasm.. the lowest form of wit!

you have lost me on the chainloader bit tho acid_kewpie I thought that was for windows partitions?
 
Old 03-20-2003, 08:16 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'm not that experience with grub, but that kernel line should be using a relative path on a direct partition, so if you have a specific /boot partition it should read (hd0,2)/vmlinuz not /boot/vmlinuz or even (hd0,2)/boot/vmlinuz.
 
Old 03-20-2003, 08:24 AM   #8
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
ahh.. mm..
me being a dilberry does'nt have no /boot partition...
'bout time I wiped all me linux stuff and started again..
this time I'm going to have a /boot partition, /home partition, /usr partition, and then a few more for my linux os's, was thinking about a /var partition too, but I would probably need one for each os no?
what sort of size do you recommend for a /boot partition? I presume it could be fairly small, ie 50mb or less?

also thinking maybe I should go lilo for boot loader, might avoid the cylinder too large problem..?
 
Old 03-20-2003, 08:26 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you don't have a boot partition that's still fine, just add the (hd0,8) to the start of the /boot/ path you've already got.

afaik grub has no 1024 cyl issue either, should be fine.
 
Old 03-21-2003, 12:07 AM   #10
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Quote:
I edited grub.conf, added a section to point to my debian partition
ie:
title Debian
root (hd0,8)
kernel /boot/vmlinuz-2.4.18-bf2.4 ro root=/dev/hda8 hdc=ide-scsi
couldn't find a reference to initrd in debian boot.
well your system may not have a ramdisk image
so you can safely remove the initrd one
initrd is used mainly to load modules before your os boots up
like ext3 module before your root partition is mounted (if it is ext3)
Quote:
being a nonce at linux, left it out.
booted grub returned message "file not found"
did as wonderfully friendly soundin rch said and searched the forums,
I am suprised that the answer for your problem is not in the forum.And of course everybody starts as a newbie.
File not found means that the file is not there
If you don't have a boot partition check the spelling of the image
one way to find out your debian and all linux partitions in grub
is
grub>>find /etc/fstab (no boot partition)
or
grub>>find /boot.b (boot partition)
it lists out the possible linux partitions
one of them must be debian
Quote:
read rch's oh so friendly response, and am ever so greatful that he replied to such a worthless simpleton such that I am.
being funny?!
ok ok
i have been accused before of not being friendly
(click search and go through dynamic disk)
Quote:
followed his suggestion to boot, enter command line and try that way.. Oh-oh bios doesn't recognised cylinders that large or something.. (only 6 month's old this laptop, kinda thought it would be able to cope)
lots of funky code, rebooted to RH and here I am.
so bend me over and spank me!
see info grub
about your boot errors
but there should not be a lba32 kind of error in grub

Quote:
you have lost me on the chainloader bit tho acid_kewpie I thought that was for windows partitions?
yes it is
keep posted
 
  


Reply



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
Multiple Linux OS's and Windows XP WolfeBay Linux - Newbie 1 01-30-2005 03:42 PM
Multiple LINUX OS's, same filesystem & accounts? yanger Linux - Distributions 1 06-28-2004 06:41 PM
Linux Red Hat9 with Grub, Problems with Multiple boot. Momboking Linux - Newbie 3 03-12-2004 03:40 PM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM
Multiple OS's XxDeadlyxX Linux - Newbie 11 01-18-2003 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:57 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
Open Source Consulting | Domain Registration