+4

I had windows vista and ubuntu 9.04 on my machine. Ubuntu has installed grub boot menu and it automatically detected windows vista installation and added it to the grub boot menu.
 
Now i installed windows seven and looks like it screwed up the grub boot loader. When i boot all i see in Windows Seven and Windows Vista from the boot menu (this is not grub boot menu). It is the windows boot menu. Now I can't even access or boot to my ubuntu.
 
How to fix this so that i can get my ubuntu back?

1 answers, +4 votes, 2281 views
win7's picture
asked by win7
41 weeks 4 days ago



1 Answers

  • i am having the same problem here. every time a new windows version released they just overwrite other boot loaders. but never have these kind of problems with ubuntu. for example grub boot loader detects other operating systems and gives a decent menu to boot from. microsoft should follow this. - mahi 41 weeks 1 day ago
  • Answer
    +3
    Best Answer

    You have to reinstall grub boot loader to fix this. Reinstalling grub can be done in 4 easy steps.
    Please follow these steps to reinstall grub boot loader
     

    • Boot your machine using Ubuntu Live CD
    • After the machine is booted and ready, Open a terminal window
    • Type sudo grub
    • Now type find /boot/grub/stage1
      • You will get some output like (hd0,4). Yours might be different. But make sure you enter it same as it appears in the next step. For ex if your output is (hd0,2), enter root (hd0,2) in the next step 
    • Enter root (hd0,4)
    • Enter setup (hd0)
    • Enter quit

    Reboot the machine, Now your machine should boot using grub boot loader.
    Have fun with ubuntu.
    NOTE: While you enter grub> setup (hd0) your output might look like the following:-

    setup (hd0)
     Checking if "/boot/grub/stage1" exists... yes
     Checking if "/boot/grub/stage2" exists... yes
     Checking if "/boot/grub/e2fs_stage1_5" exists... yes
     Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
    succeeded
     Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,4)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
    Done.

     

    linuxrocks's picture
    answer by Linux Rocks
    41 weeks 1 day ago
  •  I hav Asus K40in  and i installed it in but it dosn;t work

    - Visitor 8 weeks 4 days ago
  • Exactly what i was looking for, thanks much!!

    - Visitor 39 weeks 9 hours ago
  • Asked by

    win7's picture
    User offline. Last seen 40 weeks 3 days ago. Offline
    joined 41 weeks 4 days ago
    12 points

    View in your own language!