[Android Software/Hacking General [Developers Only]] noahthedominator:
Here's what it says.

export PATH=/data/local/bin:$PATH

u0_a76@espresso10wifi:/ $ export PATH=/data/local/bin:$PATH

u0_a76@espresso10wifi:/ $ su root

root@espresso10wifi:/ # cd data/local/install-or-mount

mount -z -n linux.img -m /data/local/chroot-l/data/local <

usage: install-or-mount-0.2-1 options

Building debootstrap images on the device and mounting chroot images.

-h Show this help

Select, what you want to do.

-i Install

or

-z Mount Only

[Install and Mount Only]

[Required Options]

-n Image name

eg: ubuntu-12.04.img

-m Mount path

/data/local/linux is default

-l Image location

[Install]

[Required Options]

-o Distro - default: Precise

Supported: Ubuntu

[Optional Image Sizes]

[DEFAULT: 800M]

-0 800M - Min

-1 1G

-2 1.5G

-3 2G

-4 2.5G

-5 3G

-6 3.5G - Max

example mount: install-or-mount -z -n linux.img -m /data/local/temp -l /data/local

example install: install-or-mount -i -n linux.img -m /data/local/temp -l /data/local -o precise -0

unt -i -n linux.img -m /data/local/temp -l /data/local -o precise -0 <

tmp-mksh: install-or-mount: not found

127|root@espresso10wifi:/data/local/install-or-mount # -i

tmp-mksh: -i: not found

127|root@espresso10wifi:/data/local/install-or-mount # -o

tmp-mksh: -o: not found

ount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -0 <

tmp-mksh: install-or-mount: not found

r-mount -i -n linux.img -m /data/local/chroot-l/data/local -o precise -0 <

usage: install-or-mount-0.2-1 options

Building debootstrap images on the device and mounting chroot images.

-h Show this help

Select, what you want to do.

-i Install

or

-z Mount Only

[Install and Mount Only]

[Required Options]

-n Image name

eg: ubuntu-12.04.img

-m Mount path

/data/local/linux is default

-l Image location

[Install]

[Required Options]

-o Distro - default: Precise

Supported: Ubuntu

[Optional Image Sizes]

[DEFAULT: 800M]

-0 800M - Min

-1 1G

-2 1.5G

-3 2G

-4 2.5G

-5 3G

-6 3.5G - Max

example mount: install-or-mount -z -n linux.img -m /data/local/temp -l /data/local

example install: install-or-mount -i -n linux.img -m /data/local/temp -l /data/local -o precise -0

-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -0 <

Install options:

Distro: precise

image: linux.img size: 1600 img location: /data/local

Build enviroment initializing...

check ar xbin path

ar path non existent

make sure symlink isn't just missing

applet ar using built in busybox

check awk xbin path

check bzip2 xbin path

check cat xbin path

check chmod xbin path

check chown xbin path

check chroot xbin path

check cp xbin path

check cut xbin path

check dd xbin path

check grep xbin path

check gunzip xbin path

check head xbin path

check id xbin path

check mkdir xbin path

check mke2fs xbin path

check mkfs.ext2 xbin path

check mknod xbin path

check mount xbin path

check mv xbin path

check printf xbin path

check reset xbin path

check rm xbin path

check sed xbin path

check sh xbin path

check sha1sum xbin path

check sort xbin path

check sysctl xbin path

check tar xbin path

check touch xbin path

check tr xbin path

check umount xbin path

check uname xbin path

check uniq xbin path

check vi xbin path

check wc xbin path

check wget xbin path

check which xbin path

check zcat xbin path

setting up enviroment: [OK]

checking root: [OK]

Creating image: [OK]

Formating ext2

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

51296 inodes, 204800 blocks

10240 blocks (5%) reserved for the super user

First data block=0

Maximum filesystem blocks=4194304

7 block groups

32768 blocks per group, 32768 fragments per group

7328 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840

[OK]

checking mount point: [OK]

Mount location: /data/local/chroot

rootfs: [OK]

starting debootstrap

debootstrap --no-check-gpg --extractor=ar --arch=armhf --foreign precise /data/local/chroot

I: Retrieving Release

I: Retrieving Packages

I: Validating Packages

I: Resolving dependencies of required packages...

I: Resolving dependencies of base packages...

I: Checking component main on http://ports.ubuntu.com/ubuntu-ports...

I: Retrieving adduser

I: Validating adduser

I: Retrieving apt

I: Validating apt

I: Retrieving apt-utils

I: Validating apt-utils

I: Retrieving base-files

I: Validating base-files

I: Retrieving base-passwd

I: Validating base-passwd

I: Retrieving bash

I: Validating bash

I: Retrieving bsdutils

I: Validating bsdutils

I: Retrieving busybox-initramfs

I: Validating busybox-initramfs

I: Retrieving bzip2

I: Validating bzip2

I: Retrieving console-setup

I: Validating console-setup

I: Retrieving coreutils

I: Validating coreutils

I: Retrieving cpio

I: Validating cpio

I: Retrieving cron

I: Validating cron

I: Retrieving dash

I: Validating dash

I: Retrieving debconf

I: Validating debconf

I: Retrieving debconf-i18n

I: Validating debconf-i18n

I: Retrieving debianutils

I: Validating debianutils

I: Retrieving diffutils

I: Validating diffutils

I: Retrieving dmsetup

I: Validating dmsetup

I: Retrieving dpkg

I: Validating dpkg

I: Retrieving e2fslibs

I: Validating e2fslibs

I: Retrieving e2fsprogs

I: Validating e2fsprogs

I: Retrieving eject

I: Validating eject

I: Retrieving file

I: Validating file

I: Retrieving findutils

I: Validating findutils

I: Retrieving gcc-4.6-base

I: Validating gcc-4.6-base

I: Retrieving gnupg

I: Validating gnupg

I: Retrieving gpgv

I: Validating gpgv

I: Retrieving grep

I: Validating grep

I: Retrieving gzip

I: Validating gzip

I: Retrieving hostname

I: Validating hostname

I: Retrieving ifupdown

I: Validating ifupdown

I: Retrieving initramfs-tools

I: Validating initramfs-tools

I: Retrieving initramfs-tools-bin

I: Validating initramfs-tools-bin

I: Retrieving initscripts

I: Validating initscripts

I: Retrieving insserv

I: Validating insserv

I: Retrieving iproute

I: Validating iproute

I: Retrieving iputils-ping

I: Validating iputils-ping

I: Retrieving isc-dhcp-client

I: Validating isc-dhcp-client

I: Retrieving isc-dhcp-common

I: Validating isc-dhcp-common

I: Retrieving kbd

I: Validating kbd

I: Retrieving keyboard-configuration

I: Validating keyboard-configuration

I: Retrieving klibc-utils

I: Validating klibc-utils

I: Retrieving less

I: Validating less

I: Retrieving libacl1

I: Validating libacl1

I: Retrieving libapt-inst1.4

I: Validating libapt-inst1.4

I: Retrieving libapt-pkg4.12

I: Validating libapt-pkg4.12

I: Retrieving libattr1

I: Validating libattr1

I: Retrieving libblkid1

I: Validating libblkid1

I: Retrieving libbz2-1.0

I: Validating libbz2-1.0

I: Retrieving libc-bin

I: Validating libc-bin

I: Retrieving libc6

I: Validating libc6

I: Retrieving libcomerr2

I: Validating libcomerr2

I: Retrieving libdb5.1

I: Validating libdb5.1

I: Retrieving libdbus-1-3

I: Validating libdbus-1-3

I: Retrieving libdevmapper1.02.1

I: Validating libdevmapper1.02.1

I: Retrieving libdrm-intel1

I: Validating libdrm-intel1

I: Retrieving libdrm-nouveau1a

I: Validating libdrm-nouveau1a

I: Retrieving libdrm-radeon1

I: Validating libdrm-radeon1

I: Retrieving libdrm2

I: Validating libdrm2

I: Retrieving libelf1

I: Validating libelf1

I: Retrieving libexpat1

I: Validating libexpat1

I: Retrieving libffi6

I: Validating libffi6

I: Retrieving libfribidi0

I: Validating libfribidi0

I: Retrieving libgcc1

I: Validating libgcc1

I: Retrieving libglib2.0-0

I: Validating libglib2.0-0

I: Retrieving libklibc

I: Validating libklibc

I: Retrieving liblocale-gettext-perl

I: Validating liblocale-gettext-perl

I: Retrieving liblockfile-bin

I: Validating liblockfile-bin

I: Retrieving liblockfile1

I: Validating liblockfile1

I: Retrieving liblzma5

I: Validating liblzma5

I: Retrieving libmagic1

I: Validating libmagic1

I: Retrieving libmount1

I: Validating libmount1

I: Retrieving libncurses5

I: Validating libncurses5

I: Retrieving libncursesw5

I: Validating libncursesw5

I: Retrieving libnewt0.52

I: Validating libnewt0.52

I: Retrieving libnih-dbus1

I: Validating libnih-dbus1

I: Retrieving libnih1

I: Validating libnih1

I: Retrieving libpam-modules

I: Validating libpam-modules

I: Retrieving libpam-modules-bin

I: Validating libpam-modules-bin

I: Retrieving libpam-runtime

I: Validating libpam-runtime

I: Retrieving libpam0g

I: Validating libpam0g

I: Retrieving libpciaccess0

I: Validating libpciaccess0

I: Retrieving libpcre3

I: Validating libpcre3

I: Retrieving libplymouth2

I: Validating libplymouth2

I: Retrieving libpng12-0

I: Validating libpng12-0

I: Retrieving libpopt0

I: Validating libpopt0

I: Retrieving libreadline6

I: Validating libreadline6

I: Retrieving libselinux1

I: Validating libselinux1

I: Retrieving libslang2

I: Validating libslang2

I: Retrieving libsqlite3-0

I: Validating libsqlite3-0

I: Retrieving libss2

I: Validating libss2

I: Retrieving libssl1.0.0

I: Validating libssl1.0.0

I: Retrieving libstdc++6

I: Validating libstdc++6

I: Retrieving libtext-charwidth-perl

I: Validating libtext-charwidth-perl

I: Retrieving libtext-iconv-perl

I: Validating libtext-iconv-perl

I: Retrieving libtext-wrapi18n-perl

I: Validating libtext-wrapi18n-perl

I: Retrieving libtinfo5

I: Validating libtinfo5

I: Retrieving libudev0

I: Validating libudev0

I: Retrieving libusb-0.1-4

I: Validating libusb-0.1-4

I: Retrieving libuuid1

I: Validating libuuid1

I: Retrieving locales

I: Validating locales

I: Retrieving lockfile-progs

I: Validating lockfile-progs

I: Retrieving login

I: Validating login

I: Retrieving logrotate

I: Validating logrotate

I: Retrieving lsb-base

I: Validating lsb-base

I: Retrieving lsb-release

I: Validating lsb-release

I: Retrieving makedev

I: Validating makedev

I: Retrieving mawk

I: Validating mawk

I: Retrieving mime-support

I: Validating mime-support

I: Retrieving module-init-tools

I: Validating module-init-tools

I: Retrieving mount

I: Validating mount

I: Retrieving mountall

I: Validating mountall

I: Retrieving multiarch-support

I: Validating multiarch-support

I: Retrieving ncurses-base

I: Validating ncurses-base

I: Retrieving ncurses-bin

I: Validating ncurses-bin

I: Retrieving net-tools

I: Validating net-tools

I: Retrieving netbase

I: Validating netbase

I: Retrieving netcat-openbsd

I: Validating netcat-openbsd

I: Retrieving ntpdate

I: Validating ntpdate

I: Retrieving passwd

I: Validating passwd

I: Retrieving perl-base

I: Validating perl-base

I: Retrieving plymouth

I: Validating plymouth

I: Retrieving procps

I: Validating procps

I: Retrieving python

I: Validating python

I: Retrieving python-minimal

I: Validating python-minimal

I: Retrieving python2.7

I: Validating python2.7

I: Retrieving python2.7-minimal

I: Validating python2.7-minimal

I: Retrieving readline-common

I: Validating readline-common

I: Retrieving resolvconf

I: Validating resolvconf

I: Retrieving rsyslog

I: Validating rsyslog

I: Retrieving sed

I: Validating sed

I: Retrieving sensible-utils

I: Validating sensible-utils

I: Retrieving sudo

I: Validating sudo

I: Retrieving sysv-rc

I: Validating sysv-rc

I: Retrieving sysvinit-utils

I: Validating sysvinit-utils

I: Retrieving tar

I: Validating tar

I: Retrieving tzdata

I: Validating tzdata

I: Retrieving ubuntu-keyring

I: Validating ubuntu-keyring

I: Retrieving ubuntu-minimal

I: Validating ubuntu-minimal

I: Retrieving ucf

I: Validating ucf

I: Retrieving udev

I: Validating udev

I: Retrieving upstart

I: Validating upstart

I: Retrieving ureadahead

I: Validating ureadahead

I: Retrieving util-linux

I: Validating util-linux

I: Retrieving vim-common

I: Validating vim-common

I: Retrieving vim-tiny

I: Validating vim-tiny

I: Retrieving whiptail

I: Validating whiptail

I: Retrieving xkb-data

I: Validating xkb-data

I: Retrieving xz-utils

I: Validating xz-utils

I: Retrieving zlib1g

I: Validating zlib1g

I: Chosen extractor for .deb packages: ar

I: Extracting adduser...

I: Extracting base-files...

I: Extracting base-passwd...

I: Extracting bash...

I: Extracting bsdutils...

I: Extracting busybox-initramfs...

I: Extracting coreutils...

I: Extracting cpio...

I: Extracting dash...

I: Extracting debconf...

I: Extracting debianutils...

I: Extracting diffutils...

I: Extracting dpkg...

I: Extracting e2fslibs...

I: Extracting e2fsprogs...

I: Extracting findutils...

I: Extracting gcc-4.6-base...

I: Extracting grep...

I: Extracting gzip...

I: Extracting hostname...

I: Extracting ifupdown...

I: Extracting initramfs-tools...

I: Extracting initramfs-tools-bin...

I: Extracting initscripts...

I: Extracting insserv...

I: Extracting iproute...

I: Extracting klibc-utils...

I: Extracting libacl1...

I: Extracting libattr1...

I: Extracting libblkid1...

I: Extracting libbz2-1.0...

I: Extracting libc-bin...

I: Extracting libc6...

I: Extracting libcomerr2...

I: Extracting libdb5.1...

I: Extracting libdbus-1-3...

I: Extracting libdrm-intel1...

I: Extracting libdrm-nouveau1a...

I: Extracting libdrm-radeon1...

I: Extracting libdrm2...

I: Extracting libelf1...

I: Extracting libffi6...

I: Extracting libgcc1...

I: Extracting libglib2.0-0...

I: Extracting libklibc...

I: Extracting liblzma5...

I: Extracting libmount1...

I: Extracting libncurses5...

I: Extracting libncursesw5...

I: Extracting libnih-dbus1...

I: Extracting libnih1...

I: Extracting libpam-modules...

I: Extracting libpam-modules-bin...

I: Extracting libpam-runtime...

I: Extracting libpam0g...

I: Extracting libpciaccess0...

I: Extracting libpcre3...

I: Extracting libplymouth2...

I: Extracting libpng12-0...

I: Extracting libselinux1...

I: Extracting libslang2...

I: Extracting libss2...

I: Extracting libssl1.0.0...

I: Extracting libtinfo5...

I: Extracting libudev0...

I: Extracting libuuid1...

I: Extracting locales...

I: Extracting login...

I: Extracting lsb-base...

I: Extracting makedev...

I: Extracting mawk...

I: Extracting module-init-tools...

I: Extracting mount...

I: Extracting mountall...

I: Extracting multiarch-support...

I: Extracting ncurses-base...

I: Extracting ncurses-bin...

I: Extracting passwd...

I: Extracting perl-base...

I: Extracting plymouth...

I: Extracting procps...

I: Extracting python-minimal...

I: Extracting python2.7-minimal...

I: Extracting sed...

I: Extracting sensible-utils...

I: Extracting sysv-rc...

I: Extracting sysvinit-utils...

I: Extracting tar...

I: Extracting tzdata...

I: Extracting udev...

I: Extracting upstart...

I: Extracting util-linux...

I: Extracting xz-utils...

I: Extracting zlib1g...

[finished]

Setting up enviroment: [OK]

checking mount point: [OK]

Mount location: /data/local/chroot

/sys: [OK]

/proc: [OK]

/dev/pts: [OK]

/dev/shm: [OK]

debootstrap second stage

I: Installing core packages...

W: Failure trying to run: dpkg --force-depends --install /var/cache/apt/archives/base-files_6.5ubuntu6_armhf.deb /var/cache/apt/archives/base-passwd_3.5.24_armhf.deb

[fail]

Failure bailing out

-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -0 <

Install options:

Distro: precise

image: linux.img size: 1600 img location: /data/local

setting up enviroment: [OK]

checking root: [OK]

image:/data/local/linux.img exits, exiting

-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -0 <

Install options:

Distro: precise

image: linux.img size: 1600 img location: /data/local

setting up enviroment: [OK]

checking root: [OK]

image:/data/local/linux.img exits, exiting

1|root@espresso10wifi:/data/local/install-or-mount #

-mount -z -n linux.img -m /data/local/chroot -l /data/local <

Preparing chroot enviroment

Image name: linux.img

Mount Location: /data/local/chroot

Image Location: /data/local

Setting up enviroment: [OK]

checking root: [OK]

checking mount point: [OK]

Mount location: /data/local/chroot

rootfs: [OK]

/sys: [OK]

/proc: [OK]

/dev: [OK]

/dev/pts: [OK]

/dev/shm: [OK]

mount internal_sd: [fail]

>>CMD: [mkdir] ARGS: [/data/local/chroot/media/internal_sd ]

>>>ERROR: [mkdir: can't create directory '/data/local/chroot/media/internal_sd': No such file or directory]

-mount -z -n linux.img -m /data/local/chroot -l /data/local <

Preparing chroot enviroment

Image name: linux.img

Mount Location: /data/local/chroot

Image Location: /data/local

Setting up enviroment: [OK]

checking root: [OK]

checking mount point: [OK]

Mount location: /data/local/chroot

rootfs: [OK]

/sys: [OK]

/proc: [OK]

/dev: [OK]

/dev/pts: [OK]

/dev/shm: [OK]

mount internal_sd: [fail]

>>CMD: [mkdir] ARGS: [/data/local/chroot/media/internal_sd ]

>>>ERROR: [mkdir: can't create directory '/data/local/chroot/media/internal_sd': No such file or directory]

-mount -z -n linux.img -m /data/local/chroot -l /data/local <

Preparing chroot enviroment

Image name: linux.img

Mount Location: /data/local/chroot

Image Location: /data/local

Setting up enviroment: [OK]

checking root: [OK]

checking mount point: [OK]

Mount location: /data/local/chroot

rootfs: [OK]

/sys: [OK]

/proc: [OK]

/dev: [OK]

/dev/pts: [OK]

/dev/shm: [OK]

mount internal_sd: [fail]

>>CMD: [mkdir] ARGS: [/data/local/chroot/media/internal_sd ]

>>>ERROR: [mkdir: can't create directory '/data/local/chroot/media/internal_sd': No such file or directory]

-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -0 <

Install options:

Distro: precise

image: linux.img size: 1600 img location: /data/local

setting up enviroment: [OK]

checking root: [OK]

image:/data/local/linux.img exits, exiting

-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -0 <

Install options:

Distro: precise

image: linux.img size: 1600 img location: /data/local

setting up enviroment: [OK]

checking root: [OK]

image:/data/local/linux.img exits, exiting

-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -0 <

Install options:

Distro: precise

image: linux.img size: 1600 img location: /data/local

setting up enviroment: [OK]

checking root: [OK]

image:/data/local/linux.img exits, exiting

1|root@espresso10wifi:/data/local/install-or-mount # su

cd /data/local/

busybox mount -o loop linux.img chroot

cd chroot/debootstrap

cd /data/local/

busybox mount -o loop linux.img chroot

cd chroot/debootstraproot@espresso10wifi:/data/local/install-or-mount #

root@espresso10wifi:/data/local/install-or-mount #

root@espresso10wifi:/data/local/install-or-mount # cd /data/local/

root@espresso10wifi:/data/local #

root@espresso10wifi:/data/local # busybox mount -o loop linux.img chroot

root@espresso10wifi:/data/local # cd chroot/debootstrap

root@espresso10wifi:/data/local/chroot/debootstrap #

What is the next thing I do?