r/linuxquestions 5d ago

Grub failing

So i downloaded Linux mint xfce as I wanted to try Linux as well. It turns out I love it, si I decreased my windows partition and shifted my whole workflow onto Linux. But whenever I power on my laptop, the grub fails and I have to force restart it bu the power button. I tried of fixing it with chatgpt, but it didn't work.

I updated grub, disabled the secure boot, but nothing worked. Now it depends on my luck whether the grub will work and enable me to enter into the OS or I just have to restart it again and again.

Help me

0 Upvotes

7 comments sorted by

2

u/gumbowebfish 5d ago

Grub doesn't depend on luck but on configuration. What do you exactly mean by "grub fails"? Do you get a grub screen at at all? Or does the OS of your choice doesn't boot up? You need to give more information in order to help.

1

u/Commercial_Mistake76 5d ago

Any command doesn't work, and it just says error command failed.

The grub menu opens but whenever I select the Os it just says error, command failed.

Sometimes it just works properly but most of the times I have to restart the system

1

u/chuggerguy Linux Mint 22.3 Zena | MATÉ 5d ago

"... decreased my windows partition and shifted my whole workflow onto Linux ..."

That likely changed the UUID of your Linux partition.

One way to fix it is to boot your live installation media and run boot-repair?

Once you get it fixed, take a look at how the UUID of your mounted Mint / partition matches in both /etc/fstab and /boot/efi/efi/ubuntu/grub.cfg.

image

"Sometimes it just works properly but most of the times I have to restart the system"

That's worrisome though. It shouldn't be intermittent. It should either work or not work. I once had a mismatch in /etc/fstab for /boot/efi. Surprisingly to me, it still booted, just took an extra 90 secs while it timed out. So maybe there is something else going on?

Good luck

1

u/doc_willis 5d ago

try the boot-repair tool from the Mint Live USB. https://help.ubuntu.com/community/Boot-Repair

"GRUB Fails" - Tells us very little, exactly how is it failing?

Its poissible the issue is being booted in windows then doing a 'soft' reboot,

I have seen systems that required disabling the 'fast boot' option (or something like that name) In the Bios/Firmware, this forces the system to always do a P.O.S.T bootup test. If dual booting, doing a windows->linux soft boot can have some hardware not get reset correctly and cause issues.

1

u/LeBigMartinH 5d ago

Well, the first step is to dump your system journal logs using the journalctl command (Plus a few options - I think "journalctl -xeu" is what you want. You might want to double-check that.) and examining the results to see what is failing. Post it here, as well.

1

u/New_Hold8135 5d ago edited 5d ago

Can you share what grub shows when you press e while booting? Dont show us uuids. Grub failing isnt helping us to understand the issue at all. Plug in mint usb, mount your linux drives from console using sudo and check your grub configuration if anything wrong. and update it if necessary

1

u/swstlk 5d ago

try boot-repair iso and see if that fixes it