update-grub does not detect Windows 10

Bug #1498168 reported by Antonio Querubin
This bug report is a duplicate of:  Bug #1482851: Windows 10 is detected as Windows 8. Edit Remove
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux Mint
New
Undecided
Unassigned
os-prober (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Running Linux Mint 17.2

update-grub uses os-prober to detect Windows versions but currently detects Windows 10 as Windows Recovery Environment . The patch below fixes this.

Patch for /usr/lib/os-probes/mounted/20microsoft:

--- ./20microsoft 2015/09/21 19:22:31 1.1
+++ ./20microsoft 2015/09/21 19:38:21
@@ -31,7 +31,9 @@
  for boot in $(item_in_dir boot "$2"); do
   bcd=$(item_in_dir bcd "$2/$boot")
   if [ -n "$bcd" ]; then
- if grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
+ if grep -qs "W.i.n.d.o.w.s. .1.0" "$2/$boot/$bcd"; then
+ long="Windows 10 (loader)"
+ elif grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
     long="Windows 8 (loader)"
    elif grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
     long="Windows 7 (loader)"

Revision history for this message
Antonio Querubin (aaq) wrote :

Running update-grub:

Expected result:
Found Windows 10 (loader) on /dev/sda1

Actual result:
Found Windows Recovery Environment (loader) on /dev/sda1

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in os-prober (Ubuntu):
status: New → Confirmed
Antonio Querubin (aaq)
affects: linuxmint → os-prober (Ubuntu)
Antonio Querubin (aaq)
affects: os-prober → linuxmint
Changed in os-prober (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.