Skip to content

Instantly share code, notes, and snippets.

@McSinyx
Last active September 15, 2019 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McSinyx/993c038b29d4d394949bd3289260ecc9 to your computer and use it in GitHub Desktop.
Save McSinyx/993c038b29d4d394949bd3289260ecc9 to your computer and use it in GitHub Desktop.
Change root
mount /dev/nvme0n1p3 /mnt
mount /dev/nvme0n1p4 /mnt/home
mount /dev/nvme0n1p1 /mnt/boot/efi
mount --types proc /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --make-rslave /mnt/sys
mount --rbind /dev /mnt/dev
mount --make-rslave /mnt/dev
chroot /mnt /bin/bash
umount -l /mnt/dev{/shm,/pts,}
umount -R /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment