I just installed ubuntu 12.04 using a different partition for the /boot (I don't know why exactly I did this, I remembered reading somewhere on the web about this). The thing is that after this operation, the grub is not showing at boot, so the computer is loaded directly into windows. The partitions available on my hdd look something like this:
- ubuntu partition -> mounted /
- swap area partition
- ubuntu boot partition -> mounted /boot
- windows partiton
- windows system reserved partition (was created automatically)
What should I do in order to have grub showing at boot ? I searched for this kind of issues on the internet (including this website) and found that I could boot using a live cd and install a program called Boot-Repair and try using it to fix the problem. I'm thinking also of booting using the live cd and from a terminal to reinstall grub using another partition (the main /dev/sda I suppose).
What do you think ? What is the proper solution for this situation ? Perhaps editing the grub config file would be another option (I don't know exactly how, but it could work) ?
Since an internet connection wasn't available so I could install the Boot-Repair, what I did was the following:
- Booted using a live CD and went to a terminal
- mounted the ubuntu install partition, the initial separated /boot partition and also the /sys, /proc, /run, /dev
- chrooted into the ubuntu install
- reinstalled the grub using /dev/sda as location
- updated grub
At this point the grub update said it detected two linux images, one free dos and another windows system. I thought everything was fine, so I restarted the computer. But when the grub shows up, there are only two options to select from, the free dos and the windows.
What did I do wrong ?