Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
chrootintoclonedmachine [2016/04/04 19:21]
yassine chaouche old revision restored (2016/04/04 19:21)
chrootintoclonedmachine [2016/05/24 15:52] (current)
yassine chaouche
Line 7: Line 7:
 mount --bind /proc /​target/​proc mount --bind /proc /​target/​proc
 mount --bind /dev /target/dev mount --bind /dev /target/dev
 +# This one is needed for ssh access
 +mount --bind /dev/pts /​target/​dev/​pts
 mount --bind /sys /target/sys mount --bind /sys /target/sys
 chroot /target chroot /target
 </​code>​ </​code>​
  
-Now most commands should work. Make sure though that files belong to the good owner.+Now most commands should work. Make sure though that files belong to the good owner. Use rsync --no-numeric-ids if necessary when cloning the machine.
  
 ---- ----

QR Code
QR Code chrootintoclonedmachine (generated for current page)