Skip to content

Instantly share code, notes, and snippets.

@coenraadhuman
Created September 16, 2019 10:52
Show Gist options
  • Save coenraadhuman/cac337ca7bdd725737b3cc02ac2ef6ce to your computer and use it in GitHub Desktop.
Save coenraadhuman/cac337ca7bdd725737b3cc02ac2ef6ce to your computer and use it in GitHub Desktop.
Chroot recover with Manjaro
  • Become root.
[user@hostname ~]$ sudo -s

Or

[user@hostname ~]$ su
  • Make a directory in /mnt/.
[root@hostname ~]# mkdir /mnt/Manjaro/
  • Change directory.
[root@hostname ~]# cd /mnt/Manjaro
  • Get Manjaro install device directory.
[root@hostname /mnt/Manjaro]# os-prober
  • Mount the partition to /mnt/Manjaro.
[root@hostname /mnt/Manjaro]# mount /dev/sdXY /mnt/Manjaro
  • Mount processes (proc), the partitions (dev), and the file system (sys).
[root@hostname /mnt/Manjaro]# mount -t proc proc proc/
[root@hostname /mnt/Manjaro]# mount --rbind /sys sys/
[root@hostname /mnt/Manjaro]# mount --rbind /dev dev/ 
  • Chroot into the directory.
[root@hostname /mnt/Manjaro]# chroot /mnt/Manjaro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment