jbidinger

Chroot to mounted drive

May 14th, 2021
772
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data