Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Grub won't boot Windows

  1. #1
    Join Date
    Jan 2009
    Location
    New Zealand
    Beans
    117
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Grub won't boot Windows

    So after completely giving up on linux for a year... after problems with installing grub, i reluctantly decided to give it another shot.

    So I installed a new copy of kubuntu, everything worked correctly except one problem arised with my windows partition. When i try to boot windows through grub, it simply directs me back to the grub boot menu. I can boot kunbuntu fine.

    I have tried recovering startup issues by using a windows 7 disc and also run bootrec.exe. I had no problems running the command /FixMbr however /FixBoot has issues....

    My partitions are as follows
    /dev/sda1 fat16 boot 47 MB
    /dev/sda2 extended 149 GB
    /dev/sda5 ntfs Windows 109 GB
    /dev/sda6 Linux-Swap 1.7 GB
    /dev/sda7 ext3 Linux 40 GB


    I think the problem is that grub has overwritten windows boot files so everytime i try boot windows it reverts me to grub in a sort of loop.

    If anyone could please provide help it would be much appreciated.

  2. #2
    Join Date
    Aug 2009
    Location
    United States
    Beans
    4,459
    Distro
    Ubuntu Development Release

    Re: Grub won't boot Windows

    How did windows get into a logical partition sda5?
    Remember hence where you come and pass it down.
    Ubuntu Forums member #899097 and Ubuntu Member:
    http://www.ubuntupocketguide.com/index_main.html
    Main Page -

  3. #3
    Join Date
    Apr 2010
    Beans
    1,584
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Grub won't boot Windows

    LOL

    They are pulling your leg man.

  4. #4
    Join Date
    Aug 2009
    Location
    United States
    Beans
    4,459
    Distro
    Ubuntu Development Release

    Re: Grub won't boot Windows

    If you download this script to your desktop and then run the code below it will
    put a results text file on your desktop post it here and you will get help.
    SourceForge.net: Boot Info Script - Project Web Hosting - Open Source Software
    Code:
      sudo bash ~/Desktop/boot_info_script.sh
    Remember hence where you come and pass it down.
    Ubuntu Forums member #899097 and Ubuntu Member:
    http://www.ubuntupocketguide.com/index_main.html
    Main Page -

  5. #5
    Join Date
    Jan 2009
    Location
    New Zealand
    Beans
    117
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Grub won't boot Windows

    I have attached the results
    Attached Files Attached Files

  6. #6
    Join Date
    Aug 2009
    Location
    United States
    Beans
    4,459
    Distro
    Ubuntu Development Release

    Re: Grub won't boot Windows

    Looks like Ubuntu grub was installed in sda1 instead of sda
    Windows sda5 has no boot files in it.
    sda1 is Dell utility not a boot partition.
    Do not usually see Windows install in a logical partition sda5 likes primary sda1, sda2,sda3 or sda4
    Put in the Ubuntu Live cd and choose try Ubuntu and with internet working do this.
    Code:
    sudo apt-get install lilo
    Code:
    sudo lilo -M /dev/sda mbr
    May show error messages about the rest of lilo missing, ignore, we just want MBR
    Now reboot into Windows.
    Put install CD back in and Choose try ubuntu and do this in a terminal.
    Code:
    sudo mount /dev/sda7 /mnt
    Code:
    sudo grub-install --root-directory=/mnt /dev/sda
    Code:
    sudo umount /mnt
    Code:
    sudo reboot
    Now choose ubuntu and go into ubuntu and open a terminal and:
    Code:
    sudo update-grub
    Let us know.
    Last edited by garvinrick4; June 12th, 2011 at 07:57 AM.
    Remember hence where you come and pass it down.
    Ubuntu Forums member #899097 and Ubuntu Member:
    http://www.ubuntupocketguide.com/index_main.html
    Main Page -

  7. #7
    Join Date
    Jan 2009
    Location
    New Zealand
    Beans
    117
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Grub won't boot Windows

    I could not reboot into windows after...

    Code:
    sudo apt-get install liloCode:
    sudo lilo -M /dev/sda mbrMay show error messages about the rest of lilo missing, ignore, we just want MBR
    Now reboot into Windows.
    I followed the rest of the instructions now when i turn on my pc i get the message
    error file missing
    Grub_rescue
    in a command prompt.

  8. #8
    Join Date
    Aug 2009
    Location
    United States
    Beans
    4,459
    Distro
    Ubuntu Development Release

    Re: Grub won't boot Windows

    In a live Cd just copy and paste these so you get grub2 back in sda for sure.
    Code:
    sudo mount /dev/sda7 /mnt
    for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done 
    sudo chroot /mnt
    grub-install /dev/sda
    update-grub
    for i in /dev/pts /dev /proc /sys; do sudo umount /mnt$i ; done
    sudo umount /mnt
    sudo reboot
    Last edited by garvinrick4; June 12th, 2011 at 08:30 AM.
    Remember hence where you come and pass it down.
    Ubuntu Forums member #899097 and Ubuntu Member:
    http://www.ubuntupocketguide.com/index_main.html
    Main Page -

  9. #9
    Join Date
    Jan 2009
    Location
    New Zealand
    Beans
    117
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Grub won't boot Windows

    I have done exactly what you said, but i still have the same problem. I currently have to boot off live

  10. #10
    Join Date
    Aug 2009
    Location
    United States
    Beans
    4,459
    Distro
    Ubuntu Development Release

    Re: Grub won't boot Windows

    What is your bootscript look like now, before it had no Linux boot loader just windows in the mbr. Do another one. Grub2 has to be in the mbr of sda. Will stick around for it.

    ## Did it say when you installed grub that it installed fine.
    Remember hence where you come and pass it down.
    Ubuntu Forums member #899097 and Ubuntu Member:
    http://www.ubuntupocketguide.com/index_main.html
    Main Page -

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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