#chroot to fix grub
142 messages · Page 1 of 1 (latest)
Uh, what's the issue?
im unsure on how to mount and then chroot into my arch installation
let me a ttach my lsblk
Just sudo mount /dev/nvme0n1p2 /mnt?
Yup that's how you do it
You mount your partitions to the appropriate places and then arch-chroot /mnt
like this?
Did you install arch on that partition?
Yes
Oh you use btrfs
hmm
I think you have to do arch-chroot /mnt/@ instead
Idk I am not good at btrfs I always use ext4
You can look up how to mount btrfs subvolumes online
Thanks
You'll want to unmount the partition as mount the subvolume with mount /dev/nvme0n1p2 -o subvol=@ /mnt
You're not in chroot

The command is right to right?
What?
Autocorrect fucked me lol, this command is right, right?
👍
Ohh they're not mounted anymore I believe
No nvm
Or
Is it
I'm not sure..
I think it's an issue with chrooting into subvolume like that
Exit out of chroot do this
Did you mount nvme0n1p1 before chroot?
You usually mount it to either /boot or /boot/efi
If /boot is empty mount it there. If /boot/efi (efi in lowercase) exists then mount it there instead
Mine is mounted at /boot pretty sure
Exit chroot and type lsblk
It'll say if it's mounted or not
And you need to make sure you mount it inside the /mnt/boot folder not /boot
/boot outside of chroot is the iso's boot directory
Doesn't matter make sure it's mounted only once outside of it
Oki
Ok
Still doesn't work
It could be swap
If it is then you haven't made an EFI partition
If you just installed arch you should probably reinstall and make it properly
Unless you are not using a UEFI system?
Idk I used arch install
Yeah that makes sense. It's really buggy
I mean arch worked then grub broke
Type cat /sys/firmware/efi/fw_platform_size
64
Yeah it's not swap
Ok gud
Oh wait I may have found the issue
Huh
When typing the grub install command
You used =boot/
I think you need to use =/boot/
I tried both
No. You can either mount on /boot or /boot/efi. You have it mounted on /boot and that should work
Should I remove the other /boot?
The boot in boot
Ok
Unmount the boot partition completely (Make sure it doesn't show it as mounted anywhere in lsblk)
Then type mkfs.fat -F 32 /dev/nvme0n1p1
This will completely format your boot partition so you can do a clean grub install
It shouldn't as long as you format the correct drive
Which if I remember correctly is p1 which is just 1gb long
I thought that was outdated
Nah
If it doesn't let you, you just need to run mkdir /mnt/boot/efi
The boot folder will still exist, if will just be empty
You will also need to edit /etc/fstab
All you need to do is just change /boot to /boot/efi though
You'll also need to reinstall the Linux package which contains the kernel
Ok
How
Also is grub installed now or do I still have to do that?
Both mounted
Now what
Edit fstab if you haven't already
And install grub to /boot/efi
Make sure to add the slash at the beginning
Also do this inside chroot
Wait
You mounted your boot partition in the iso's boot directory
Unmount it and mount it to /mnt/boot/efi
Then chroot
Huh
I hate canonical

At this point fuck it I should've just reinstalled
Canonical doesn't make arch 😭
No space after =