How-to properly Chrooting into an Ubuntu 16.04 Xenial LTS Linux System

June 1st, 2016 by thelinuxevangelist

Linux Ubuntu 16.04 Xenial Chrooting




The Linux Tutorial Shows in Easy Steps How-to Chrooting with Networking into an Ubuntu 16.04 Xenial Xerus LTS i386/amd64 GNU/Linux System.

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

How-to properly Chrooting into an Ubuntu 16.04 Xenial LTS Linux System - Featured
  1. Login as SuperUser

    sudo su
  2. 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. Bind the Devices directory

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

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

    mount --bind /sys /mnt/sys
  9. 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. Chrooting into the New Target

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

    Troubleshooting Ubuntu Broken System
(Visited 325 times, 3 visits today)
Share on Tumblr

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


Comments are disabled