#[solved]help me install grub pls

162 messages · Page 1 of 1 (latest)

abstract coyote
#

I have read a few articles but I cant get it. I dont know what partition to mount to, and what folders to create

#

@north fossil I dont know what to do

north fossil
#

a

#

does your computer uefi

abstract coyote
#

yes

#

it is uefi

#

cause /sys/firmware/efi is a directory

north fossil
#

ok

#

do you have an efi partition

abstract coyote
#

the boot partition right?

#

yes

#

its nvme0n1p1

north fossil
#

is the root partition mounted on /mnt

abstract coyote
#

can I check it?

#

I think I did mount thr root partition on /mnt

abstract coyote
north fossil
#

yes

abstract coyote
#

I think its nvme0n1p3 for me

#

p2 is swap

north fossil
#

so is it?

abstract coyote
#

yeah its /mnt

north fossil
#

do you have arch installed and you only need to install the bootloader

abstract coyote
#

I think I have everything set up. I had installed arch earlier but didnt install the boot loader, so I started a fresh install where I only have the linux firmware, linux and network manager

north fossil
#

ok

#

did you get the base package

abstract coyote
#

of grub, yes

north fossil
#

no like

#

the base package

abstract coyote
#

yes I did install the base package

#

the literal base package

north fossil
#

ok

#

did you get also efibootmgr

abstract coyote
#

yeah I installed it inside chroot

north fossil
#

ok

abstract coyote
#

with grub

north fossil
#

are you in chroot rn

abstract coyote
#

no I exited out, cause Network manager is in chroot but I cant start it inside chroot cause it says permission denied something

north fossil
#

so youre not inside chroot

abstract coyote
#

yep

north fossil
#

did you mount the boot partition before?

abstract coyote
#

whats the command for it?

#

i tried to mount it, it said cant find in etc fstab

north fossil
#

did you run mount --mkdir /dev/nvme0n1p1 /mnt/boot before

abstract coyote
#

okay

north fossil
#

did you?

abstract coyote
north fossil
#

what name

abstract coyote
#

uh

#

just a second

#

you shouldn't do that

#

bad idea

#

mkdir /boot/efi

mount /dev/sdb2 /boot/efi

#

huh

north fossil
#

what

abstract coyote
#

this

#

wait

north fossil
#

you said /dev/nvme0n1p1 is your efi partition

abstract coyote
#

sdb2 is for regular disks

#

but I changed the partition for me

north fossil
#

why /dev/sdb2?

abstract coyote
#

cause the text is from an article

#

what article

#

mkdir /boot/efi

mount /dev/nvme0n1p1 /boot/efi

#

this is what I did

north fossil
#

ok did you run it outside of chroot

abstract coyote
#

aww fuck, I might've done this:

mount /dev/nvme0n1p1 /mnt/mydrive and this is outsidr chroot

#

is there a way to check what is in nvme0n1p1?

north fossil
#

ok just do umount /dev/nvme0n1p1

abstract coyote
#

okay

north fossil
#

did it do something

abstract coyote
#

it

#

nothing

north fossil
#

ok

#

now do

abstract coyote
#

i think the command got executed

north fossil
#

mount --mkdir /dev/nvme0n1p1 /mnt/boot/efi

abstract coyote
#

done

#

i am still not in chroot

north fossil
#

arch-chroot /mnt

abstract coyote
#

okay

#

everything seems fine

north fossil
#

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

abstract coyote
#

no errors

north fossil
#

ok now

#

give me a second

abstract coyote
#

okay

north fossil
#

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

abstract coyote
#

done

north fossil
#

reboot

abstract coyote
#

it basically just has networkmanager

north fossil
#

wait

#

did you run systemctl enable NetworkManager

abstract coyote
#

and outside it cant find Networkmanager.service

#

oh

#

it worked

#

nvm

#

yes

abstract coyote
north fossil
#

ok

#

try rebooting to see if it works

abstract coyote
#

nvm got it

#

got it

north fossil
#

nice

abstract coyote
#

alright reboot timr

north fossil
#

ok

abstract coyote
#

lets go

#

grub works

#

bruh

#

i didnt setup an arch login

#

its asking me for login

#

what

north fossil
#

try root

abstract coyote
#

doesnt work

north fossil
#

why not

abstract coyote
#

i need to reinstall

north fossil
#

what

abstract coyote
#

there is no other way around it

#

i looked up some articles

#

there is no default password

#

smh

north fossil
#

you can just add a user in arch-chroot

abstract coyote
north fossil
#

boot into the usb

#

mount the root at /mnt

#

and chroot

abstract coyote
#

okay , that might work

#

i am using ventoy, so just enter the iso like normal installation first?

north fossil
#

yes

abstract coyote
#

okay

#

mount /dev/nvme0n1p1 /mnt

north fossil
#

yes

#

wait no

abstract coyote
#

okay

north fossil
#

thats your efi partition

abstract coyote
#

oh yes

#

p3

north fossil
#

did you p3?

abstract coyote
#

yes

north fossil
#

ok

#

arch-chroot /mnt

abstract coyote
#

okay i am in

north fossil
#

first set the root password with passwd

abstract coyote
#

okay it has been set to passwd

#

now just reboot?

north fossil
#

what

abstract coyote
#

passwd is passwd

north fossil
#

did you set the root password to passwd

abstract coyote
#

yeah

north fossil
#

do you want to add another user

abstract coyote
#

just for the memes, ill change it

#

later, I just want to get into partitions and work from there. My pendrive sucks

north fossil
#

what

#

its one command to add another user

abstract coyote
#

alright its working

#

oh

#

ill figure it out, thank you smmm!

north fossil
#

ok

#

bye