this post was submitted on 27 Jul 2024
24 points (100.0% liked)
Linux 101 stuff. Questions are encouraged, noobs are welcome!
1060 readers
2 users here now
Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I cannot take credit for finding the solution. Someone on a discord chat I found was able to help me. The fix:
1 Open a terminal:
Unlock the LUKS partition:
cryptsetup luksOpen /dev/nvme0n1p2 arch
2 Mount the BTRFS filesystem: Since BTRFS has subvolumes, you need to mount the correct subvolume:
mount -o subvol=@ /dev/mapper/arch /mnt
3 Mount the necessary virtual filesystems:
4 Bind the boot partition (if separate): If you have a separate boot partition, you need to mount it too:
mount /dev/nvme0n1p1 /mnt/boot
5 Chroot into your system:
arch-chroot /mnt
6 Fix your fstab: Ensure that your /etc/fstab file inside the chroot environment is correctly set up. You might need to generate a new one using genfstab:
genfstab -U /mnt >> /mnt/etc/fstab
7 Update GRUB: Reinstall and update GRUB to ensure it is correctly installed:
Exit the chroot environment:
exit
Unmount all the filesystems:
bash
8 Reboot:
Hell yeah dude. Props for the solution! We need more things like this for search engines to index so that less people rely on centralized places like Reddit.
I am fully with you!
Thank you! Wish I was the one who figured it out. I am just sharing what was taught to me!
That is exactly the reason I joined Lemmy, to ditch centralization.
Thanks for sharing the solution!
I will always try to share the solutions, even if I find them elsewhere. Changes are it could help someone else out!