Ubuntu and windows 10 dual boot GRUB shows windows recovery environment loader

11,398

Solution 1

Windows Recovery Environment is just a misleading name.

GRUB detects all boot loaders being installed on the machine.

The first Windows boot loader detected points to the Win RE.

When you select Windows Recovery Environment from GRUB -

... the complete Windows Boot Environment will be started.

Solution 2

sudo os-prober
sudo update-grub
sudo reboot

Solution 3

I don't know if there's a better grub configuration for booting Windows 10 than the automatically generated one that starts the bootloader on the recovery partition, but as far as the name goes, "Windows Recovery Environment" comes straight from the the output of os-prober, which is mostly a stack of shell scripts.

For my old school BIOS/MBR configuration, the relevant probe is in /usr/lib/os-probes/mounted/20microsoft.

(I'm using Debian 8 "jessie" rather than Ubuntu; the file paths may not be correct for Ubuntu.)

As a compromise so update-grub will still be useful, I hand-edited the probe to say something generic:

elif grep -qs "W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t" "$2/$boot/$bcd"; then
        long="Windows (bootloader)"

and re-ran sudo update-grub.

Share:
11,398

Related videos on Youtube

ajroot
Author by

ajroot

I work mainly on Java, Python and C++

Updated on September 18, 2022

Comments

  • ajroot
    ajroot over 1 year

    I recently installed a fresh windows 10 OS. Once windows 10 was installed, I installed Ubuntu 14.04 for dual boot. Once I restart the system the grub menu shows Ubuntu and at the end of the list there is a 'Windows recovery environment loader (/dev/sda1)' .

    I am unable to get an option for Windows 10.

    When I select Windows recovery environment, it boots onto windows without any problems.

    I would like to know if this can be solved. I would like to get windows 10 option on my grub.

    I have already tried update-grub.

    Here is the link to bootrepair summary: http://paste.ubuntu.com/13285386/

    Output of fdisk -l

    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x000a5b06
    
    Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048     1026047      512000    7  HPFS/NTFS/exFAT
    /dev/sda2         1026048  1271128063   635051008    7  HPFS/NTFS/exFAT
    /dev/sda3      1680728064  1953519615   136395776    7  HPFS/NTFS/exFAT
    /dev/sda4      1271130110  1680728063   204798977    5  Extended
    Partition 4 does not start on physical sector boundary.
    /dev/sda5      1271130112  1290659839     9764864   82  Linux swap / Solaris
    /dev/sda6      1290661888  1680728063   195033088   83  Linux
    
    Partition table entries are not in disk order
    
    Disk /dev/sdc: 2063 MB, 2063597568 bytes
    226 heads, 39 sectors/track, 457 cylinders, total 4030464 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000efe8f
    
    Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *        2048     4030463     2014208    b  W95 FAT32
    
    • rakslice
      rakslice almost 7 years
      Do you see the text-mode Windows boot menu (e.g. tenforums.com/attachments/tutorials/…) after you choose Windows Recovery in GRUB? If not, perhaps this is the blurred screen? You can turn it off or reduce the timeout in the Windows System control panel -> Advanced tab -> Startup and Recovery
  • ajroot
    ajroot over 8 years
    Tried it. Still the same.
  • ajroot
    ajroot over 8 years
    Yes. I know there is no problem. There are some minor problems. When I click on the windows recovery loader, for 15 seconds the screen gets blurred and then windows boots. I just wanted to make sure that nothing messes up in the future.
  • ajroot
    ajroot over 8 years
    I sure hope it's only a misleading name problem.