You are not logged in.

#1 2021-12-04 10:18:14

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

[SOLVED] arch does not add windows after using sudo grub-mkconfig

output :Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done

Last edited by Tech-Man (2021-12-06 13:33:01)


i dont have one stalker

Offline

#2 2021-12-04 12:34:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

That shows that the config did successfully detect Windows. So there will be a disjoint in where you put your configuration and where GRUB looks for it. Common causes is having had the ESP mounted to /boot during initial setup and not doing so on subsequent configuration attempts, see the following similar thread for some of the potential pitfalls in that: https://bbs.archlinux.org/viewtopic.php?id=271791

Offline

#3 2021-12-05 20:15:43

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

sorry for late reply but i have to study but my efi partiton is detected in /boot
lsblk output:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 953.9G  0 disk 
|-nvme0n1p1 259:1    0   100M  0 part 
|-nvme0n1p2 259:2    0    16M  0 part 
|-nvme0n1p3 259:3    0 194.7G  0 part 
|-nvme0n1p4 259:4    0   499M  0 part 
|-nvme0n1p5 259:5    0   750G  0 part /
|-nvme0n1p6 259:6    0     8G  0 part [SWAP]
`-nvme0n1p7 259:7    0   570M  0 part /boot

this my efi partition `-nvme0n1p7

Last edited by Tech-Man (2021-12-05 20:16:54)


i dont have one stalker

Offline

#4 2021-12-05 20:19:35

LyCC
Member
Registered: 2012-09-05
Posts: 174

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

Hi, please check the /boot/grub/grub.cfg, you should have something like ... followed by the windows entry

### BEGIN /etc/grub.d/30_os-prober ###

If not, then the mkconfig didn't overwrite the config file last time, so tell'em to explicitly do that with the "-o" option

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

If everything is there, you might have a grub.cfg on a different partition or hdd that is loaded?

Last edited by LyCC (2021-12-05 20:26:25)

Offline

#5 2021-12-05 20:24:41

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

ok one sec


i dont have one stalker

Offline

#6 2021-12-05 20:26:27

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

wait

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-A0E2-7B94' {
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root A0E2-7B94
	chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###

i dont have one stalker

Offline

#7 2021-12-05 20:36:06

LyCC
Member
Registered: 2012-09-05
Posts: 174

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

Strange, do you have a grub.cfg located on some other partition or disk? Did you changed/added drive recently?
As far as I know (someone correct me if I'm wrong) grub reads bad entries and displays it as a choice, so even if you cannot boot a bad entry, you can still see it and select it.

Offline

#8 2021-12-05 20:37:31

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

i just installed arch like 2 days ago and thats my efi partiton


i dont have one stalker

Offline

#9 2021-12-05 20:48:14

LyCC
Member
Registered: 2012-09-05
Posts: 174

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

If when you initially installed Arch you didn't have os-prober and now you want to update grub, then you can try to reinstall grub again (all steps).
Alternatively you can check each partition, mount them one by one) and check if any contains a grub.cfg file.
I'm sorry, but I have no other ideas. As far as I know grub loads the config file on each boot, so it should not ignore entries like that, unless I'm wrong or it loads the config file from somewhere else.

Offline

#10 2021-12-05 20:49:27

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

ok


i dont have one stalker

Offline

#11 2021-12-05 20:58:00

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

I just reinstalled grub and it worked thanks


i dont have one stalker

Offline

#12 2021-12-05 21:07:50

LyCC
Member
Registered: 2012-09-05
Posts: 174

Re: [SOLVED] arch does not add windows after using sudo grub-mkconfig

Welcome.

Btw, you do not need to create a swap partition, you can use a file for swap. It is more convenient if you ever want to resize it.

Also you should mark the topic with the [SOLVED] tag (by editing the first post).

Last edited by LyCC (2021-12-05 21:08:45)

Offline

Board footer

Powered by FluxBB