Chroot Deepin Gnu/Linux – Step-by-step

March 14, 2020 | By the+gnu+linux+evangelist.

Binding

  1. 3. Mounting Proc

    Bind Process Information Pseudo-filesystem
    With:

    mount --bind /proc /mnt/newroot/proc

    Binding consists in Cloning the actual Directories Tree in a Different Point.

  2. 4. Binding Devices

    Then start Binding the Devices directory
    With:

    mount --bind /dev /mnt/newroot/dev
  3. 5. Mounting Pseudoterminal

    Now to Mount the Pseudoterminal Slave
    Play:

    mount -t devpts none /mnt/newroot/dev/pts
  4. 6. Binding Sysfs

    And after Bind sysfs Virtual File System
    With:

    mount --bind /sys /mnt/newroot/sys
  5. 7. Binding Temporary

    So Bind the Temporary for the New Root
    Playing:

    mount --bind /tmp /mnt/newroot/tmp

Contents


QuickChic Theme • Powered by WordPress