You are not logged in.

#1 2021-01-02 06:34:28

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

grub stopped showing windows

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

#2 2021-01-02 07:57:39

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,311

Re: grub stopped showing windows

pacman -Qi os-prober

Online

#3 2021-01-02 17:16:13

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

Re: grub stopped showing windows

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

#4 2021-01-02 17:20:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,311

Re: grub stopped showing windows

Does os-prober detect windows when running it?

Online

#5 2021-01-03 07:47:07

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

Re: grub stopped showing windows

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
done

when i type sudo os-prober it doesnt shows an output


Depressed Mexican Fairy Rockstar

Offline

#6 2021-01-03 08:08:06

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,311

Re: grub stopped showing windows

mount | grep boot
ls -lR /boot

Online

#7 2021-01-04 07:48:57

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

Re: grub stopped showing windows

Hello, this is the output of ls -lR /boot

http://ix.io/2KNK
i dont see windows anywere


Depressed Mexican Fairy Rockstar

Offline

#8 2021-01-04 08:05:56

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: grub stopped showing windows

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

#9 2021-01-04 15:14:34

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

Re: grub stopped showing windows

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

#10 2021-01-04 15:23:53

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,311

Re: grub stopped showing windows

Output of

lsblk -f
mount

Last edited by seth (2021-01-04 15:24:05)

Online

#11 2021-01-04 21:04:06

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: grub stopped showing windows

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 --list

It 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.efi

If 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

#12 2021-01-04 22:36:34

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,340

Re: grub stopped showing windows

At the risk of going back to basics.

sudo fdisk -l

Is 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

#13 2021-01-05 02:37:31

Total Basshead
Member
Registered: 2021-01-05
Posts: 6

Re: grub stopped showing windows

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

#14 2021-01-05 03:55:43

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

Re: grub stopped showing windows

Total Basshead wrote:

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

#15 2021-01-05 04:07:53

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: grub stopped showing windows

@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

Offline

#16 2021-01-05 05:06:55

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

Re: grub stopped showing windows

loqs wrote:

@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

#17 2021-01-05 05:21:07

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

Re: grub stopped showing windows

Head_on_a_Stick wrote:

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 --list

It 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.efi

If 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

#18 2021-01-05 08:26:11

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,311

Re: grub stopped showing windows

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 mounted

Online

#19 2021-01-05 08:52:42

Archlin
Member
Registered: 2018-05-09
Posts: 67

Re: grub stopped showing windows

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.efi

next run

sudo grub-mkconfig -o /boot/grub/grub.cfg

sometimes the fallback just work dunno why since it a 1-1 copy

Last edited by Archlin (2021-01-05 08:53:27)

Offline

#20 2021-01-05 09:37:19

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: grub stopped showing windows

seth wrote:

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:

Archlin wrote:

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

#21 2021-01-05 09:40:12

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,311

Re: grub stopped showing windows

HoaS wrote:

I think the OP runs with /boot on the root partition

Yes

seth wrote:

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.

Online

#22 2021-01-05 09:44:13

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: grub stopped showing windows

seth wrote:

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

#23 2021-01-05 09:50:28

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,311

Re: grub stopped showing windows

Yes, therefore

seth wrote:

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 tongue

Online

#24 2021-01-05 13:43:29

Archlin
Member
Registered: 2018-05-09
Posts: 67

Re: grub stopped showing windows

Head_on_a_Stick wrote:
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

#25 2021-01-06 03:39:10

lgtegetege
Member
From: Rosales
Registered: 2020-11-08
Posts: 38

Re: grub stopped showing windows

Sorry but I have to be honest with you people, i got confused in the last messages lol so whats the path here?

Seth wrote:

Mount it to /boot  before running os-prober

this? How do i do it?

Or this?

Head_on_a_Stick wrote:

@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

Board footer

Powered by FluxBB