You are not logged in.
Hello i'm dualbooting arch linux and windows 10, recently i updated grub to add microcode updates and now it does not shows me windows each time i boot, i suppose this is easy to solve, but im kinda lost here, hope somebody can help me
Depressed Mexican Fairy Rockstar
Offline
pacman -Qi os-proberOffline
I have os-prober, when i first installed arch and therefore grub, i had everything working fine, it was until i regenerated grub to add the microcode feature that i lost the boot into windows option
Depressed Mexican Fairy Rockstar
Offline
Does os-prober detect windows when running it?
Offline
i guess it doesnt, i'll show u the output when i use grub-mkconfig
[lgtegetege@lgtegetege ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
donewhen i type sudo os-prober it doesnt shows an output
Depressed Mexican Fairy Rockstar
Offline
mount | grep boot
ls -lR /bootOffline
Hello, this is the output of ls -lR /boot
http://ix.io/2KNK
i dont see windows anywere
Depressed Mexican Fairy Rockstar
Offline
Under which directory is the EFI system partition mounted?
The Windows UEFI bootloader should be on the ESP under /EFI/Microsoft/Boot/bootmgfw.efi
Jin, Jîyan, Azadî
Offline
I think its there, as i said, when i did the installation, everything was fine, it was after i did the microcode setup.
Is there a way to verify what you are asking?
Depressed Mexican Fairy Rockstar
Offline
Output of
lsblk -f
mountLast edited by seth (2021-01-04 15:24:05)
Offline
With apologies to seth...
Is there a way to verify what you are asking?
Determine the EFI system partition with either gparted or
# parted --listIt will have the "boot,esp" flags applied.
Then mount it and look for the bootloader (replace X & Y with the drive letter & partition number assigned to the ESP):
# mount /dev/sdXY /mnt
find /mnt -name bootmgfw.efiIf there is no output for the find command then it is not there.
Last edited by Head_on_a_Stick (2021-01-04 21:30:58)
Jin, Jîyan, Azadî
Offline
At the risk of going back to basics.
sudo fdisk -lIs your Windows drive/partition seen at all?
Last edited by Roken (2021-01-04 22:37:43)
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
You better hope you didn't f up your Windows install, because you might have to reinstall it to work. I'd see if you can just repair the boot manager on Windows 10. There's plenty of guides on how to do it, and I'd do that, then reinstall grub using an Arch Linux USB, then regenerate the grub cfg and see if it detects Windows 10.
Offline
You better hope you didn't f up your Windows install, because you might have to reinstall it to work. I'd see if you can just repair the boot manager on Windows 10. There's plenty of guides on how to do it, and I'd do that, then reinstall grub using an Arch Linux USB, then regenerate the grub cfg and see if it detects Windows 10.
thats the strange thing, everything is working fine with windows, i just have to enter my UEFI boot menu to use windows, i have been doing this for like a month, although it is not a big deal i would like to have everything working fine
also @Head_on_a_Stick this is what parted --list shows https://imgur.com/zanfcrs as you can see, it has the "hidden" flag, i dont know if this is what is causing this, and i didint know how did this happen
Depressed Mexican Fairy Rockstar
Offline
@lgtegetege please post the output of the following as text. See the tip box from pastebin to pipe the output directly to a pastebin then post the link.
cat /etc/fstab
mount
find /bootOffline
@lgtegetege please post the output of the following as text. See the tip box from pastebin to pipe the output directly to a pastebin then post the link.
cat /etc/fstab mount find /boot
http://ix.io/2KUL <--- cat /etc/fstab
http://ix.io/2KUM <--- mount
http://ix.io/2KUN <--- find /boot
sorry it was a little bit easier for me to get the pastebins separately
Depressed Mexican Fairy Rockstar
Offline
With apologies to seth...
lgtegetege wrote:Is there a way to verify what you are asking?
Determine the EFI system partition with either gparted or
# parted --listIt will have the "boot,esp" flags applied.
Then mount it and look for the bootloader (replace X & Y with the drive letter & partition number assigned to the ESP):
# mount /dev/sdXY /mnt find /mnt -name bootmgfw.efiIf there is no output for the find command then it is not there.
[lgtegetege@lgtegetege ~]$ find /mnt -name bootmgfw.efi
/mnt/EFI/Microsoft/Boot/bootmgfw.efi guess it is there, but i dont know why it does not appear in grub
Depressed Mexican Fairy Rockstar
Offline
Neither EFI nor windows partition are mounted in the #16 outputs.
#17 smells like the first partition is actually the /boot partition.
Mount it to /boot before running os-prober (ONLY! don't try to re-create grub.cfg for now) and maybe also
pacman -Qi ntfs-3g (in case os-prober would like to look at the windows partition and you're on a recent kernel w/o the ntfs module)
The general circumstances however sound as if you were booting from the root partition - what's
ls -lR /boot # with the partition mountedOffline
I would mount the EFI again and check if /mnt/EFI/Microsoft/Boot/bootx64.efi exists (which is a fallback). If not creat it.
sudo cp /mnt/EFI/Microsoft/Boot/bootmgfw.efi /mnt/EFI/Microsoft/Boot/bootx64.efinext run
sudo grub-mkconfig -o /boot/grub/grub.cfgsometimes the fallback just work dunno why since it a 1-1 copy
Last edited by Archlin (2021-01-05 08:53:27)
Offline
Mount it to /boot before running os-prober
I think the OP runs with /boot on the root partition because otherwise they wouldn't be able to boot after kernel upgrades.
@OP: just mount the ESP under /mnt then run grub-mkconfig, it should then be able to find bootmgfw.efi and create an entry for it.
If it doesn't then add this stanza to the end of /etc/grub.d/40_custom then re-generate grub.cfg:
menuentry 'Windows' {
search --fs-uuid $uuid --set=root
chainloder /EFI/Microsoft/Boot/bootmgfw.efi
}Replace "$uuid" with the actual UUID of the EFI system partition.
EDIT:
and check if /mnt/EFI/Microsoft/Boot/bootx64.efi exists (which is a fallback).
That is not correct — the fallback UEFI loader is $ESP/EFI/BOOT/bootx64.ef
$ESP/Microsoft/Boot/ is an aberration created by Microsoft and supported by their cronies in the PC hardware industry, it is not part of the official UEFI specification.
Last edited by Head_on_a_Stick (2021-01-05 09:39:37)
Jin, Jîyan, Azadî
Offline
I think the OP runs with /boot on the root partition
Yes
The general circumstances however sound as if you were booting from the root partition
but we're trying to figure why windows isn't detected.
Offline
we're trying to figure why windows isn't detected.
Because the ESP wasn't mounted when the OP generated grub.cfg. Presumably it was mounted when they first installed and so an original menuentry was generated.
Jin, Jîyan, Azadî
Offline
Yes, therefore
Neither EFI nor windows partition are mounted in the #16 outputs.
#17 smells like the first partition is actually the /boot partition.
Mount it to /boot before running os-prober
You gotta read what me writes ![]()
Offline
seth wrote:Mount it to /boot before running os-prober
That is not correct — the fallback UEFI loader is $ESP/EFI/BOOT/bootx64.ef
$ESP/Microsoft/Boot/ is an aberration created by Microsoft and supported by their cronies in the PC hardware industry, it is not part of the official UEFI specification.
Your right. I copied the path and added bootx64.efi but as you stated it is efi/boot/bootx64.efi.
My bad.
Offline
Sorry but I have to be honest with you people, i got confused in the last messages lol so whats the path here?
Mount it to /boot before running os-prober
this? How do i do it?
Or this?
@OP: just mount the ESP under /mnt then run grub-mkconfig, it should then be able to find bootmgfw.efi and create an entry for it.
If it doesn't then add this stanza to the end of /etc/grub.d/40_custom then re-generate grub.cfg:
menuentry 'Windows' { search --fs-uuid $uuid --set=root chainloder /EFI/Microsoft/Boot/bootmgfw.efi }Replace "$uuid" with the actual UUID of the EFI system partition.
Last edited by lgtegetege (2021-01-06 03:39:38)
Depressed Mexican Fairy Rockstar
Offline