install grub2 to root partition
I have multiple partitions, Ubuntu installed on one and grub2 installed in the MBR.
When I installed Debian (6.07) on a new partition I wanted to install grub for that partition but was unsuccessful.
Used the "Advanced Install" process and reached the "Grub install" options but kept getting a red screen of error after attempting to install to '/dev/sda6'.
During the partition stage I gave Debian 2 partitions ('/' and '/home') and made '/' bootable.
I verified the root partition for Debian is '/dev/sda6'.
The reason for wanting grub (or grub2) also installed in the Debian partition is because I plan on installing the Xen hypervisor.
That way when I do "update-grub" from within Debian, it will update the "right" config files and display a new (2nd) menu during the boot process.
So my question is: how do I install grub (or grub2) into the root partition of Debian to allow chainloading?
I have no problem re-installing Debian if that is the best choice.
If you get rid of the bootable flag you will be all right. Grub does not need a bootable flag to work.
Grub, incase you are worried, is installed on your Debian system.
If you do not want it to boot everything on your drive, installing grub to the / partition is the way to go.
The box in the installer should list all detected OS's when it gets done installing grub on your new system and then wants to know where you want the active part of it installed. Installing to the MBR (Master Boot Record) is best.
You can, however, install to the new / partition. I do this all the time because I use a custom menu that will get copied to the new install after I boot to it from what ever install is handling my grub duties.
When you install to the new / you will not be able to boot to your new install until you boot to what ever install, Ubuntu I assume, is handling your screen menu chores.
After booting to it you need to go to terminal and run;
Installing grub from your new Debian install to the MBR should give you a screen menu containing all existing installs.
If you do not want Debian handling that job from then on simply boot to which ever install you want handling that and run;
That command will simply install the grub from that install on the MBR and when you reboot that will be where your screen menu originates from. Make sure that grub has been updated for that install or you will not include your latest installations.
I have 16 installs of linux on this box spread over 3 drives. There is not one boot flag.
|All times are GMT -5. The time now is 04:05 AM.|