Advertisement
image28

Chroot Linux Filesystem

Jan 1st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. # forgot reference here, probably stack-exchange
  2.  
  3. function chroot-usb()
  4. {
  5.     mount -t proc /proc $1/proc
  6.     mount -t sysfs /sys $1/sys
  7.     mount -o bind /dev $1/dev
  8.     mount -t devpts /dev/pts $1/dev/pts
  9.     chroot $1
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement