title Mandriva Linux root (hd0,5) chainloader +1Reboot again,Mandriva Linux appears on boot menu.Installation finished.
Showing posts with label GRUB. Show all posts
Showing posts with label GRUB. Show all posts
Sunday, January 6, 2008
Mandriva added to my hard drive.
With the chainloading system set up, adding Mandriva became a easy & happy job.
I installed it on hda6.So,to chainlaod it ,I chose to boot on hda6 when asked by installation progress.
Reboot.The the new system won't appear on the boot menu.Boot the previous system.Edit the menu.list of the master GRUB,which is independent from any OS.Add
Sunday, December 9, 2007
Creating An Independent Grub Without Losing Original Linux
Inspired by this essay,I decided to rearrange the partition on my laptop so that I would be able to install new OSs and chainload them easily.But the MBR is already occupied by Ubuntu,which means that there's not a boot loader in its own partition's boot sector. It is not chainloadable!
With help from justlinux.com I finally figured out the way to make the partition chainloadable and chainloaded it by a independent GRUB newly installed on its own partition.
My whole Ubuntu is installed on sda3, and I assigned 300MB as sda1 for the independent GRUB.Here comes what I did:
On Ubuntu 7.10:
$ sudo mount -t ext3 /dev/sda1 /media/sda1 $ sudo mkdir /media/sda1/boot $ sudo mkdir /media/sda1/boot/sda1 $ cp /boot/grub/* /media/sda1/boot/grubmake /media/boot/grub/menu.lst like this:
defaulte 0 title Ubuntu Linux root (hd0,2) chainloader +1Reboot the system,press "c" when GRUB appears.
Grub> root (hd0,0) Grub> setup (hd0) Grub> rebootAgain,You will find that the menu becomes the new one when GRUB appears,press "c"
Grub> root (hd0,2) Grub> setup(hd0) Grub> chanloader +1 Grub> bootThis time the GRUB menu on sda3 will appear.Which means that Ubuntu is chainloaded by the independent GRUB on sda1.And we needn't do any thing next time. Next time A new Linux being installed,just make sure it won't take over MBR, and add this to menu.lst on sda1:
title Name of new OS root (hdi,j) chainloader +1(hdi,j) stands for the partition of the new system.
Subscribe to:
Posts (Atom)