Hi! Decided to install Fedora after having Linux Mint for some time, back when I installed Mint I created the partitions manually so now I tried to install Fedora using the same partitions and formatting them. I think I made some silly mistake while doing that, 'cause I formatted the Linux Mint efi partition too, and now my laptop boots Fedora automatically.
The Windows 10 files are still there when I use “fdisk -l” - here is also listed the EFI partition- and even in the file explorer I can access to those files from Fedora, but I can’t boot Windows.
Tried “sudo os-prober” but nothing is shown, seems like it can’t find W10.
The “sudo grub2-mkconfig -o /boot/grub2/grub.cfg” creates the files and adds an entry to UEFI Firmware Settings, but no Windows 10 appears.
Also followed this tutorial to add the operative system, but didn’t work.
I still haven’t tried to restore the grub with the liveusb as it is shown in the same article, 'cause I felt that maybe before rushing I could get some guidance here.
Thanks! The good thing is so far I’m enjoying Fedora and works flawless on my laptop.
benlimanto
(Benyamin Limanto)
June 23, 2024, 12:11am
2
Could you show your disk lsblk?
lsblk -f
and paste it here?
So we can get the glance over there.
also what is the output of
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
?
1 Like
iguanachu
(martin b)
June 23, 2024, 12:20am
3
Hi, sure:
lsblk -f:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1
│ vfat FAT16 33F8-095F 80,8M 19% /boot/efi
├─sda2
│
├─sda3
│ ntfs 8C3E99553E9938E2 11,9G 87% /run/media/mart/8C3E99553E9938E2
├─sda4
│ ntfs E470587470584F82
└─sda5
ext4 1.0 5879b19b-af82-4a10-b5e9-25c68de9fc3c 17,2G 35% /
sdb
├─sdb1
│
├─sdb2
│ ntfs Programas y Archivos 18D8971AD896F4EA 363,5G 43% /run/media/mart/Programas y Archivos
├─sdb3
│ swap 1 128f20e3-a6d3-4c81-b010-5fe58f06c014 [SWAP]
└─sdb4
ext4 1.0 a67a240f-9be4-4449-acd6-47bc61358f3b 180,5G 30% /home
zram0
[SWAP]
And for the second command: UEFI.
benlimanto
(Benyamin Limanto)
June 23, 2024, 1:24am
4
Hello, could you try to check Os-prober results not being added to grub menu - #2 by computersavvy
and also
sudo efibootmgr -v
What is the output?
It could be it doesn’t show the windows because you are on UEFI and you only need to change the boot via UEFI interface not GRUB
1 Like
Thanks, again, I did that and I had no changes, I got the same outputs in every step, except in this line:
set prefix=($dev)/grub2
where I got:
set prefix=($dev)/boot/grub2
Then I reainstalled using the command I found in the documentation:
# dnf reinstall shim-\* grub2-efi-\* grub2-common
Then, the output for the last command is:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0001,0002
Boot0000* Windows Boot Manager HD(1,GPT,b6fbaec7-9143-4397-89b3-b743405bea49,0x800,0x32000)/\EFI\Microsoft\Boot\bootmgfw.efi57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000004d000100000010000000040000007fff0400
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 20 03 00 00 00 00 00 c7 ae fb b6 43 91 97 43 89 b3 b7 43 40 5b ea 49 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 69 00 63 00 72 00 6f 00 73 00 6f 00 66 00 74 00 5c 00 42 00 6f 00 6f 00 74 00 5c 00 62 00 6f 00 6f 00 74 00 6d 00 67 00 66 00 77 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
data: 57 49 4e 44 4f 57 53 00 01 00 00 00 88 00 00 00 78 00 00 00 42 00 43 00 44 00 4f 00 42 00 4a 00 45 00 43 00 54 00 3d 00 7b 00 39 00 64 00 65 00 61 00 38 00 36 00 32 00 63 00 2d 00 35 00 63 00 64 00 64 00 2d 00 34 00 65 00 37 00 30 00 2d 00 61 00 63 00 63 00 31 00 2d 00 66 00 33 00 32 00 62 00 33 00 34 00 34 00 64 00 34 00 37 00 39 00 35 00 7d 00 00 00 4d 00 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00
Boot0001* Fedora HD(1,GPT,b6fbaec7-9143-4397-89b3-b743405bea49,0x800,0x32000)/\EFI\fedora\shimx64.efi
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 20 03 00 00 00 00 00 c7 ae fb b6 43 91 97 43 89 b3 b7 43 40 5b ea 49 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 66 00 65 00 64 00 6f 00 72 00 61 00 5c 00 73 00 68 00 69 00 6d 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0002* ubuntu HD(1,GPT,b6fbaec7-9143-4397-89b3-b743405bea49,0x800,0x32000)/\EFI\ubuntu\shimx64.efi
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 20 03 00 00 00 00 00 c7 ae fb b6 43 91 97 43 89 b3 b7 43 40 5b ea 49 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 75 00 62 00 75 00 6e 00 74 00 75 00 5c 00 73 00 68 00 69 00 6d 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
I don’t really know why I have Ubuntu besides the other two os. I have set Windows in the top boot priority but it just ignores it and boot Fedora.
vekruse
(Villy Kruse)
June 23, 2024, 4:06am
6
Then we like to see what is in /boot/efi
sudo find /boot/efi
The ubuntu entry probably comes from a previous ubuntu install. You can remove the entry by running
sudo efibootmgr -b 0002 -B
Sometimes it is just easier to boot Windows from the UEFI boot menu. In some cases it might even be better, especially if bitlocker is enabled.
1 Like
The ubuntu entry probably comes from a previous ubuntu install. You can remove the entry by running
Oh, thanks, I see, that makes sense since I had Mint before.
My /boot/efi:
/boot/efi
/boot/efi/EFI
/boot/efi/EFI/BOOT
/boot/efi/EFI/BOOT/BOOTIA32.EFI
/boot/efi/EFI/BOOT/BOOTX64.EFI
/boot/efi/EFI/BOOT/fbia32.efi
/boot/efi/EFI/BOOT/fbx64.efi
/boot/efi/EFI/fedora
/boot/efi/EFI/fedora/grub.cfg
/boot/efi/EFI/fedora/BOOTIA32.CSV
/boot/efi/EFI/fedora/BOOTX64.CSV
/boot/efi/EFI/fedora/gcdia32.efi
/boot/efi/EFI/fedora/gcdx64.efi
/boot/efi/EFI/fedora/grubia32.efi
/boot/efi/EFI/fedora/grubx64.efi
/boot/efi/EFI/fedora/mmia32.efi
/boot/efi/EFI/fedora/mmx64.efi
/boot/efi/EFI/fedora/shim.efi
/boot/efi/EFI/fedora/shimia32.efi
/boot/efi/EFI/fedora/shimx64.efi
/boot/efi/EFI/Dell
/boot/efi/EFI/Dell/logs
/boot/efi/EFI/Dell/logs/diags_current.xml
/boot/efi/System
/boot/efi/System/Library
/boot/efi/System/Library/CoreServices
/boot/efi/System/Library/CoreServices/SystemVersion.plist
/boot/efi/mach_kernel
vekruse
(Villy Kruse)
June 23, 2024, 4:56am
8
Bad news: I am afraid you reformatted the /boot/efi file system, and thereby removed the Windows boot loader from your system.
You have to call in the Windows Experts to recover from this.
1 Like
ooh, I get it, casually I still have some things to try, this one is from my laptop manufacturer and aims to repair the EFI from Windows, already downloaded woeusb and the iso, but before trying anything I wanted to be a little more informed, thanks!