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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-14-2002, 10:12 AM
|
#1
|
Member
Registered: Feb 2002
Distribution: slackware 8.1; redhat 7.2
Posts: 65
Rep:
|
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"
|
|
|
07-14-2002, 09:25 PM
|
#2
|
Member
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 280
Rep:
|
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.
|
|
|
|
07-15-2002, 10:27 AM
|
#3
|
Member
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691
Rep:
|
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.
|
|
|
07-15-2002, 10:40 AM
|
#4
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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.
|
|
|
07-15-2002, 10:17 PM
|
#5
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
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 10:40 PM.
|
|
|
All times are GMT -5. The time now is 06:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|