Got it working now.
Would anyone also be able to explain exactly how a computer boots?
I know that there is something called the master boot record and that should be on the harddisk somewhere right? where is it on the harddisk exactly, i mean what cylinder and what sector is it on? And say if i am to write a boot loader program, how would i do it (just out of interest)?
This is how I think it works. When the computer boots, it checks the master boot record on the harddisk and decide where to boot next? The next step would probably be that the computer boots up GRUB (the boot loader). Then from GRUB we can choose to boot our chosen operating system.
The thing that i am confused about is, Doesn't window usually overwrites the master boot record? If so, then how come my computer still boots properly after i installed windows on a machine that already has grub and linux running on it?
I am confused. Please shed some light on this