View Single Post
Old 02-10-2016, 04:15 AM   #1
don17sch
Junior Member
don17sch began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2014
Device: kindle paperwhite 1st gen
need help with chroot'ing a debian.ext3 file system

every time i try to enter these commands
#!/bin/sh
echo "[*] Mounting Rootfs..."
mount -o loop,noatime -t ext3 /mnt/us/debian.ext3 /mnt/debian
echo "[*] Preparing Filesystem..."
mount -o bind /dev /mnt/debian/dev
mount -o bind /proc /mnt/debian/proc
mount -o bind /sys /mnt/debian/sys
echo "[*] Preparing Network Connections..."
cp /etc/hosts /mnt/debian/etc/hosts
cp /etc/resolv.conf /mnt/debian/etc/resolv.conf
echo "[*] Starting Shell..."
chroot /mnt/debian /bin/bash
echo "[*]Unmounting Rootfs..."
umount /mnt/debian/dev
umount /mnt/debian/proc
umount /mnt/debian/sys
umount /mnt/debian

it says that mnt/debian does not exist and crashes everything after it. please help. i have tried on both kterm and over ssh.
I am using a kindle paperwhite 2 5.6.5
don17sch is offline   Reply With Quote