Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
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
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
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian chroot for Kobo ah- Kobo Developer's Corner 17 04-29-2018 05:41 PM
Troubleshooting DX: File system corrupt? hfrummer Amazon Kindle 2 01-19-2015 04:50 AM
PRS-T1 Partitioned (Fat32+ext3) SD not recognised Arche Sony Reader Dev Corner 7 01-12-2012 06:18 AM
Has anybody tried to mount an SD card with an ext3 filesystem? godel10 iRex 16 06-15-2009 10:06 AM
how to clean more disk space in root file system to upgrade system chinaet iRex 1 12-18-2006 03:54 PM


All times are GMT -4. The time now is 12:36 PM.


MobileRead.com is a privately owned, operated and funded community.