It has been a while sence I used the rescue option, but if I remember right, it will create a directory /mnt/hda7. If so, all you should need to do is type "mount /mnt/hda7" and it will mount it for you. If not, this will work:Thanks, Duncan, thanks, Mikkel: the matter turns out to be a difficult one!
If you want to have 9.1 as a boot option, you have to fiddle a bit. If you are using lilo as your boot loader, then you need to add an entry for your 9.1 setup. Copy the 9.1 kernel into /boot and run lilo. If you get no errors, then it should work. Make sure that your lilo entry contains the full name of the kernel file, not the shortened link name.
I copied the file '/mnt/hda7/boot/kernel.h-2.4.21-0.13mdk' into the directory '/boot':
# cp /mnt/hda7/boot/kernel.h-2.4.21-0.13mdk /boot
Mikkel wrote:
If you created the extra partitions by shrinking windows, you are also going to have to edit /etc/fstab and posible /etc/lilo.conf in the 9.1 partition because the partition numbers changed when you added the new partitions.
In the file '/mnt/hda7/etc/fstab' I changed the line
/dev/hda5 / ext2 defaults 1 1
into
/dev/hda7 / ext3 defaults 1 1
, and in the file '/mnt/hda7/etc/lilo.conf' I changed the line
boot=/dev/hda
into
boot=/dev/hda7
, and every occurence of 'root=/dev/hda5' (there were three) into 'root=/dev/hda7'.
Also, another way to boot 9.1 is to boot in the rescue mode with the 9.1 CD, mount the 9.1 partition on /mnt/hda7, and run "chroot /mnt/hda7" Edit /etc/fstab and /etc/lilo.conf. Change the root= section of lilo.conf from "root=/dev/hda" to "root=/dev/hda7". Run lilo.
I logged out 10.1, inserted the 9.1 CD1, then pressed F1 and then typed '# rescue' (enter). But how to mount the 9.1 partition on '/mnt/hda7'? And when I tried to run lilo, with '# lilo', the system replied: 'bash: lilo: command not found'.
mkdir /mnt/hda7 mount /dev/hda7 /mnt/hda7
In ether case, after that, you would:
chroot /mnt/hda7 (normaly, edit /etc/lilo here) lilo exit
If lilo runs without errors, you are all set.
The option to boot 9.1 will not work untill you sucessfully run lilo in 9.1. The reasion for the error is because lilo in 9.1 has not writen the boot loader to the new location yet.
Reboot to 10.1, and add to /etc/lilo.conf there this:
other=/dev/hda7 label="MDK-9.1"
I did so.
Then run lilo. The next time you boot, you will have an option to boot 9.1. Picking this option will bring up the lilo menu you had before installing 10.1.
When I run lilo, with '# lilo', I got the following output:
[EMAIL PROTECTED] rodolfo]# lilo Added linux * Added linux-nonfb Added failsafe Added windows Fatal: First sector of /dev/hda7 doesn't have a valid boot signature
Another strange thing is that when I reboot the system the 9.1 kernel that I had copied into the /boot directory of 10.1 is no more there!
What did I miss or do wrong?
Cheers, Rodolfo
The readion for the change from "root=/dev/hda" to "root=/dev/hda7" is to write the boot loader for 9.1 to the boot record of the 9.1 root partition. That way, 9.1 does not affect the 10.1 instalation, and 10.1 does not affect the 9.1 installation. If you had not changed /etc/lilo.conf in 9.1, then installing a new kernel RPM in 9.1 would have overwritten the boot loader that boots 10.1, and you would only have the option of booting 9.1 or Windows untill you fixed it. (The same fix as if you installed Windows AFTER Linux.)
I hope this clears things up a bit... Mikkel --
Do not meddle in the affairs of dragons, for you are crunchy and taste good with Ketchup!
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
