Results 1 to 5 of 5

Thread: OS-prober and grub cannot find Windows

  1. #1
    Join Date
    Jan 2015
    Beans
    2

    OS-prober and grub cannot find Windows

    I installed Ubuntu 14.04 tonight in attempt to be able to dual boot between it and Windows 7. However Grub and OS-Prober are both unable to find the Windows install. I've read a lot of other posts hoping to find a solution to no avail. Any help would be most appreciated. Here is my Boot Info Script that I ran if it helps at all.
    Code:
                      Boot Info Script 0.61      [1 April 2012]
    
    
    ============================= Boot Info Summary: ===============================
    
     => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
        the same hard drive for core.img. core.img is at this location and looks 
        in partition 112 for .
     => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of 
        the same hard drive for core.img. core.img is at this location and looks 
        in partition 112 for .
    
    sda2: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7: NTFS
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files:        
    
    sda3: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 14.04.1 LTS
        Boot files:        /boot/grub/grub.cfg /etc/fstab
    
    sdb1: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7: NTFS
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files:        /Windows/System32/winload.exe
    
    ============================ Drive/Partition Info: =============================
    
    Drive: sda _____________________________________________________________________
    
    Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sda2             206,848 3,875,567,615 3,875,360,768   7 NTFS / exFAT / HPFS
    /dev/sda3    *  3,875,567,616 3,907,024,895    31,457,280  83 Linux
    
    
    Drive: sdb _____________________________________________________________________
    
    Disk /dev/sdb: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sdb1    *          2,048   234,260,479   234,258,432   7 NTFS / exFAT / HPFS
    
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/sda2        0A5456A254568FF5                       ntfs       STORAGE
    /dev/sda3        8f7e7206-64f0-4248-8c53-bf7aafe5991e   ext4       UBUNTU
    /dev/sdb1        8840492840491E76                       ntfs       SSD
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda3        /                        ext4       (rw,errors=remount-ro)
    /dev/sdb1        /mnt                     fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
    
    
    =========================== sda3/boot/grub/grub.cfg: ===========================
    
    --------------------------------------------------------------------------------
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    if [ "${next_entry}" ] ; then
       set default="${next_entry}"
       set next_entry=
       save_env next_entry
       set boot_once=true
    else
       set default="0"
    fi
    
    if [ x"${feature_menuentry_id}" = xy ]; then
      menuentry_id_option="--id"
    else
      menuentry_id_option=""
    fi
    
    export menuentry_id_option
    
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    function load_video {
      if [ x$feature_all_video_module = xy ]; then
        insmod all_video
      else
        insmod efi_gop
        insmod efi_uga
        insmod ieee1275_fb
        insmod vbe
        insmod vga
        insmod video_bochs
        insmod video_cirrus
      fi
    }
    
    if [ x$feature_default_font_path = xy ] ; then
       font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos3'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  8f7e7206-64f0-4248-8c53-bf7aafe5991e
    else
      search --no-floppy --fs-uuid --set=root 8f7e7206-64f0-4248-8c53-bf7aafe5991e
    fi
        font="/usr/share/grub/unicode.pf2"
    fi
    
    if loadfont $font ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      set locale_dir=$prefix/locale
      set lang=en_US
      insmod gettext
    fi
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ] ; then
      set timeout=-1
    else
      if [ x$feature_timeout_style = xy ] ; then
        set timeout_style=menu
        set timeout=10
      # Fallback normal timeout code in case the timeout_style feature is
      # unavailable.
      else
        set timeout=10
      fi
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    if background_color 44,0,30; then
      clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
        set gfxpayload="${1}"
        if [ "${1}" = "keep" ]; then
            set vt_handoff=vt.handoff=7
        else
            set vt_handoff=
        fi
    }
    if [ "${recordfail}" != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8f7e7206-64f0-4248-8c53-bf7aafe5991e' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  8f7e7206-64f0-4248-8c53-bf7aafe5991e
        else
          search --no-floppy --fs-uuid --set=root 8f7e7206-64f0-4248-8c53-bf7aafe5991e
        fi
        linux    /boot/vmlinuz-3.13.0-44-generic root=UUID=8f7e7206-64f0-4248-8c53-bf7aafe5991e ro  quiet splash $vt_handoff
        initrd    /boot/initrd.img-3.13.0-44-generic
    }
    submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-8f7e7206-64f0-4248-8c53-bf7aafe5991e' {
        menuentry 'Ubuntu, with Linux 3.13.0-44-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-44-generic-advanced-8f7e7206-64f0-4248-8c53-bf7aafe5991e' {
            recordfail
            load_video
            gfxmode $linux_gfx_mode
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='hd0,msdos3'
            if [ x$feature_platform_search_hint = xy ]; then
              search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  8f7e7206-64f0-4248-8c53-bf7aafe5991e
            else
              search --no-floppy --fs-uuid --set=root 8f7e7206-64f0-4248-8c53-bf7aafe5991e
            fi
            echo    'Loading Linux 3.13.0-44-generic ...'
            linux    /boot/vmlinuz-3.13.0-44-generic root=UUID=8f7e7206-64f0-4248-8c53-bf7aafe5991e ro  quiet splash $vt_handoff
            echo    'Loading initial ramdisk ...'
            initrd    /boot/initrd.img-3.13.0-44-generic
        }
        menuentry 'Ubuntu, with Linux 3.13.0-44-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-44-generic-recovery-8f7e7206-64f0-4248-8c53-bf7aafe5991e' {
            recordfail
            load_video
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='hd0,msdos3'
            if [ x$feature_platform_search_hint = xy ]; then
              search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  8f7e7206-64f0-4248-8c53-bf7aafe5991e
            else
              search --no-floppy --fs-uuid --set=root 8f7e7206-64f0-4248-8c53-bf7aafe5991e
            fi
            echo    'Loading Linux 3.13.0-44-generic ...'
            linux    /boot/vmlinuz-3.13.0-44-generic root=UUID=8f7e7206-64f0-4248-8c53-bf7aafe5991e ro recovery nomodeset 
            echo    'Loading initial ramdisk ...'
            initrd    /boot/initrd.img-3.13.0-44-generic
        }
        menuentry 'Ubuntu, with Linux 3.13.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-advanced-8f7e7206-64f0-4248-8c53-bf7aafe5991e' {
            recordfail
            load_video
            gfxmode $linux_gfx_mode
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='hd0,msdos3'
            if [ x$feature_platform_search_hint = xy ]; then
              search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  8f7e7206-64f0-4248-8c53-bf7aafe5991e
            else
              search --no-floppy --fs-uuid --set=root 8f7e7206-64f0-4248-8c53-bf7aafe5991e
            fi
            echo    'Loading Linux 3.13.0-32-generic ...'
            linux    /boot/vmlinuz-3.13.0-32-generic root=UUID=8f7e7206-64f0-4248-8c53-bf7aafe5991e ro  quiet splash $vt_handoff
            echo    'Loading initial ramdisk ...'
            initrd    /boot/initrd.img-3.13.0-32-generic
        }
        menuentry 'Ubuntu, with Linux 3.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-recovery-8f7e7206-64f0-4248-8c53-bf7aafe5991e' {
            recordfail
            load_video
            insmod gzio
            insmod part_msdos
            insmod ext2
            set root='hd0,msdos3'
            if [ x$feature_platform_search_hint = xy ]; then
              search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  8f7e7206-64f0-4248-8c53-bf7aafe5991e
            else
              search --no-floppy --fs-uuid --set=root 8f7e7206-64f0-4248-8c53-bf7aafe5991e
            fi
            echo    'Loading Linux 3.13.0-32-generic ...'
            linux    /boot/vmlinuz-3.13.0-32-generic root=UUID=8f7e7206-64f0-4248-8c53-bf7aafe5991e ro recovery nomodeset 
            echo    'Loading initial ramdisk ...'
            initrd    /boot/initrd.img-3.13.0-32-generic
        }
    }
    
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  ${config_directory}/custom.cfg ]; then
      source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    --------------------------------------------------------------------------------
    
    =============================== sda3/etc/fstab: ================================
    
    --------------------------------------------------------------------------------
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda3 during installation
    UUID=8f7e7206-64f0-4248-8c53-bf7aafe5991e /               ext4    errors=remount-ro 0       1
    --------------------------------------------------------------------------------
    
    =================== sda3: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
    
    =============================== StdErr Messages: ===============================
    
    cat: /tmp/BootInfo-2C9UuFb9/Tmp_Log: No such file or directory
    Thanks for any help.

  2. #2
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: OS-prober and grub cannot find Windows

    It happens either if Windows is Hibernating or if there are any filesystem errors on NTFS partitions.
    To fix either you need working windows.

    Boot with Windows Repair Disc or Install Disc and Fix Windows 7 boot.
    Run chkdsk on all NTFS (Windows partitions). Do a Windows restart a couple of times.

    Boot Ubuntu Live DVD/USB and create a new bootinfo file and post it here.

    Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    in partition 112 for .
    => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    in partition 112 for .
    Since Windows and Ubuntu are on separate Disks it will be a good idea to install their respective boot-loaders to their respective Disks.
    Presently Grub is installed to both disks.... bootinfo will tell us where Windows has installed its boot-loader.
    (If you had added the HDD after installing Windows on SSD then perhaps you should remove the HDD when you fix Windows).
    With bootinfo we'd be able to guide you further.
    "Evolution is Nature's way of issuing upgrades."


  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: OS-prober and grub cannot find Windows

    It looks like you added a SSD as sdb, and installed Windows to sdb, but with sda set as boot drive. Then the hidden 100MB boot partition was installed to sda and only the main "c: drive" was installed to sdb. Normally you should have the 100MB boot partition on same drive.

    You do not have to have separate boot partition but must run Windows repairs to add bootmgr & /Boot/BCD to your install on sdb.
    Make sure BIOS is set to boot from SSD, and boot flag is still on the NTFS partition on SSD as it is shown now. Then Windows repairs should fix it.
    You want to end up with Windows boot loader in MBR of sdb and grub only in MBR of sda.
    Do not run Boot-Repair's auto-fix as that just installs grub to all MBRs.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

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

    Re: OS-prober and grub cannot find Windows

    In future, when you have multiple physical drives, one containing Windows and the other containing Linux, always make sure the Windows drive is disconnected when you install/reinstall Linux -- as GRUB gets installed, by default, to the "first"drive it finds, and in this case, that was the Windows drive.
    Ubuntu 20.04, Mint 19.10; MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  5. #5
    Join Date
    Jan 2015
    Beans
    2

    Re: OS-prober and grub cannot find Windows

    Thanks for the all the help, I ran the Windows repair disk and did the system repair and everything is working now.

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
  •