What is GRUB

Grub is an insect that eats my yard and is only useful for fish bait. It is also the Boot loader installed by Ubuntu.

Topics

You Install Ubuntu but Windows is not a boot option.

I have just installed Ubuntu on my primary master drive. How do i set it up so i can choose at start-up what OS to load? Is it just a matter of adding some stuff to grub?

Yes its just a matter of adding an entry to menu.lst...

Make XP the default opperating system

Configfile and Chainloader Entries

Live CD - Mount hard drive partition for edit

sudo mkdir /mnt/root
sudo mount -t ext3 /dev/hda1 /mnt/root

Master Boot Record

The MBR and Dual Booting go hand in hand. The MBR occupies the first 512 bytes of a hard drive (or any other disk drive for that matter) and has three parts:

  1. The boot code which is 446 bytes long. When you see install GRUB to the MBR This is the area of disk that the GRUB install writes a little bit of code to. What this code does is execute the program /boot/grub/stage2
  2. The partition table which is 64 bytes long
  3. The boot code signature of hex(55aa) which is 2 bytes long and goes at the very end