Grub does not detect Windows in dual boot
by lattimro from LinuxQuestions.org on (#5SXJB)
Ubuntu 20.04.3
Dual boot
Hi everyone,
I have a dual boot Ubuntu/Windows and used to select OS from a text grub menu. After the last Windows update a few days ago I think the boot was overwritten and I could boot only Windows.
I tried to restore grub from live media but only after I created a new 1M BIOS boot partition (sda10) with a bios_grub flag. Now I can boot Ubuntu but only when I changed from BIOS settings to CSM from UEFI (when UEFI is enabled only Windows boots).
os-prober does not see the Windows.
https://help.ubuntu.com/community/UEFI
I tried boot-repair but ends up with an error.
I pasted below some relevant info let me know please if you need anything else. Thank you.
fstab:
Code: # / was on /dev/sda6 during installation
UUID=6c04f6aa-3801-4066-8acf-36b4500287c0 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=2CD1-0B3E /boot/efi vfat umask=0077 0 1[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Code: Legacy boot on HDDcfdisk:
Code: Disk: /dev/sda
Size: 698.65 GiB, 750156374016 bytes, 1465149168 sectors
Label: gpt, identifier: 3882C4AF-416A-43E7-A057-D27E36BD07AC
Device Start End Sectors Size Type
/dev/sda1 2048 923647 921600 450M Windows recovery environment
>> /dev/sda2 923648 1128447 204800 100M EFI System
/dev/sda3 1128448 1161215 32768 16M Microsoft reserved
/dev/sda4 1161216 396725504 395564289 188.6G Microsoft basic data
/dev/sda5 396726272 406966271 10240000 4.9G Microsoft basic data
/dev/sda6 406966272 408893439 1927168 941M Windows recovery environment
/dev/sda7 408893440 805044223 396150784 188.9G Linux filesystem
/dev/sda8 805044224 1463195647 658151424 313.9G Linux filesystem
/dev/sda9 1463195648 1465145343 1949696 952M Linux swap
/dev/sda10 1465145344 1465147391 2048 1M BIOS boot
Partition name: EFI system partition
Partition UUID: FC73FEE6-9F08-447A-9278-0B4265841314
Partition type: EFI System (C12A7328-F81F-11D2-BA4B-00A0C93EC93B)
Filesystem UUID: 2CD1-0B3E
Filesystem: vfat
Mountpoint: /boot/efi (mounted)I am trying to fix with boot-repair from live media
Dual boot
Hi everyone,
I have a dual boot Ubuntu/Windows and used to select OS from a text grub menu. After the last Windows update a few days ago I think the boot was overwritten and I could boot only Windows.
I tried to restore grub from live media but only after I created a new 1M BIOS boot partition (sda10) with a bios_grub flag. Now I can boot Ubuntu but only when I changed from BIOS settings to CSM from UEFI (when UEFI is enabled only Windows boots).
os-prober does not see the Windows.
https://help.ubuntu.com/community/UEFI
I tried boot-repair but ends up with an error.
I pasted below some relevant info let me know please if you need anything else. Thank you.
fstab:
Code: # / was on /dev/sda6 during installation
UUID=6c04f6aa-3801-4066-8acf-36b4500287c0 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=2CD1-0B3E /boot/efi vfat umask=0077 0 1[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Code: Legacy boot on HDDcfdisk:
Code: Disk: /dev/sda
Size: 698.65 GiB, 750156374016 bytes, 1465149168 sectors
Label: gpt, identifier: 3882C4AF-416A-43E7-A057-D27E36BD07AC
Device Start End Sectors Size Type
/dev/sda1 2048 923647 921600 450M Windows recovery environment
>> /dev/sda2 923648 1128447 204800 100M EFI System
/dev/sda3 1128448 1161215 32768 16M Microsoft reserved
/dev/sda4 1161216 396725504 395564289 188.6G Microsoft basic data
/dev/sda5 396726272 406966271 10240000 4.9G Microsoft basic data
/dev/sda6 406966272 408893439 1927168 941M Windows recovery environment
/dev/sda7 408893440 805044223 396150784 188.9G Linux filesystem
/dev/sda8 805044224 1463195647 658151424 313.9G Linux filesystem
/dev/sda9 1463195648 1465145343 1949696 952M Linux swap
/dev/sda10 1465145344 1465147391 2048 1M BIOS boot
Partition name: EFI system partition
Partition UUID: FC73FEE6-9F08-447A-9278-0B4265841314
Partition type: EFI System (C12A7328-F81F-11D2-BA4B-00A0C93EC93B)
Filesystem UUID: 2CD1-0B3E
Filesystem: vfat
Mountpoint: /boot/efi (mounted)I am trying to fix with boot-repair from live media