#Grub has ended itself (again)

69 messages · Page 1 of 1 (latest)

north path
#

So basically I'm running an arch install, and I tried to configure grub and fucked it up. Everything else besides grub is fine I believe, and I do have an arch Linux live USB on hand. I'm wondering how to fix this issue I've dug myself into

void ruin
#

I think chrooting into your install and installing grub will fix your issue

#

As long as it's just grub that's nuked

north path
#

I've tried that to no success

void ruin
#

What commands did you run?

north path
#

So I mounted the NVMe directories with
mount /dev/nvme0n1p2 /mnt
mount /dev/nvme0n1p1 /mnt/boot

#

arch-chroot /mnt

#

Then I tried to install grub but failed miserably

#

The issue is that I'm not too sure what I'm doing with the grub-install command

void ruin
#

You run grub-install...
and then grub-mkconfig -o /boot/grub/grub.cfg

#

In the install command you need to plug the arguements you used when you were installing

north path
#

Cannot find efi directory

void ruin
#

Okay if you run grep grub /root/.bash_history what is the output?

#

Hopefully we can find there the arguments you used the first time you were installing

north path
#

Oh yeah I was using
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub

void ruin
#

Have you tried running that?

north path
#

Ye

void ruin
#

Was there an error?

north path
#

I'll try again ig because sometimes I have a curse where it doesn't work until I get help then it magically works

void ruin
#

Let me know how that goes

north path
#

Installation finished no error reported

void ruin
#

That looks hopeful

north path
#

But the other issue is that it doesn't show the kernels in grub when it actually does install correctly

void ruin
#

Does the install show up?

north path
#

?

north path
#

Let's see

void ruin
#

That's weird

#

It should detect other kernels automatically

#

Also check this page as well

#

I run only rolling so I can't really help you there, sorry

north path
#

I've noticed the /etc/default/grub file is missing

void ruin
#

Maybe try grabbing it from the iso

#

Or reinstalling the grub package

#

You're chrooted right?

north path
#

Reinstalling grub fails lol

#

Yeah I am

void ruin
#

What's the error?

north path
#

Wait wtf

#

It kicked me out of the chroot?

void ruin
#

Yeah that's what I was gonna say

north path
#

Wait no wtf

void ruin
#

Wait no

north path
#

No it's still there lol

void ruin
#

Its not red you're chrooted

north path
#

Yeah that's good then

#

I wonder wtf is going on with this

#

I wanted a custom kernel and I've done it multiple times before when I was on EndeavourOS and once on mint

#

But of course the time I go full arch it decides 'nah'

#

Which is annoying because the tkg kernel is literally working on my laptop downstairs on EndeavourOS rn

#

But I can't play games at a full 1080p60 unlike my desktop pc

void ruin
#

Idk never tried it

#

That's as far as I can help, sorry

#

Is grub at least still installed?

north path
#

Yeah it is

#

Just very inconvenient

#

I might just backup my files and give it another go

void ruin
#

And is the file still missing?

north path
#

Yeah sadly

void ruin
#

Eh if you nuke try grabbing the file from the iso

#

As a last resort

north path
#

Meh I've got a hard drive I can backup a few things to and reinstall

#

It's only like 3 days of install

void ruin
#

Well at least it's not 3+ months of tinkering

vast ridge
#

what file is missing?

#

if it's related to the kernel just reinstall the kernel, and then redo mkconfig

ashen summit
#

If you find yourself done with GRUB may I suggest using rEFInd instead