#Grub won’t install

1 messages · Page 1 of 1 (latest)

limber bane
#

Copied from the website

#

Like the handbook

limber bane
#

@lean pecan

lean pecan
#

here i am

#

the handbook has two specific parts
one for bios and one for UEFI

#

i reckon that you followed the part for BIOS

limber bane
#

I did everything else for uefi tho

lean pecan
#

so grub is configurated for BIOS, but youre using UEFI

#

ya, either you do it uefi or bios

#

not mixed

#

send me your make.conf or your package.use correlated to grub if you have one

limber bane
#

Uhh I do but my parents need me to do stuff

#

Can I check later and ping u?

lean pecan
#

ya sure

limber bane
#

How do I view the config files

lean pecan
#

go into your portage make.conf if ur stuff is there, or ur portage package.use

limber bane
#

Idk how to get there

lean pecan
#

u sure u know ur way around filesystems 😭?

#

just ls /etc/portage and see

limber bane
limber bane
#

@lean pecan

lean pecan
#

hey

#

whats up

limber bane
#

Do I just enter that command and show u what it is

lean pecan
#

ls /etc/portage and see what u got

#

if u have package.use files

#

go there and show me what u have

#

if u have everything monolithically in the make.conf then send me ur make.conf

limber bane
limber bane
lean pecan
#

hmm

#

go in ur make.conf

#

paste this

#

GRUB_PLATFORMS="efi-64 pc"

#

then rebuild grub

#

$ emerge --ask sys-boot/grub

#

then rebuild grub for efi

#

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

#

and create a config

#

grub-mkconfig -o /boot/grub/grub.cfg

limber bane
lean pecan
#

wait

#

you didnt install grub?

limber bane
#

Well like when I installed it gave that error

#

I merged it tho

lean pecan
#

show me the error

#

please

lean pecan
limber bane
#

It was the error I had in the first place with the .sh file

#

Up here

lean pecan
#

that error happens because you didnt specify the target

limber bane
lean pecan
#

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

limber bane
#

Wait so ion even need to do this

lean pecan
#

try runnign the command with the target

#

see what it tells yo

limber bane
#

Like at all

lean pecan
#

try doing the stuff i said above

lean pecan
lean pecan
limber bane
lean pecan
#

try setting the directory only to /boot

limber bane
#

Still

lean pecan
#

hmm..

#

run this

#

emerge -pv sys-boot/grub | grep GRUB_PLATFORMS

limber bane
#

It added it to the uefi

lean pecan
#

so, what does it tell u

#

ah

limber bane
#

So am I fine or?

lean pecan
#

hold on

#

lets play it dirty

#

this is the last thing i can try

#
mkdir -p /usr/lib/grub/x86_64-efi
ln -s /usr/lib/grub/i386-pc/modinfo.sh /usr/lib/grub/x86_64-efi/modinfo.sh
#

at this point

limber bane
#

wtf is this 🤯

#

That’s so confusing lol

lean pecan
#

were creating it ourselves

limber bane
#

Ahh

lean pecan
#

mkdir -p
mkdir = make directory
-p = --parent

#

ln -s = symbolic link

limber bane
#

Like commands

lean pecan
#

yup

#

there are two lines

#

wait

#

let me send them apart

limber bane
#

Please

lean pecan
#

mkdir -p /usr/lib/grub/x86_64-efi

#

ln -s /usr/lib/grub/i386-pc/modinfo.sh /usr/lib/grub/x86_64-efi/modinfo.sh

limber bane
lean pecan
#

kk

limber bane
#

Done

lean pecan
#

great

limber bane
#

No output so I’m assuming no errors

lean pecan
#

re execute grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

#

and then grub-mkconfig -o /boot/grub/grub.cfg

#

lets hope everything works out nw

#

now*

limber bane
#

Install device isn’t specified

#

Like wha?

lean pecan
#

send me the full error

#

it aint just telling u that fo sho

limber bane
lean pecan
#

sigh

#

grub-mkimage --output=/tmp/core.efi --format=x86_64-efi --directory=/usr/lib/grub/x86_64-efi --prefix="" dummy

lean pecan
#

im not sure

#

i just hope it will

limber bane
lean pecan
#

?

limber bane
#

So it like gave me another error

lean pecan
#

great

limber bane
lean pecan
#

can you show me your lsblk -f

limber bane
lean pecan
#

are you dualbooting

limber bane
#

Yes

lean pecan
#

wait where is your efi partition mounted

#

fuck

limber bane
#

Nvme0n1

lean pecan
#

no thats the whole disk

#

where did you mount ur efi part

limber bane
#

Ohhh nvme0n1p4

lean pecan
#

no thats the name

#

where di u mount ur nvme0n1p4

limber bane
#

Huh

#

Now I’m confused

#

Sorry I’m new to Linux

#

I literally just came off Linux mint

lean pecan
#

then why is your first attempt gentoo

limber bane
lean pecan
#
  1. i have no business in dual booting sorry
#
  1. gentoo is for experts
#

if youre new to linux, please, and i repeat, PLEASE, use something easier

#

gentoo as a third distro is probably the worst idea possible

#

not saying this because i dont want you to do gentoo

#

but because it is not a good idea to start off with the final boss

limber bane
#

Ok

#

So like any distro u could reccomend

lean pecan
#

what do you look for, in a distro?

limber bane
#

That’s minimal but not like rlly rlly hard

#

Minimal

lean pecan
#

hm

#

what do u mean by minimal

limber bane
#

Like runs kde customisable but doesn’t come with a lot of unnecessary stuff

lean pecan
#

every distro can run kde

#

well uhm

#

since i really respect your wish for distros as hard as gentoo

#

i reccomend trying out arch linux

#

and installing it via the archinstall script

#

or following the manual, tho for newer users like you, archinstall is really good

#

i could help you through it

limber bane
#

Yeah if u don’t mind im eating dinner with my family tho so can i add u

#

Wait is archinstall just type arch install and that’s all?

limber bane
lean pecan
#

you first connect to internet using the iwd ctl tool

#

then you just type archinstall

#

and it gives you a few settings in a TUI

limber bane
#

That’s hella simple

lean pecan
#

yuppp, its beginner friendly

#

i reccomend to then just stay on arch and learn only there, without distrohopping

#

so you learn something easily and consistently

limber bane
#

Unlike the around 12 hrs I spent to kinda get to gentoo

#

And then get errors

lean pecan
#

my first install took me 15 hours

#

lol

limber bane
#

Lmao

#

It speeds up massively tho

#

Like once u get to a point

lean pecan
#

the hardest part is waiting for emerge -avuDN @world to finish

limber bane
#

Yeah

#

I was tryna get to a compiling step at 2am so I could gts

#

And have it working but ima just get the arch iso after I eat

#

Can I add u?

lean pecan
#

ya