How-to properly Chrooting into an Ubuntu 16.04 Xenial LTS Linux System
June 1st, 2016 by thelinuxevangelistLinux 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.
-
Login as SuperUser
sudo su
-
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
-
Eventually Unmount it with
umount /dev/sdXN
-
Mount the New Root Target Device
mount /dev/sdXN /mnt
-
Bind process information pseudo-filesystem
mount --bind /proc /mnt/proc
-
Bind the Devices directory
mount --bind /dev /mnt/dev
-
Mount the Pseudoterminal Slave
mount -t devpts none /mnt/dev/pts
-
Bind sysfs Virtual File System
mount --bind /sys /mnt/sys
-
Bind the Temporary for the New Root
mount --bind /tmp /mnt/tmp
-
Copy the resolv.conf File
cp /etc/resolv.conf /mnt/etc/resolv.conf
-
Chrooting into the New Target
chroot /mnt /bin/bash
How-to Fix/Repair/Recover an Ubuntu Linux System
Tags: chroot, Guide, How-to, Linux, Linux Tutorial, Linux Ubuntu, Tutorial, Ubuntu, Ubuntu 16.04 Xenial Xerus LTS, ubuntu chroot, ubuntu chrooting, ubuntu linux, ubuntu tutorial



