Skip to content

Instantly share code, notes, and snippets.

@Munsio
Last active January 27, 2021 17:07
Show Gist options
  • Save Munsio/bc70a09708a2db5dd6c926f9e058abd5 to your computer and use it in GitHub Desktop.
Save Munsio/bc70a09708a2db5dd6c926f9e058abd5 to your computer and use it in GitHub Desktop.
Manjaro chroot - grub update

Manjaro + btrfs + luks crypto - Chroot

Boot livedisk!

encrypt luks partition

sudo su # switch to root

cryptsetup luksOpen /dev/nvme0n1p2 crypto # mount luks partition to mapper/crypto
mount /dev/mapper/crypto /mnt/ # mount crypto to /mnt

mount folders - notice the @ for btrfs drives

mount -t proc proc /mnt/\@/proc/
mount -t sysfs sys /mnt/\@/sys/
mount -o bind /dev /mnt/\@/dev/
mount -t devpts pts /mnt/\@/dev/pts/

chroot

manjaro-chroot /mnt/\@/ /bin/bash

mount efi boot to correct partition

mount /dev/nvme0n1p1 /boot/efi

reinstall grub efi and update it

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment