#Sorry my English is bad
My system GPT and UFEI
and dual boot windows and manjaro
My grub is broken
Live usb manjaro
Mount encrypt “sday” (installed partion manjaro) with file manager
Now my encryption mount on the path ( run/media/manjaro~
Monut sda1 (boot) on the path (/run/media/manjaro~/boot/efi)
manjaro-chroot /run/media/manjaro~/
grub-install --target=x86_64-efi --efi-directory=/boot/efi/ --bootloader-id=manjaro --recheck
no error success install
grub-mkconfig -o /boot/grub/grub.cfg
Erro not found sdb2…
Not add windows and manjaro
Please help
How to fix?
for win 10 , os-probe is desactived by default , if you need
`echo GRUB_DISABLE_OS_PROBER=false|sudo tee -a /etc/default/grub && sudo update-grub`
for chroot an encrypted uefi system
sudo su
cryptsetup luksOpen /dev/sda2 ssd ( here > name of the drive )
cryptsetup luksOpen /dev/sda3 swap
mount /dev/mapper/ssd /mnt
mount /dev/sda1 /mnt/boot/efi
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t devpts pts /mnt/dev/pts/
chroot /mnt
1 Like
I did the above commands
1.chroot /mnt
2.grub-install --target=x86_64-efi --efi-directory=/boot/efi/ --bootloader-id=manjaro --recheck
Show error " installing for x86_64-efi platform
EFI Variable are not supported on this system
EFI Variable are not supported on this system
grub-install: error: efibootmgr failed the boot entry; no such file or directory.
When you get this error
EFI Variable are not supported on this system
run
sudo modprobe efivarfs
Reference:
https://wiki.manjaro.org/index.php/GRUB/Restore_the_GRUB_Bootloader#EFI_System
1 Like
can you report
inxi -Fza
test -d /sys/firmware/efi && echo efi || echo bios
1 Like
1.exit
2.sudo modprobe efivarfs
3.chroot /mnt
4.efivar-tester
Show error
“EFI Variable are not supported on this system”
recheck info
inxi -Mxa ( check for UEFI only , not UEFI[legacy] or Bios )
test -d /sys/firmware/efi && echo efi || echo bios
in your UEFI motherboard
disable secure boot
disable fastboot
disks on AHCI
no legacy
no CSM
UEFI only or others ( not windows )
you should see
UEFI < USB vendor name > < partition 1 > → boot in EFI
1 Like
1.inxi -Fza
can’t sorry because I do not have internet access on my computer at the moment, I type with my mobile phone
2.test -d /sys/firmware/efi && echo efi || echo bios
“efi”
inxi -Mxa ( check for UEFI only , not UEFI[legacy] or Bios )
UEFI:hewlett-Packard
take your time , first recheck option in UEFI motherboard
then see after
https://www.youtube.com/results?search_query=hp+admin+uefi+motherboard
1 Like
I check BIOS
1.disable secure boot ( disabled)
2.disable fastboot (disabled)
3.disks on AHCI ( yes ticked)
4.no legacy ,no CSM (UEFI Native without CGM)
5.remove password bios
6.UEFI only or others ( I don’t understand)
Start live usb
I did all the steps again,
Show error again
“EFI Variable are not supported on this system”
you should see
UEFI < USB vendor name > < partition 1 > → boot in EFI
Where should I see?
I made a mistake deleting the entire boot partition
I had just copied it before
I paste
When boot laptop
After password grub partion just show
“UWFI Firemware settings”
Virtualization is enable bios
Manjjj:
My grub is broken
What are the symptoms?
How do you know that it is broken?
I ask because
just yesterday
after some updates
I rebooted my laptop.
I could not type the password for my encrypted drive.
It was as if there was no keyboard input possible.
It turned out to be a missing
keyboard
hook
in /etc/mkinitcpio.conf
I never had it in there - and it still worked flawlessly until yesterday.
After the last update I did - it no longer worked.
I chrooted,
added the
keyboard hook
re-generated the initrd
and all was good again.
If this is your symptom, this is the possible fix.
I know the drive password and I have no problem with it
By mistake I deleted the entire contents of the boot/efi partition I had copied and then just paste then broken grub
ok
it was a possible scenario.
It definitely caught me by surprise.
It always worked - but then it suddenly didn’t anymore.
… because of a missing “keyboard” hook that was never present before.
Friends, does anyone have a solution?
Will my Linux settings be compromised if I reinstall?
I add this command
1.mount -t efivarfs efivarfs /sys/firmware/efi/efivars
2. 1. grub-install --target=x86_64-efi --efi-directory=/boot/efi/ --bootloader-id=manjaro --recheck
3. Installation finish. No error reported
4.grub-mkconfig -o /boot/grub/grub.cfg
5.
Not add win10 and manjaro!!
what is the problem ?
Thank you for your help
for win 10 , os-probe is desactived by default , if you need
`echo GRUB_DISABLE_OS_PROBER=false|sudo tee -a /etc/default/grub && sudo update-grub`
check for efi
sudo efibootmgr -v
1 Like