Results 1 to 5 of 5

Thread: GRUB not detecting Windows

  1. #1
    Join Date
    Dec 2010
    Location
    USA
    Beans
    20
    Distro
    Ubuntu 10.10 Maverick Meerkat

    GRUB not detecting Windows

    I posted this in another thread, but I couldn't change the title.
    I recently put Linux on one a 10g partition after I messed up the BOOTMGR for my windows 7. I was hoping that GRUB would be able to detect Windows 7 and act as a boot manager, but I'm only seeing Linux and the Memtests on the list, and when I run sudo update-grub, I'm not seeing W7 on the list.
    All the files are still there, I just cant run it. Any ideas?

  2. #2
    Join Date
    Dec 2007
    Location
    Airship Abubalay
    Beans
    4
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: GRUB not detecting Windows

    Assuming GRUB2 (the default in newer releases), press 'c' to go to a command prompt. Assuming Windows is on the first partition, type
    Code:
    set root=(hd0,1)
    chainloader +1
    boot
    Adjust the 1 in (hd0,1) to match Windows' partition (the X in /dev/sdaX). You may need to skip a recovery partition or something like that.

    If this boots Windows, it means GRUB just isn't detecting it. You can add it yourself by editing /etc/grub.d/40_custom and adding
    Code:
    menuentry "Windows" {
        set root=(hd0,1)
        chainloader +1
    }
    Again, fix the (hd0,1) to match Windows' partition. Then run update-grub.

    If it doesn't boot Windows (e.g. it bluescreens) you'll probably need to do a Windows repair install and then reinstall GRUB from a Live CD.
    Last edited by Rusky; October 6th, 2011 at 11:11 PM. Reason: added update-grub

  3. #3
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,204
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB not detecting Windows

    If Windows wouldn't boot before you installed Ubuntu it won't boot after installation.
    Have you run
    Code:
    sudo update-grub
    in a terminal?

    Please go to the site below and download the boot script. This will give you a zip file which should be extracted in the same directory as it was downloaded. This produces a folder which contains the script and a changelog file.
    You then need to cd to that directory in the terminal (for example
    Code:
     cd Downloads/boot_info_script060
    if you downloaded it to your Downloads folder). You don't need to do that if you downloaded it to your home folder.
    Then enter
    Code:
    sudo bash boot_info_script.sh
    This will produce a results.txt file in the same directory as the downloaded boot script. Please copy the contents of that file and paste them in your next post between CODE tags. For CODE tags click on New Reply (not quick reply)and then click on the # symbol in the toolbar.
    This will give a full overview of your current system.
    Thanks.

    http://bootinfoscript.sourceforge.net/
    MacBook Pro 10,1 retina

  4. #4
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,263
    Distro
    Ubuntu Mate Development Release

    Re: GRUB not detecting Windows

    I've responded in your other thread -- please don't create duplicate threads. It just makes responding very difficult and confusing.
    Ubuntu 17.04 Mate, Mint 18.1 Mate; MS Win 8.1, MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  5. #5
    Join Date
    Aug 2012
    Beans
    14

    Exclamation Re: GRUB not detecting Windows

    Someone please help with this report, I'm about to use boot repair to fix my partitions, Windows 7 won't boot...I picked the dual boot option on a Live CD installation of Backtrack 5 instead of "erase disk" I thought it would successfully add both backtrack and windows 7 but instead has caused an error, I've already searched numerous hours on the BT forums, but no help, PLEASE guys I need your assistance very fast. http://paste.ubuntu.com/1142517/
    Last edited by doobieboobie; August 12th, 2012 at 08:13 AM. Reason: didn't place text right

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
  •