Find the answer to your Linux question:
Results 1 to 4 of 4
I'm dual booting Ubuntu Karmic and Windows 7. This morning I reinstalled Windows 7 without making any changes to other partitions (only deleting the Windows partition and reinstalling Windows to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    14

    [SOLVED] Can't Boot Linux


    I'm dual booting Ubuntu Karmic and Windows 7. This morning I reinstalled Windows 7 without making any changes to other partitions (only deleting the Windows partition and reinstalling Windows to the same partition). After I finished reinstalling Windows, every time the computer boots it automatically boots Windows without showing GRUB menu.

    I don't know how to solve this problem. Any suggestions?

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Windows will always overwrite the MBR with its own bootloader when it is installed after Linux.

    You can use your Ubuntu installation disk to restore GRUB to the MBR, or the SuperGRUB live disk should be able to do it:

    https://help.ubuntu.com/community/Re...tallingWindows

    Super Grub Disk Homepage
    oz

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Boot up from Ubuntu LiveCD, open Terminal and execute this
    Code:
    sudo mount /dev/sdaX /mnt
    sudo grub-install --root-directory=/mnt /dev/sda
    sudo umount /mnt
    Replace X with root partition number of Ubuntu.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Feb 2010
    Posts
    14
    It works! Thank you very much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •