Advertisement
jbidinger

Chroot to mounted drive

May 14th, 2021
840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. To chroot to a mounted drive
  2.  
  3. # lsblk
  4. # mount /dev/xvdf /mnt -o nouuid
  5. # cd
  6. # for i in dev proc sys run; do mount -o bind /$i /mnt/$i; done
  7. # chroot /mnt
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement