Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

I had Ubuntu installed. When I installed ubuntu I completely formated the hard disk and then I made 3 partitions, one for root, one for home, and one for data.I left 25 Gb unused. All partitions were ext 4. After some months now I have installed the Windows 8 in the free space(24GB) . Now it directly boots Windows 8 and does not ask for the choice between Windows 8 and ubuntu . I can only access the partition in which I have installed the Windows. I want it to ask for choice between Windows 8 or ubuntu or some other way to run ubuntu or to access the data in the other partitions . Because I have very imported data there. I'm using Hp Pavilion dv6 i3 . 320gig hard disk.

share|improve this question

marked as duplicate by Eliah Kagan, fabricator4, Uri Herrera, hhlp, fossfreedom Dec 25 '12 at 23:53

This question was marked as an exact duplicate of an existing question.

I think your win8 install put the win8 bootloader in sector 0 (the so-called MBR = master boot record,) and destroyed your grub loader there.

There is a story on (google dual boot win7 linux) that may help you fix the windows boot-loader to boot your ubuntu system if you can get grub written in your ubuntu boot directory. (This will be chain loading from windows to grub.)

One good thing is that since your hp dv6 is pre win8, you probably do not have an uefi bios that would cause a lot of trouble.

share|improve this answer
PS. use a live cd or dvd to run knoppix or some such to get grub written in your otherwise inaccessible ubuntu boot directory. – user38666 Dec 25 '12 at 22:56
PPS. You might also be able to use the live cd to overwrite the MBR with the grub stage1 bootloader. This will restore your ubuntu system but make your win8 system inaccessible. I wouldn't do any of this stuff until someone with more detailed knowlege can produce the line-by-line steps that need to be done. – user38666 Dec 25 '12 at 22:59

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