Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How can I repair grub? (How to get Ubuntu back after installing Windows?)

I have installed Ubuntu 12.04 on Windows 7 PC on seperate disk partition (that is E:\ drive). Installation is complete. Now the system is always booting in windows 7. I opted for dual boot at the time of installation. But system directly booting windows without asking anything.

What is to be done next ?

share|improve this question

marked as duplicate by Jorge Castro, hhlp, Mik, Stephen Myall, fossfreedom Nov 22 '12 at 22:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

It sounds like your BIOS is set to boot from the Windows 7 partition/drive and not the partition that has GRUB / Ubuntu.

share|improve this answer
    
What is the solution ? Windows partions is on C:\ Ubuntu partition is on E:\ drive. Kindly tell me how to set this. –  user109171 Nov 19 '12 at 11:35
    
If you only have one hard drive, check out mondjunge's post. If Ubuntu and Windows are on different hard drives, it might be that your BIOS is telling your computer at boot time to look at the wrong harddrive. You enter the BIOS when the computer first boots. Normally there is a splash screen telling you to press F2 or the delete key (or some other key) to enter the BIOS. There should be an entry in there to tell you your computer which device to boot from (hardrives, floppy, cdrom, usb, network etc.). You would want to choose the drive that Ubuntu is installed to in this case. –  Jay Nov 21 '12 at 13:35

you need to boot up the live ubuntu CD/DVD and rewrite the MBR.

This is a simple task, but is best be done with some fundamental understanding of partitions, partitioning and how booting works basically.

Just steps:

  • boot in live mode via ubuntu live CD
  • open up a terminal (Ctrl+Alt+T)
  • run following command:

    sudo grub-setup /dev/sdX

where X is the letter for the Hard Disk to write the MBR to. Usually this is sda, but it could be sdb or sdc in your case.

If you installed your System with the WUBI installer, be aware that this solution might not work. I am not familiar with WUBI.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.