08-15-2005
|
#2 (permalink)
|
| Linux Guru
Join Date: Aug 2004 Location: Cymru
Posts: 4,157
| Ok, it's quite easy to do this.
For my examples Mandriva will be hda3 and Fedora will be hda2 - change them to whatever the drives are.
Firstly mount the mandriva partition with Code: su
[rootpass]
mkdir /mnt/mandriva
mount /dev/hda3 /mnt/mandriva
ls /mnt/mandriva/boot
this will give an output like Quote:
README.initrd System.map-ide-2.4.26 config-ide-2.4.26 vmlinuz
System.map config diag1.img vmlinuz-ide-2.4.26
System.map-2.6.11 config-2.6.11
| I've hightlighted the inportant filename, this is the file you point grub at to boot.
Now let's edit the /boot/grub/grub.conf file. You should add a stanza like this: Quote:
title Mandriva
kernel (hd0,2)/boot/vmlinuz root=/dev/hda3
| Notice the (hd0,2) which is how grub names partitions and drives, this table should help you decice the right name for your mandriva partition and drive. Quote:
/dev/hda1 (hd0,0) First hard disk on first IDE cable, first partition
/dev/hda2 (hd0,1) First hard disk on first IDE cable, second partition
/dev/hda3 (hd0,2) First hard disk on first IDE cable, third partition
/dev/hdb1 (hd1,0) Second hard disk on first IDE cable, first partition
/dev/hdb2 (hd1,1) Second hard disk on first IDE cable, second partition
/dev/hdb3 (hd1,2) Second hard disk on first IDE cable, third partition
/dev/hdc1 (hd2,0) First hard disk on second IDE cable, first partition
/dev/hdc2 (hd2,1) First hard disk on second IDE cable, second partition
/dev/hdc3 (hd2,2) First hard disk on second IDE cable, third partition
/dev/hdd1 (hd3,0) Second hard disk on second IDE cable, first partition
/dev/hdd2 (hd3,1) Second hard disk on second IDE cable, second partition
/dev/hdd3 (hd3,2) Second hard disk on second IDE cable, third partition
| dylunio |
| |