Last active
March 19, 2023 12:39
-
-
Save atomofiron/81fe4b0e02037eba5278c498a8d29e70 to your computer and use it in GitHub Desktop.
Recovery Manjaro on luks partitions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo su | |
# pamac install manjaro-tools-base | |
# lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME | |
PATH PTTYPE PARTTYPE FSTYPE PARTTYPENAME | |
/dev/nvme0n1 gpt | |
/dev/nvme0n1p1 gpt e3c9e316-0b5c-4db8-817d-f92df00215ae Microsoft reserved | |
/dev/nvme0n1p2 gpt ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 ntfs Microsoft basic data | |
/dev/nvme0n1p3 gpt c12a7328-f81f-11d2-ba4b-00a0c93ec93b vfat EFI System | |
/dev/nvme0n1p4 gpt 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f swap Linux swap | |
/dev/nvme0n1p5 gpt 0fc63daf-8483-4772-8e79-3d69d8477de4 crypto_LUKS Linux filesystem | |
# cryptsetup luksOpen /dev/nvme0n1p5 luks_root | |
Enter passphrase for /dev/nvme0n1p5: | |
# vgchange -ay | |
# lvscan | |
# mount /dev/mapper/luks_root /mnt | |
# mkdir -p /mnt/boot/efi | |
# mount /dev/nvme0n1p3 /mnt/boot/efi | |
# manjaro-chroot /mnt /bin/bash | |
# mount -t efivarfs efivarfs /sys/firmware/efi/efivars | |
mount: /sys/firmware/efi/efivars: efivarfs already mounted on /sys/firmware/efi/efivars. | |
dmesg(1) may have more information after failed mount system call. | |
# grub-install /dev/nvme0n1p5 | |
Installing for x86_64-efi platform. | |
Installation finished. No error reported. | |
# update-grub | |
Generating grub configuration file ... | |
Found theme: /usr/share/grub/themes/manjaro/theme.txt | |
Found linux image: /boot/vmlinuz-5.15-x86_64 | |
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img | |
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img | |
Warning: os-prober will be executed to detect other bootable partitions. | |
Its output will be used to detect bootable binaries on them and create new boot entries. | |
ERROR: mkdir /var/lock/dmraid | |
Adding boot menu entry for UEFI Firmware Settings ... | |
Root filesystem isn't btrfs | |
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs" | |
Found memtest86+ image: /boot/memtest86+/memtest.bin | |
done | |
# ls /sys/firmware/efi | |
config_table efivars esrt fw_platform_size fw_vendor runtime runtime-map systab | |
# exit | |
# vgchange -an | |
# umount /dev/nvme0n1p3 | |
# umount /dev/mapper/luks_root | |
# cryptsetup luksClose luks_root | |
# exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment