Adding a boot menu in Ubuntu 12.04 (Grub2)

So on my quest to learn something other than windows I’ve been working with Linux (Ubuntu). Since I’m dual booting one of my laptops with Ubuntu and Windows 8, I wanted to change the boot menu as the windows option was defaulting to partition 0 which is the recovery partition.

To change this I ran the following proceedure:
Open Terminal
Sudo Bash
navigate to \root\etc\grub.d
create a text file name 07_Windows8
Update-Grub

[07_Windows8 Contents]
setparams ‘Windows 8 OS (loader) (on dev/sda1)’

insmod part_msdos
insmod ntfs
set root=#hd0,msdos2)’
search –no-floppy –fs-uuid –set=root A226F4C726F49E0B
drivemap -s (hd0) ${root}
chainloader +1

———————
So after a quick read of a doc and a few commands later I have a dual boot machine that defaults to booting into Windows 8 Release Preview. 😉