Originally Posted by
Ron O
Similar Issue- running Ubuntu 10.04 and plan to install latest Ubuntu or probably Mint on a separate partition, keeping 10.04 until the new OS is all tweaked. Then I plan to reformat the old 10.04 partition and add it on to the new partition with GParted live CD. as I've done sucessfully in the past.
I am assuming there will be 2 Grub installations, one on the old 10.04 partition that is now being used (and will go away) and one on the newly installed partition
My question is once both versions are installed, how do I know which GRUB will be operative- the one on the newly installed OS partition or the one on the old 10.04 partition? What I am trying to avoid is being locked out of the system when I reformat the 10.04 partition, which will delete that Grub installation entirely. How will I get the system to boot to the GRUB on the new partition?
Couple of ways to make sure the OS you want to keep has the grub control=that grubs in the mbr.
A regular install should put its grub to the mbr, so the last install should have the control. What ever OS is first in the grub menu has control if you have not modified grub.
You can easily though control this. With a install, in the install phase use the something other option, there is a where grub is put option.
From a install itself in ubuntu or mint to set that as the controlling boot the command is from the desktops terminal.
Code:
sudo grub-install /dev/sdX
X is the HD (mbr), for example if you run this command.
You get the partitions listed, the mbr is not a partition, just the first three letter like sda, sdb , sdc...etc, so if you see sda with the earlier command, the command is.
Code:
sudo grub-install /dev/sda
Always run this command after loading the mbr or with any changes to grub.
Bookmarks