Grub lost Win7 entry
by Seppi from LinuxQuestions.org on (#52XMS)
Hello,
im having trouble booting my Win7 partition lately. I haven't used it for a while and i didnt notice that grub lost the Windows entry during the last couple of months.
What i tried so far:
Code:sudo os-prober
sudo update-grubThis does not bring up the Win partition.
Ive also installed boot-repair, which detects the Win7 partition but does not fix the problem. I tried just to fix the Win boot files, reinstall grub and place the boot flag on the linux partition.
I also purged grub once but it didn't help.
BootInfo gives me the following output:
Quote:
Any idea why os_prober isn't picking up my win7 installation any more? Let me know if you need further information.
Thank you for your help.


im having trouble booting my Win7 partition lately. I haven't used it for a while and i didnt notice that grub lost the Windows entry during the last couple of months.
What i tried so far:
Code:sudo os-prober
sudo update-grubThis does not bring up the Win partition.
Ive also installed boot-repair, which detects the Win7 partition but does not fix the problem. I tried just to fix the Win boot files, reinstall grub and place the boot flag on the linux partition.
I also purged grub once but it didn't help.
BootInfo gives me the following output:
Quote:
=> Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of the same hard drive for core.img. core.img is at this location and looks for (,msdos5)/boot/grub. It also embeds following components: modules --------------------------------------------------------------------------- fshelp ext2 part_msdos biosdisk --------------------------------------------------------------------------- [...] sdc1: __________________________________________________________________________ File system: ntfs Boot sector type: Windows 7/2008: NTFS Boot sector info: No errors found in the Boot Parameter Block. Operating System: Windows 7 Boot files: /bootmgr /Windows/System32/winload.exe sdc2: __________________________________________________________________________ File system: Extended Partition Boot sector type: - Boot sector info: sdc5: __________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Linux Mint 19.1 Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub /boot/grub/i386-pc/core.img sdc6: __________________________________________________________________________ File system: swap Boot sector type: - Boot sector info: [...] Partition Boot Start Sector End Sector # of Sectors Id System /dev/sdc1 2,048 149,838,876 149,836,829 7 NTFS / exFAT / HPFS /dev/sdc2 149,839,870 247,461,887 97,622,018 5 Extended /dev/sdc5 * 149,839,872 230,688,767 80,848,896 83 Linux /dev/sdc6 230,690,816 247,461,887 16,771,072 82 Linux swap / Solaris blkid (filtered): ______________________________________________________________ Device UUID TYPE LABEL /dev/sdc1 4C3EFDC5xxxxxxxx ntfs SSD /dev/sdc5 f68f5cde-d2a5-4d7a-990a-xxxxxxxxxxxx ext4 /dev/sdc6 94e63dc9-c827-4b8a-b024-xxxxxxxxxxxx swap [...] ====================== sdc5/boot/grub/grub.cfg (filtered) ====================== Linux Mint 19.1 Cinnamon Linux Mint 19.1 Cinnamon, with Linux 4.15.0-99-generic ### END /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_uefi-firmware ### [...] ================================ 2 OS detected ================================= OS#1: The OS now in use - Linux Mint 19.1 Tessa CurrentSession on sdc5 OS#2: Windows on sdc1 [...] =============================== UEFI/Legacy mode =============================== This installed-session is not in EFI-mode. |
Thank you for your help.