Open sebma opened 4 years ago
On windows, bcdedit
says :
C:> bcdedit
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume1
path \bootmgr
description Windows Boot Manager
locale en-US
default {current}
resumeobject {5f597a5b-b711-11e7-aab4-806e6f6e6963}
displayorder {current}
timeout 30
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7 Home Premium (recovered)
locale en-US
recoverysequence {6b4c6d09-f7da-11e6-bc98-85f4c9da94bf}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {5f597a5b-b711-11e7-aab4-806e6f6e6963}
C:>
Could it be possible that the Windows Boot Manager is installed on a different partition than the Windows Boot Loader ?
I wish I knew on which \Device\HarddiskVolume
my C:
is.
The /dev/sda2
partition entry in grub boots into a Windows Recovery Environment.
Why does your 20microsoft
script see it has a normal Windows 7 boot entry ?
Here's the output of list volume
in the diskpart
utility :
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: SEB-WIN7-PC
DISKPART>
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 G DVD-ROM 0 B No Media
Volume 1 RECOVERY NTFS Partition 9 GB Healthy System
Volume 2 C WIN7 NTFS Partition 40 GB Healthy Boot
Volume 3 D DONNEES_PAR NTFS Partition 46 GB Healthy
Volume 4 H Removable 0 B No Media
DISKPART>
Same issue on Ubuntu 22 LTS and Windows 10. Windows 10 Recovery Partition was hidden before, so dual-boot GRUB menu showed a single Windows entry and single Ubuntu entry.
Ubuntu 20 LTS to 22 LTS upgrade has failed on my laptop, so neither Ubuntu nor Windows could boot.
I had to fix boot configuration, but Windows Recovery Partition became visible and sudo update-grub
generated two entries as below:
Found Windows 10 on /dev/sda1
Found Windows 10 on /dev/sda2
done
I have hidden Windows Recovery Partition by setting hidden
flag using disk manager, but GRUB update script still reports two instances of Windows which boot same installation of Windows.
It did work before Ubuntu 20 upgrade, so there had to be a way to let GRUB script know to ignore either sda1
or sda2
.
Has anyone else managed to fix this?
Hi, Your 20microsoft script detects twice Windows7 on a BIOS system :
Can you help me ?