Installing GRUB in Ubuntu
Although GRUB is automatically incorporated into a normal Linux installation, there are times when we need to install it in various storage devices as per the user’s convenience during multiple booting. If users want to install Linux in a specific partition, they are supposed to specify the drive on which to embed the boot loader information.
Entire drive: While installing Ubuntu using the ‘Erase disk and install Ubuntu’ option, the user chooses where Ubuntu and GRUB will be installed, automatically.
Something else: In this method, users are given the extra option to install the boot loader into any device that they choose. This is needed when there is an OS already installed in the system or is going to be installed. The disk where BIOS is set up to boot or the partition where Linux is installed is generally selected in this case.
Making a GRUB bootable CD-ROM: When booting becomes difficult due to some compatibility issues, a GRUB bootable CD-ROM can be created. So there is no need to create a floppy or hard disk image file. Booting from a CD-ROM involves using a special image file, cdboot.img, which is included in the core.img file. Also, grub.cfg, the main configuration file, should be incorporated with the other image files.