Hi, I am using opensuse leap. I have grub 2 installed in /dev/sda and it keeps getting wiped every 2 days (sometimes every day). This has happened for a month now. Gnome-shell restarts itself usually every day (could it be related?) and sometimes my computer would freeze dhe tell me that it can not unmound /home. HDD is fine because i use windows without any problem. Grub is wiped when using linux (windows doesn’t play any part because i don’t open it). The process happens like this:
I shutdown my computer.
I open laptop.
It sends me to BIOS and there is no boot record at all.
I click save and reboot
It reboots in windows (it was not listed in step 4)
When i use a USB tool to list grub entries, it shows opensuse and i can boot using the USB tool (it doesn’t write anything to HDD).
I turned my laptop on today and the grub was gone. It sent me to BIOS settings. When i clicked save and reboot, it booted me to windows (even that windows was not listed first before rebooting). I didn’t open windows before.
I managed to boot to grub via one iso software that listed grub files. here is what sudo efibootmgr returns:
From what it looks like here, it doesn’t. /dev/sda7 gets mounted on /boot/efi
But what’s interesting is the fact that two partitions have the boot flag on
Hi
You can’t unless you want to break your system…
sda3 (it’s also too big for efi booting partition size needs to be less than 512MB from memory) look like some legacy boot partition, previous install as an MBR boot and not deleted?
Mount /dev/sda3 and inspect to see what’s there, maybe you flipped the type to ef00 at some point?
Is there a BIOS update available for your system from ASUS to help loosing your efi nvram entry?
Else if it keeps going missing there are some tweaks(hacks) that can probably be implemented, but in general of the few ASUS systems I’ve had booting via UEFI they have behaved.
I deleted sda7 and formated sd3 to use vfat and /boot/efi. Now i am trying to install grub there via sudo grub2-install /dev/sda3 and it says “Installing for x86_64-efi platform.
grub2-install: error: cannot find EFI directory.” Any help?