Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4444

need help with chroot'ing a debian.ext3 file system

$
0
0
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

Viewing all articles
Browse latest Browse all 4444

Trending Articles