I've had a Windows/Ubuntu 20.04 dual boot and everything was working fine. It would boot Windows by default, or I could press F11 to pick Ubuntu.
I got a new SSD and wanted to install Ubuntu 22.04 to it, and then drag my files over later. I put the live CD ISO on a new partition of my old drive, booted into it, and after a few false starts I got it to install Ubuntu 22.04 on the SSD that I'd connected with a USB. Afterwards I deallocated the partition with the installer.
I had trouble getting into either of the two original OSes afterwards. I was able to fix Ubuntu 20.04 with boot-repair, but it refuses to fix Windows for me, saying that I need to use legacy boot. Switching UEFI-CRM did nothing, and switching to legacy mode made me unable to boot anything at all - I always ended up on a screen with a blinking underscore that wouldn't let me type anything.
Here is my boot-repair output: https://paste.ubuntu.com/p/ckQMNhQ6yY/
Does anyone have any insight on how I can get Windows back or what about it is broken?
============================== Boot Info Summary ===============================
=> No boot loader is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /bootmgr /Windows/System32/winload.exe
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sdb1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sdb2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.5 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sdb3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb4: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
sdb5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
================================ 2 OS detected =================================
OS#1: Ubuntu 20.04.5 LTS on sdb2
OS#2: Windows 8 or 10 on sda3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: GP106M [GeForce GTX 1060 Mobile] HD Graphics 530 from NVIDIA Corporation Intel Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-135-generic root=UUID=c555b7d5-95a3-4ffd-814e-b2a3ff033e0c ro quiet splash
df -Th / : /dev/sdb2 ext4 412G 167G 225G 43% /
===================================== UEFI =====================================
BIOS/UEFI firmware: E16K2IMS.10B from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot enabled.
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004
Boot0004* ubuntu HD(4,GPT,754b2898-f048-4ae9-a821-cd390902bb29,0x6d5bb000,0x77000)/File(\EFI\Ubuntu\shimx64.efi)..BO
c152ec201c37b6e97bbc2207e49d1271 sdb4/BOOT/fbx64.efi
fdafb5eece6caeccb788c946a28e6872 sdb4/BOOT/mmx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d sdb4/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872 sdb4/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95 sdb4/ubuntu/shimx64.efi
728124f6ec8e22fbdbe7034812c81b95 sdb4/BOOT/BOOTX64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sdb : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, no-wind, 2048 sectors * 512 bytes
sda : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sdb2 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda3 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb5 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sdb2 : isnotESP, fstab-has-bad-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sdb1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb4 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb5 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sdb2 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sdb
sda1 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sdb1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdb
sdb4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdb
sdb5 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdb
fdisk -l (filtered): ___________________________________________________________
Disk sda: 119.25 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: DAE092C2-99BA-4C1A-B66B-DEA1E58A5F13
Start End Sectors Size Type
sda1 2048 616447 614400 300M Linux filesystem
sda2 616448 878591 262144 128M Microsoft reserved
sda3 878592 248053650 247175059 117.9G Microsoft basic data
sda4 248053760 250068991 2015232 984M Windows recovery environment
Disk sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 51E8AACB-11FA-4B2F-AD49-9680580295AC
Start End Sectors Size Type
sdb1 2048 893317119 893315072 426G Microsoft basic data
sdb2 893319168 1772224511 878905344 419.1G Microsoft basic data
sdb3 1772224512 1834725375 62500864 29.8G Linux swap
sdb4 1834725376 1835212799 487424 238M EFI System
sdb5 1917319168 1953523711 36204544 17.3G Windows recovery environment
parted -lm (filtered): _________________________________________________________
sda:128GB:scsi:512:512:gpt:ATA TOSHIBA THNSNJ12:;
1:1049kB:316MB:315MB:ext4:Linux filesystem:;
2:316MB:450MB:134MB::Microsoft reserved partition:msftres;
3:450MB:127GB:127GB:ntfs:Basic data partition:msftdata;
4:127GB:128GB:1032MB:ntfs::hidden, diag;
sdb:1000GB:scsi:512:4096:gpt:ATA HGST HTS541010A7:;
1:1049kB:457GB:457GB:ntfs:Basic data partition:msftdata;
2:457GB:907GB:450GB:ext4:Basic data partition:msftdata;
3:907GB:939GB:32.0GB:linux-swap(v1)::swap;
4:939GB:940GB:250MB:fat32::boot, esp;
5:982GB:1000GB:18.5GB:ntfs:Basic data partition:hidden, diag;
Free space >10MiB: ______________________________________________________________
sdb: 896100MiB:936191MiB:40091MiB
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 ext4 7f01df42-d209-407d-b3b9-4513bf7be28c 68bd2d2d-9df6-491b-9fe1-f65da2ba3060 Linux filesystem
├─sda2 558102a7-7d68-4d12-9b6f-0603d70fa4f7 Microsoft reserved partition
├─sda3 ntfs ECE4993CE4990A4A 6fe181cc-4ca1-457b-84c5-b45ec55545f3 Windows Basic data partition
└─sda4 ntfs 763497F53497B699 7bdbc518-5fde-41c3-9830-5722ad4f5994
sdb
├─sdb1 ntfs D82E9F452E9F1C16 1d53f655-2057-4543-899d-891da1a29932 Data Basic data partition
├─sdb2 ext4 c555b7d5-95a3-4ffd-814e-b2a3ff033e0c 576f6570-f20b-11ec-84a3-e4b318dc9d34 Basic data partition
├─sdb3 swap b97ed6af-77e0-4d7b-b455-0a6101871db8 de683813-9ae0-4750-89fd-27f4fa0378e6
├─sdb4 vfat 9408-2152 754b2898-f048-4ae9-a821-cd390902bb29
└─sdb5 ntfs DEF6A161F6A13B23 b127928f-5e9b-4937-a30d-dcb187448e61 BIOS_RVY Basic data partition
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda1 253.3M 0% /mnt/boot-sav/sda1
/dev/sda3 6.2G 95% /mnt/boot-sav/sda3
/dev/sda4 421.7M 57% /mnt/boot-sav/sda4
/dev/sdb1 146.4G 66% /mnt/boot-sav/sdb1
/dev/sdb2 224.3G 40% /
/dev/sdb4 229.1M 2% /mnt/boot-sav/sdb4
/dev/sdb5 761M 96% /mnt/boot-sav/sdb5
Mount options (filtered): ______________________________________________________
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
Ubuntu c555b7d5-95a3-4ffd-814e-b2a3ff033e0c
Ubuntu, with Linux 5.4.0-137-generic c555b7d5-95a3-4ffd-814e-b2a3ff033e0c
Ubuntu, with Linux 5.4.0-135-generic c555b7d5-95a3-4ffd-814e-b2a3ff033e0c
Ubuntu 22.04.1 LTS (22.04) (on sdc2) 7aea8649-f8ef-4ecc-8a62-389a3ee1a5a9
Ubuntu (on sdc2) 7aea8649-f8ef-4ecc-8a62-389a3ee1a5a9
Ubuntu, with Linux 5.15.0-43-generic (on sdc2) 7aea8649-f8ef-4ecc-8a62-389a3ee1a5a9
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sdb2/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb3 during installation
UUID=c555b7d5-95a3-4ffd-814e-b2a3ff033e0c / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=7E97-7AD1 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sdb4 during installation
UUID=b97ed6af-77e0-4d7b-b455-0a6101871db8 none swap sw 0 0
======================= sdb2/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
596.155696869 = 640.117305344 boot/grub/grub.cfg 2
733.082065582 = 787.140874240 boot/vmlinuz 2
670.334957123 = 719.766679552 boot/vmlinuz-5.4.0-135-generic 2
733.082065582 = 787.140874240 boot/vmlinuz-5.4.0-137-generic 2
670.334957123 = 719.766679552 boot/vmlinuz.old 2
803.647457123 = 862.909886464 boot/initrd.img 4
733.778636932 = 787.888812032 boot/initrd.img-5.4.0-135-generic 7
803.647457123 = 862.909886464 boot/initrd.img-5.4.0-137-generic 4
733.778636932 = 787.888812032 boot/initrd.img.old 7
===================== sdb2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18224 Jan 11 2022 10_linux
-rwxr-xr-x 1 root root 42359 Jan 11 2022 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Jan 11 2022 20_linux_xen
-rwxr-xr-x 1 root root 12059 Mar 18 2019 30_os-prober
-rwxr-xr-x 1 root root 1424 Jan 11 2022 30_uefi-firmware
-rwxr-xr-x 1 root root 700 Feb 21 2022 35_fwupd
-rwxr-xr-x 1 root root 214 Mar 18 2019 40_custom
-rwxr-xr-x 1 root root 216 Mar 18 2019 41_custom
===================== sdb4/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 7aea8649-f8ef-4ecc-8a62-389a3ee1a5a9 root hd2,msdos2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sdb2,
using the following options: sdb4/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file
Blockers in case of suggested repair: __________________________________________
LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB).
Confirmation request before suggested repair: __________________________________
LegacyWindows detected. You may want to retry after deactivating the [Separate /boot/efi partition:] option.
Are you sure you want to continue anyway?
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.5 LTS entry (sdb4/efi/****/shim****.efi (**** will be updated in the final message) file) !```