How-to Properly Chroot Linux Mint 18.x

May 16th, 2017 by thelinuxevangelist

Chroot Linux Mint 18.x




Hello Mint User! This Linux Tutorial Shows in Easy Steps How-to Chroot Linux Mint 18.x LTS System with a Network Enabled.

Hence Chrooting consist in changing the root directory on a different partition from the Boot System.

And Chroot is also defined as the operation that changes the apparent root directory for the current running process and their children.

As a Result you’ll be Able to Operate on the New Root Device pretty like a regularly Started System with Networking.

Chroot Linux Mint 18.x - Featured
  1. First of all Login as SuperUser

    sudo su
  2. Then Find the Target /dev/sdXN Drive
    Look into the List of the Mounted devices with:

    df -h

    If You can Not to Find it then Try visually with GParted:

    gparted
  3. Eventually Unmount it with

    umount /dev/sdXN
  4. Mount the New Root Target Device

    mount /dev/sdXN /mnt
  5. Bind process information pseudo-filesystem

    mount --bind /proc /mnt/proc
  6. Then start Binding the Devices directory

    mount --bind /dev /mnt/dev
  7. Hence Mount the Pseudoterminal Slave

    mount -t devpts none /mnt/dev/pts
  8. And after Bind sysfs Virtual File System

    mount --bind /sys /mnt/sys
  9. So Bind the Temporary for the New Root

    mount --bind /tmp /mnt/tmp
  10. Copy the resolv.conf File

    cp /etc/resolv.conf /mnt/etc/resolv.conf
  11. Finally Chroot into the New Target

    chroot /mnt /bin/bash
  12. How-to Fix/Repair/Recover an Mint Linux System

    Troubleshooting Mint Broken System

Tags: , , , , , , , , , , , , , , ,