View Single Post
Old 02-10-2016, 06:58 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by don17sch View Post
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

after the above, you have changed the root
The whole point of chroot is that you can't reach
outside of it.
Perhaps your thinking of switch_root or pivot_root.

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
PEBKAC
knc1 is offline   Reply With Quote