Originally Posted by vineet7kumar
While installing ubuntu (8.04) i did not find any option to select where to install the GRUB (i.e MBR or boot sector of the linux partition)... (Earlier when i was using debian and fedora , I used to get an option during the installation whether to install the GRUB to MBR or boot sector)...
Am I right that the other option is the boot sector of the linux partition ?
I guess by default it goes to MBR. How do I change that ?
Also in case I have to recover GRUB ... i.e if I reinstall windows in my dual boot machine and then have to reinstall GRUB ... how do I control the location of installation of GRUB ?
In an installed system how do I find out whether GRUB is installed in MBR or boot sector of Linux partition ?
It's been a while so I might be wrong but I recall that if you use the alternate CD instead of the desktop CD you get the Debian-like text installer and full control over Grub installation, same as in Debian.
As for recovering Grub I've found the easiest way is to use Super Grub Disk
We want Linux newbies to restore their new toy, but also help the Linux advanced user make potentially dangerous operations to the MBR in a safe way. Super Grub Disk is also a teaching tool to help you learn more about bootloaders and the booting process. After all, booting is the most important thing your computer does -- without the boot process, you would not have an operating system to use!
It's a tiny download and a great tool.
Here's something else that might be useful: some BIOS allow you to protect the boot sector (boot sector virus protection). I found that enabling this prevents Windows' installer from writing to the MBR, so Grub in MBR is not deleted if you need to re-install Windows to a partition. This is very useful for dual boot where it's likely that Windows will require re-install a long time before Linux ever does :-)