You are not logged in.
Pages: 1
I messed with grub-customizer because i wanted to set an image as background, making sure to run os-prober before and check so that windows was displayed as an option
After I reboot and select windows it gives me an error
invalid EFI file path Now when I open grub-customizer i can't find windows there anymore. And when closing it without me making changes it tells me the config file was updated.
Last edited by aggressive-support35 (2021-05-28 07:15:36)
Offline
What is the output of lsblk -f ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I mean it is there, I can boot into windows just not from grub. I am sorry I didn't make that clear.
If I press <ESC> before grub starts i can boot into windows.
anyway given this lblk-f output might not be useful but here it is
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
nvme0n1
|-nvme0n1p1 vfat FAT32 660B-630D
|-nvme0n1p2
|-nvme0n1p3 ntfs OS C2D61DADD61DA2A9
|-nvme0n1p4 vfat FAT32 7091-3E72 439.6M 12% /boot
|-nvme0n1p5 swap 1 fb59a9a8-7666-4b10-98ac-34705991a218 [SWAP]
|-nvme0n1p6 ext4 1.0 b5c5b3d7-b898-4a3e-b292-36df390fcf26 108.3G 38% /
`-nvme0n1p7 ntfs EE624EFF624ECC51
➜Offline
Now when I open grub-customizer
Please post the actual grub config.
Do you have os-prober installed and does it find the windows partition?
Offline
this is the /etc/default/grub file. I have os-prober installed but idk how to check if it is detecting the windows partition, when i just run sudo os-prober it doesn't give me an error.
# GRUB boot loader configuration
GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK="y"
# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE="menu"
# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE="auto"
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
export GRUB_COLOR_NORMAL="black/yellow"
export GRUB_COLOR_HIGHLIGHT="white/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/home/additional_pumpkin/Downloads/grubification.jpg"
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"
# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU="y"
GRUB_FONT="/boot/grub/unicode.pf2"Offline
That's not your grub config.
https://wiki.archlinux.org/title/GRUB#Configuration
Does os-prober print anything at all?
Is windows encrypted?
https://wiki.archlinux.org/title/GRUB#D … ng_systems
Offline
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
set menu_color_normal=black/yellow
set menu_color_highlight=white/blue
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 7091-3E72
else
search --no-floppy --fs-uuid --set=root 7091-3E72
fi
if loadfont /grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root b5c5b3d7-b898-4a3e-b292-36df390fcf26
else
search --no-floppy --fs-uuid --set=root b5c5b3d7-b898-4a3e-b292-36df390fcf26
fi
insmod jpeg
background_image -m stretch /home/additional_pumpkin/Downloads/grubification.jpg
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
set color_normal=black/yellow
set color_highlight=white/blue
### END /etc/grub.d/06_grub-customizer_menu_color_helper ###
### BEGIN /etc/grub.d/10_linux_proxy ###
menuentry "Arch Linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b5c5b3d7-b898-4a3e-b292-36df390fcf26' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 7091-3E72
else
search --no-floppy --fs-uuid --set=root 7091-3E72
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=b5c5b3d7-b898-4a3e-b292-36df390fcf26 rw loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
submenu "Advanced options for Arch Linux"{
menuentry "Arch Linux, with Linux linux (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-b5c5b3d7-b898-4a3e-b292-36df390fcf26' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 7091-3E72
else
search --no-floppy --fs-uuid --set=root 7091-3E72
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=b5c5b3d7-b898-4a3e-b292-36df390fcf26 rw loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux_proxy ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 10" {
set root='(hd0,1)'
chainloader +1
}
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/42_linux_proxy ###
submenu "Advanced options for Arch Linux"{
menuentry "Arch Linux, with Linux linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-b5c5b3d7-b898-4a3e-b292-36df390fcf26' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 7091-3E72
else
search --no-floppy --fs-uuid --set=root 7091-3E72
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=b5c5b3d7-b898-4a3e-b292-36df390fcf26 rw loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry "Arch Linux, with Linux linux (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-b5c5b3d7-b898-4a3e-b292-36df390fcf26' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 7091-3E72
else
search --no-floppy --fs-uuid --set=root 7091-3E72
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=b5c5b3d7-b898-4a3e-b292-36df390fcf26 rw loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
}
### END /etc/grub.d/42_linux_proxy ###os-prober prints nothing when run
windows is not encrypted
Last edited by aggressive-support35 (2021-05-24 08:45:47)
Offline
Usually there should be only one EFI system partition on the drive. You have two.
Offline
well it used to work i don't remember how I did the grub-install but how can I fix it
Offline
these are my partitions
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 589589207 589349592 281G Microsoft basic data
/dev/nvme0n1p4 589590528 590614527 1024000 500M EFI System
/dev/nvme0n1p5 590614528 591638527 1024000 500M Linux swap
/dev/nvme0n1p6 591638528 999190527 407552000 194.3G Linux filesystem
/dev/nvme0n1p7 999190528 1000215182 1024655 500.3M Windows recovery environmentOffline
If I can choose to boot into windows when I press <ESC> I think it means that the EFI isn't broken it just isn't linked in the grub
so how can I add a new boot entry (or use the one I already have which doesn't work) which boots the other EFI (nvmen1p1?)?
Last edited by aggressive-support35 (2021-05-24 09:15:43)
Offline
Mount all partitions you want involved somewhere, so your linux esp your windows esp and the root file system of your linux and have os-prober installed and regenerate your grub config. It doesn't matter where you mount it but you need to mount the ESP somewhere that os-prober can detect it needs to add another entry.
Last edited by V1del (2021-05-24 10:25:19)
Offline
ok thank you os-prober printed found windows whatever and it all worked
I can boot into windows
I also want to know, why does the picture I set not work?
in the /etc/default/grub file i specified the path to a picture and it just won't display it, for some reason it displays a yellow screen instead
Offline
https://wiki.archlinux.org/title/GRUB/T … tmap_fonts
GRUB_BACKGROUND="/home/additional_pumpkin/Downloads/grubification.jpg"
/home is probably not an available path.
In general, please don't create shopping list threads, but open one thread per topic/problem.
Edit: And also please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Last edited by seth (2021-05-25 11:51:10)
Offline
Pages: 1