I haven’t ever successfully chrooted into my system. I have reinstalled a few times when I could have potentially fixed the issues through chroot. I was wondering if someone could help me figure out why.
First I boot with the manjaro live usb
I initially attempt manjaro-chroot -a which gives me no linux partitions found
Then the steps that I take are:
sudo mkdir -p /mnt/boot/efi
sudo mount /dev/“root partition” /mnt
sudo mount /dev/“efi partition” /mnt/boot/efi or /mnt/boot
chroot /mnt
After mounting the EFI and Linux System partitions:
The chroot fails, not bootable os is found (im paraphrasing)
manjaro-chroot -a still doesn’t work
My installation has 3 partitions
Linux filesystem
EFI System
Linux Swap
I also have 2 extra internal hard drives, and 2 external drives. None of them have OS installations. Maybe its something to do with the fstab?
Id really like to chroot successfully, I am always tinkering around and breaking things. I take notes so that I can go back reverse my changes but I can’t ever get back in.
The link already supplied by @koshikas gives detailed information on how to proceed, but it may be worth pointing out what looks like a misconception:
When you use mount, anything already in the directory becomes invisible, and so the first step here makes no sense. To quote from the man page for mount:
The previous contents (if any) and owner and mode of dir become invisible, and as long as this filesystem remains mounted, the pathname dir refers to the root of the filesystem on device .
So, after you step 2, there will be a directory called /mnt/boot/efionly if /dev/“root partition” contains a directory called /boot/efi.