LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 07-14-2002, 09:12 AM   #1
lacrimae
Member
 
Registered: Feb 2002
Distribution: slackware 8.1; redhat 7.2
Posts: 65

Rep: Reputation: 15
grub and second linux, chainloading


I have added mandrake linux, just to try it, and the time I have spent on it has been editing the grub.conf in my redhat to get it to boot. (win98SE also on this hard drive)(mandrake is only one that wont boot with grub.)

I finally read on another site , after searching and searching, trying many iterations and carefully checking spelling tortuously, that the correct way is to load the second linux distro on one HD by chainloading. Don't specify the /boot/vmlinuz and so forth treat it like windows. Just list root location.

Is that what has worked for others? It seems like I would have seen that around here. Never saw anything like that mentioned anywhere else.

I have currently:
root (hd0,6)
kernel /vmlinuz ro root=/dev/hda7 hdc=ide-scsi
initrd /initrd.img
(that gets me an error 15 file not found.)

using
kernel /boot/vmlinuz ....
initrd /boot/initrd.img
gets me partway, it loads some, then gets to INIT and says "kernel panic"
 
Old 07-14-2002, 08:25 PM   #2
pbharris
Member
 
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 280

Rep: Reputation: 30
hum - if it gets that far then i am thinking this is not due to GRUB - you may wnat to make the initrd.img image - this snippet from a kernel PET here has info that may help:
Quote:
13. If you use LILO for a bootloader skip this section and go to the end.. Okay for GRUB we need to edit the file /boot/grub/grub.conf and create an initrd.img file. To create this file issue the command mkinitrd initrd-kernel.version.img kernel.version and example would be mkinitrd initrd-2.4.17.img 2.4.17, this command must be issued after make modules_install. The resulting file should be placed in the boot directory you have choosen to place your new kernel, e.g. /boot245. Now to edit /boot/grub/grub.conf. This file is read by by the bootloader upon bootup, therefore you do not need to run any commands after you edit the file. Here is an original grub.conf file for a Red Hat 7.2 system.
 
Old 07-15-2002, 09:27 AM   #3
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
So right now you have Win98, RedHat, and Mandrake installed, but you can only get Win98 and Redhat to boot from Grub.

I don't believe Linux can be "chain loaded", by the definition of the Grub "chainloader" command. I would advise copying the RedHat stanza in your menu.lst file, pasting it back into the menu.lst file as a Mandrake stanza, and then modifying the entries for the exact hard drive locations of your Mandrake files (i.e., hdb, hdb1, etc).

Please post the entire contents of your current /boot/grub/menu.lst file.
 
Old 07-15-2002, 09:40 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
Try this:

Boot to RH and mount your Mandy partition somewhere sensible, like /mnt/mandy. Copy the Mandy kernel image over from the Mandy boot dir to the RH boot dir, for example cp /mnt/mandy/boot/vmlinuz /boot/mandykernel. Then in your Grub file, have something like:

root (hd0,6)
kernel /boot/mandykernel ro root=/dev/hda7 hdc=ide-scsi
initrd /initrd.img

You may also have to mount the Mandy partition and copy the initrd.img over as something sensible, like mandyinitrd.img

Good luck.
 
Old 07-15-2002, 09:17 PM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You can chainload linux. Just install mandrake's boot loader (grub or lilo) into its root ' / ' partition. Then enter these lines into the grub config file:

title Mandrake
rootnoverify (hd0,6)
chainloader +1

It will boot up into either grub or lilo. Then you can boot into mandrake.

Thymox, your idea might work if the complete path is given. It has to do with the root command. It not only sets where grub will look for its files, it can also be used as part of the path to a file. In this case, the kernel and initrd paths will look like this when expanded:

kernel (hd0,6)/boot/vmlinuz ro root=/dev/hda7 hdc=ide-scsi
initrd (hd0,6)/boot/initrd.img

So, grub will look for these files on partition hd0,6 ( hda7 ). Not red hat's partition.

For yours to work, the partition where the /boot directory is located will have to be entered in the kernel and initrd lines. Let's say red hat's /boot directory is on hda2 ( hd0,1 ). So, it will look like this:

kernel (hd0,1)/boot/vmlinuz ro root=/dev/hda7 hdc=ide-scsi
initrd (hd0,1)/boot/initrd.img

The (hd0,1) has to be added to the lines since root will still be pointing to (hd0,6).

lacrimae, could you list all the partitions for both red hat and mandrake and what they are for ( root, boot, home, ...)?

Last edited by linuxcool; 07-15-2002 at 09:40 PM.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Chainloading in Linux saikee LinuxAnswers Discussion 7 07-09-2010 05:16 PM
chainloading lilo mimithebrain Linux - Software 7 05-18-2005 05:31 PM
Grub difficulty chainloading 2000 and XP michapma Linux - General 2 05-17-2005 12:41 AM
dualboot grub chainloading copy and paste no success amarillo Linux - Distributions 4 02-23-2005 08:52 PM
boot stops at GRUB GRUB linux never boots coffeedemon Slackware 4 11-09-2004 02:20 PM


All times are GMT -5. The time now is 07:15 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