Come upload ASAP,,we wanna try it..just multi host it in mediafire,megaupload,hotfile and so on...
Hi,
Backtrack is not booting in my HTC Legend :-(
The following error occurs:
Code:[1] Segmentation fault busybox chroot $ Shutting down BackTrack ARM losetup : /dev/loop7:Device or resource busy
Anyone have the same error?
Stupid question,
it will allow me to choose OS (Android or Ubuntu BT5) after power on the device or how exactly does it work?
Thanks in advance
Ames; ISU student. Currently on internship in Omaha though.
Mediafire is down. I'm going to go with megaupload for the time being. My server should be back online this weekend.
Busybox itself is segfaulting; I'd go grab the newest version you can find and try again.
mkdir: can't create directory '/data/local/mnt': File exists
losetup: /dev/block/loop7: No such file or directory
mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource busy
mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or directory
mount: mounting proc on /data/local/mnt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/mnt/sys failed: No such file or directory
net.ipv4.ip_forward = 1
bt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
bt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
bt: cannot create /data/local/mnt/etc/hosts: directory nonexistent
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/bin/bash': No such file or directory
Shutting down BackTrack ARM
umount: can't umount /data/local/mnt/dev/pts: No such file or directory
umount: can't umount /data/local/mnt/proc: No such file or directory
umount: can't umount /data/local/mnt/sys: No such file or directory
umount: can't umount /data/local/mnt: Invalid argument
losetup: /dev/loop7: Device or resource busy
THX for the advice.
I updatet to 1.8.4. Now i am get this error:
Code:mkdir: can't create directory '/data/local/mnt': File exists losetup: /dev/block/loop7: No such file or directory mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource busy mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or directory mount: mounting proc on /data/local/mnt/proc failed: No such file or directory mount: mounting sysfs on /data/local/mnt/sys failed: No such file or directory net.ipv4.ip_forward = 1 bt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent bt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent bt: cannot create /data/local/mnt/etc/hosts: directory nonexistent Ubuntu is configured with SSH and VNC servers that can be accessed from the IP: eth0: No such device chroot: can't execute '/bin/bash': No such file or directory Shutting down BackTrack ARM umount: can't umount /data/local/mnt/dev/pts: No such file or directory umount: can't umount /data/local/mnt/proc: No such file or directory umount: can't umount /data/local/mnt/sys: No such file or directory umount: can't umount /data/local/mnt: Invalid argument losetup: /dev/loop7: Device or resource busy
Try:
ls -l /dev/block | grep loop
Type what the results are in your reply.
ls -l /dev/block | grep loop
brw------- 1 root root 7, 0 May 18 16:23 loop0
brw------- 1 root root 7, 1 May 18 16:23 loop1
brw-rw---- 1 root root 7, 10 May 18 16:25 loop10
brw------- 1 root root 7, 2 May 18 16:23 loop2
brw------- 1 root root 7, 3 May 18 16:23 loop3
brw------- 1 root root 7, 4 May 18 16:23 loop4
brw------- 1 root root 7, 5 May 18 16:23 loop5
brw------- 1 root root 7, 6 May 18 16:23 loop6
brw------- 1 root root 7, 7 May 18 16:23 loop7
brw-rw---- 1 root root 7, 8 May 18 16:25 loop8
brw-rw---- 1 root root 7, 9 May 18 16:25 loop9
Mirrors are ready to go, see updated first post.
Sorry for all the download troubles, lol.
That's the Output:
Code:ls -l /dev/block | grep loop brw------- 1 root root 7, 0 May 18 16:23 loop0 brw------- 1 root root 7, 1 May 18 16:23 loop1 brw-rw---- 1 root root 7, 10 May 18 16:25 loop10 brw------- 1 root root 7, 2 May 18 16:23 loop2 brw------- 1 root root 7, 3 May 18 16:23 loop3 brw------- 1 root root 7, 4 May 18 16:23 loop4 brw------- 1 root root 7, 5 May 18 16:23 loop5 brw------- 1 root root 7, 6 May 18 16:23 loop6 brw------- 1 root root 7, 7 May 18 16:23 loop7 brw-rw---- 1 root root 7, 8 May 18 16:25 loop8 brw-rw---- 1 root root 7, 9 May 18 16:25 loop9
Issue "pwd". Are you sure you installed all the files to "/sdcard/bt5"? Your loop devices are fine, so it's throwing the error because it's looking for the .img file in /sdcard/bt5 and not finding it.
I think it's /mnt/sdcard/bt5 in Cyanogen. That's what I get when writing "pwd" could be related the the /mnt ?
Issue "pwd". Are you sure you installed all the files to "/sdcard/bt5"? Your loop devices are fine, so it's throwing the error because it's looking for the .img file in /sdcard/bt5 and not finding it.
/mnt/sdcard/bt5
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This script requires root! Type: su"; exit; fi
mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/mnt/sdcard/bt5
export bin=/system/bin
export mnt=/data/local/mnt
mkdir $mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/loop7 ]; then
echo "Loop device exists"
else
busybox mknod /dev/loop7 b 7 0
fi
#mount -o loop,noatime -t ext2 $kit/bt5.img $mnt
losetup /dev/block/loop7 $kit/bt5.img
mount -t ext2 /dev/block/loop7 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"
ifconfig eth0
echo " "
busybox chroot $mnt /bin/bash
echo "Shutting down BackTrack ARM"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/loop7
/mnt/sdcard/bt5
# sh bt5
sh bt5
sh: Can't open bt5
# sh bt
sh bt
mkdir: can't create directory '/data/local/mnt': File exists
Loop device exists
losetup: /dev/block/loop7: No such file or directory
mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource b
mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or direct
mount: mounting proc on /data/local/mnt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/mnt/sys failed: No such file or directory
net.ipv4.ip_forward = 1
bt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
bt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
bt: cannot create /data/local/mnt/etc/hosts: directory nonexistent
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/bin/bash': No such file or directory
Shutting down BackTrack ARM
umount: can't umount /data/local/mnt/dev/pts: No such file or directory
umount: can't umount /data/local/mnt/proc: No such file or directory
umount: can't umount /data/local/mnt/sys: No such file or directory
umount: can't umount /data/local/mnt: Invalid argument
losetup: /dev/loop7: Device or resource busy
If you don't know what BackTrack is, you probably don't want it
BackTrack is an operating system based on Ubuntu Linux that is used for security testing (aka hacking) and digital forensics. I'm a master's degree student in computer security, so I love this OS... it can do awesome things. Turn on your Wi-Fi and you can do advanced network scans and tests right from your phone, no laptop required. For me this is hella-useful.
But besides just being an OS for hacking ****, it's also fully Ubuntu-based, so you can run it like a desktop, including running Firefox and other Linux applications.
msullivan said:The Download
This installation of BackTrack 5 is available as a compressed file that will need to be extracted. I recommend downloading this using Chrome or Firefox. Internet Explorer often doesn’t play well with large HTTP downloads.
The root account’s password and the VNC server password are both set to ‘root’ by default!
Mirror 1
- Part 1: http://www.mediafire.com/?1z5sbxdxv3naxp1
- Part 2: http://www.mediafire.com/?0zz1vac0k59d58p
- Part 3: http://www.mediafire.com/?kxpb7ug0x55ppde
Mirror 2
Mirror 3 (Provided by shenshang)
Mirror 4 (Provided by brilldoctor)
Mirror 5 (Thanks for uploading, PIIcoding)
- Part 1: https://rapidshare.com/files/3602140493/BackTrack5ForARM-MattsLifeBytesEditionv2.part1.rar
- Part 2: https://rapidshare.com/files/2384880899/BackTrack5ForARM-MattsLifeBytesEditionv2.part2.rar
- Part 3: https://rapidshare.com/files/3314159192/BackTrack5ForARM-MattsLifeBytesEditionv2.part3.rar
- Part 4: https://rapidshare.com/files/3073073580/BackTrack5ForARM-MattsLifeBytesEditionv2.part4.rar
- Part 5: https://rapidshare.com/files/2486943841/BackTrack5ForARM-MattsLifeBytesEditionv2.part5.rar
- Part 6: https://rapidshare.com/files/3545372402/BackTrack5ForARM-MattsLifeBytesEditionv2.part6.rar
- Part 7: https://rapidshare.com/files/2371728719/BackTrack5ForARM-MattsLifeBytesEditionv2.part7.rar
- Part 8: https://rapidshare.com/files/1437974805/BackTrack5ForARM-MattsLifeBytesEditionv2.part8.rar
- Part 9: https://rapidshare.com/files/1758571109/BackTrack5ForARM-MattsLifeBytesEditionv2.part9.rar
The Description
If you want to run BackTrack 5 on your Android-powered device, read on, you’re in the right place! So the big news is that BackTrack 5 runs on Android phones. We’ve been able to run Ubuntu on these devices for quite some time too, but admittedly BackTrack on a smartphone is just awesome.
Anyway, files for using BackTrack 5 on an Android phone have been running around the internet, but sadly it’s kind of a mish-mash of links saying, “go download this, then get this, to then this, blah blah blah”. Too confusing for my simple brain, so I’ve rounded it all up and posted it in one place… right here. The version posted here has everything you should need to run BackTrack 5 on your Android device. I’ve also added a lot of goodies to help with the user experience that the other offerings don’t include:
- Works around the ioctl LOOP_SET_FD failed error that many people have been receiving on Galaxy S devices (and others)
- Asks the user if they want a VNC session upon start-up
- Starts the SSH service automatically and displays device IP on start-up
- Enables the Ubuntu repositories to Aptitude, so you can do package installation
- Adds vim. Really, what distribution doesn’t come with vim by default? Seriously…
- Sets the screen resolution to 800×480 default (should be compatible with most smartphone devices)
SU
This requires root!
You must be able to "su" at terminal. This ability is usually provided by software for rooting your phone. To see if you have rooted your phone correctly and it's working, go to your terminal emulator and type "su" <enter>. If it is working, you'll probably get a prompt asking you if you want to allow your terminal emulator root access. Hit accept/yes. Now you'll be back in your terminal emulator. Type "whoami" <enter>. If it responds with "root" or "uid 0", then you are properly rooted.
Busybox
This requires Busybox!
I am no longer providing an installer for Busybox because of issues getting it to work universally, so instead YOU need to go get a working build and install it (I believe "Busybox Installer" will work, but not tested). If you want to know if you have Busybox and it's working, go to your terminal emulator and type "su" <enter>, then "busybox ls" <enter>. If you get a printout of all the files in your current directory, then your Busybox will likely work with BackTrack 5 just fine. If you get an error, "busybox: not found", that means you either do not have Busybox, or it is not properly installed.
WARNING FOR CyanogenMod USERS
Before doing ANYTHING, please test for ext2 support by running (as root, at terminal) --> "modprobe ext2" <enter>
If this fails probably your device lacks ext2 support and the whole thing will screw up if you try to run it! Support for ext2 in CM is being worked on.
The Installation Guide
- Enable Wi-Fi and connect to a Wi-Fi access point (* not required, but BT5 cannot use your data plan for internet access)
- Download the zip file, extract anywhere
- After extraction you’ll have one folder “bt5″; copy this folder to the root of your phone’s SD Card
- Put card back in phone and/or unplug from USB
- In a terminal emulator, type “su” <enter>, “cd /sdcard/bt5″ <enter>
- Now you are ready to rock and roll, so issue “sh bt” <enter> (in the future to start BT5 skip the line above and come straight to this command)
- If all is well you’ll now be running BackTrack 5 on your Android device; you can SSH to it via Wi-Fi (password ‘root’), or access it from VNC if you said “Yes” to the prompt asking if you wanted a VNC session
- To get a GUI for BackTrack on your smartphone’s screen, download a VNC viewer from the market (many are free), then connect to host “127.0.0.1″, port “5901″, password “root”
Enjoy, boys and girls.
The Credits
The BackTrack 5 Development Team
anantshri on xda-developers (his blog: http://blog.anantshri.info/) for creating the image file to fit FAT32 filesystems
anantshi's original thread where it all began: http://xdaforums.com/showthread.php?t=1074169
#! $SHELL
#AndBuntu
#Android 2.2 Ubuntu launcher
#Copyright 2011 Adam Outler
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#Generate a ubuntu.img file on Ubuntu with the following commands:
# cd ~/Desktop
# sudo apt-get install rootstock
# sudo rootstock --dist maverick --seed lxde,tightvncserver,openoffice.org,gimp,ssh, -fqdn localhost --login ubuntu --password ubuntu --imagesize 3800M --notarball --fullname "Ubuntu for Android" --kbmodel pc104 --locale en_US.UTF-8 --serial ttyS0 --doswap --swapsize 256M
#This will generate a *************.img file. Rename this file "ubuntu.img".
#Copy this script and your new ubuntu.img file to your android's /sdcard/ubuntu/ folder
#Open any Terminal Emulator and execute this script with the following command:
# cd /sdcard/ubuntu
# su
# sh uboot
clear
helpfulExit (){
echo "The command executed failed. please search for this
command on Google. If that fails, try www.UbuntuForums.org."
exit
}
echo "Setting up environmental variables."
export UbuntuLoopFS=/sdcard/ubuntu/ubuntu.img
export UbuntuMountPoint=/data/local/mnt
export PATH=/system/bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
export USER=root
test "$SHELL" = "" && export SHELL="sh"
echo "Environment is: $SHELL"
Dependency=""
echo "Verifying dependencies..."
Dependency="mount"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
Dependency="mknod"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
Dependency="rm"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
Dependency="ln"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
Dependency="expr"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
Dependency="grep"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
Dependency="chroot"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
Dependency="sysctl"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
Dependency="umount"
if ! which $Dependency >/dev/null; then MissingDeps="$MissingDeps $Dependency"; fi
if [ "$MissingDeps" != "" ]; then
echo "*********WARNING**********"
echo "MISSING DEPENDENCIES FOUND"
echo "THE MISSING DEPENDENCIES.."
echo "$MissingDeps"
echo "*********WARNING**********"
fi
echo "Remounting root filesystem as rewritable"
mount -o remount,rw -t ext4 rootfs /
if [ $? != 0 ]; then
echo " Failure...
YOU MUST BE ROOT!
*****ERROR*****
command failed
mount -o remount,rw -t ext4 rootfs /
Attemted to mount a new root filesystem as EXT4 and failed.
Your system must be Android 2.2 compatible and support EXT4 filesystems"
echo "trying again.. "
if [ ! -h /system/lib ]; then
cp -r /lib /system/lib
rm -r /lib
ln -s /system/lib /lib
fi
mount -o remount,rw -t ext4 rootfs /
if [ $? = 0 ]; then
echo "Sucessful"
else
echo "FAILED. YOU MUST BE ROOT."
echo "Type 'su' first to attain root access"
echo "The command run was:
mount -o remount,rw -t ext4 rootfs /"
helpfulExit
fi
fi
echo "Attempting to remount /system dir as RW... "
mount -o remount,rw -t ext4 /dev/block/mtdblock3 /system
if [ $? != 0 ]; then
echo " failed...
*****ERROR*****
command was
mount -o remount,rw -t ext4 /dev/block/mtdblock3 /system
Your system must be Android 2.2 compatible and support EXT4 filesystems."
helpfulExit
fi
echo "Removing preexisting loopfs devices."
#rm /dev/loop* 2>&1 >/dev/null
FreeLoop=`losetup -f`
x=${FreeLoop#${FreeLoop%?}}
echo "setting up $FreeLoop"
test ! -e "$FreeLoop" && mknod "$FreeLoop" b 7 "$x"
FreeLoop=`losetup -f`
x=${FreeLoop#${FreeLoop%?}}
echo "setting up $FreeLoop"
test ! -e "$FreeLoop" && mknod "$FreeLoop" b 7 "$x"
x=1
FreeLoop=/dev/loop1
#losetup $FreeLoop /sdcard/ubuntu/ubuntu.img
echo "Checking for interference mount points"
existingMounts=`mount |grep "$UbuntuMountPoint/dev/pts"|awk '{print $3}'`
if [ "$existingMounts" != "" ]; then
umount "$UbuntuMountPoint/dev/pts"
umount "$UbuntuMountPoint/proc"
umount "$UbuntuMountPoint/sys"
umount "$UbuntuMountPoint"
fi
test ! -e "$UbuntuMountPoint" && mkdir "$UbuntuMountPoint"
echo "Mounting $UbuntuLoopFS at $UbuntuMountPoint as EXT4 Filesystem"
mount -o loop,noatime -t ext4 $UbuntuLoopFS $UbuntuMountPoint
if [ -e $UbuntuMountPoint/etc ]; then
echo "Mounted $UbuntuLoopFS as EXT4 loopFS at $UbuntuMountPoint/ubuntu.img"
else
echo "Error in mounting $UbuntuLoopFS as loop EXT4 filesystem
the command executed was
mount -o loop,noatime -t ext4 $UbuntuLoopFS $UbuntuMountPoint
The filesystem may have been of the wrong type. Check to make sure $UbuntuMountPoint falls within the following filesystems:"
mount |grep ext4|sed s/\(.*//
helpfulExit
fi
echo "Mounting $UbuntuMountPoint/dev/pts"
mount -t devpts devpts "$UbuntuMountPoint/dev/pts"
test $? != 0 && echo "Failed mounting $UbuntuMountPoint/dev/pts as devpts filesystem type"
echo "Mounting $UbuntuMountPoint/dev/proc"
mount -t proc proc "$UbuntuMountPoint/proc"
test $? != 0 && echo "Failed mounting $UbuntuMountPoint/proc as proc filesystem type"
echo "Mounting $UbuntuMountPoint/dev/proc"
mount -t sysfs sysfs "$UbuntuMountPoint/sys"
test $? != 0 && echo "Failed mounting $UbuntuMountPoint/sys as sysfs filesystem type"
echo "Setting up network forward..."
sysctl -w net.ipv4.ip_forward=1
echo "checking /etc/resolv.conf s.."
if ! grep "nameserver 8.8.8.8" "$UbuntuMountPoint/etc/resolv.conf" 2>&1 >/dev/null ; then
echo "adding nameserver 8.8.8.8"
echo "nameserver 8.8.8.8" > "$UbuntuMountPoint/etc/resolv.conf"
fi
if ! grep "nameserver 8.8.4.4" "$UbuntuMountPoint/etc/resolv.conf" 2>&1 >/dev/null ; then
echo "adding nameserver 8.8.4.4"
echo "nameserver 8.8.4.4" >> "$UbuntuMountPoint/etc/resolv.conf"
fi
echo "checking localhost entries in /etc/hosts and $UbuntuMountPoint/etc/hosts"
if ! grep '127.0.0.1 localhost' /etc/hosts 2>&1 >/dev/null ; then
echo '127.0.0.1 localhost' > /etc/hosts
echo 'Adding localhost to /etc/hosts'
fi
if ! grep '127.0.0.1 localhost' "$UbuntuMountPoint/etc/hosts" 2>&1 >/dev/null ; then
echo '127.0.0.1 localhost'>"$UbuntuMountPoint/etc/hosts"
echo 'Adding localhost to $UbuntuMountPoint/etc/hosts'
fi
test ! -h /lib && rm -r /lib && ln -s /system/lib /lib
if [ -e "$UbuntuMountPoint/bin/bash" ]; then
echo "Clearing $UbuntuMountPoint/tmp.."
rm -r "$UbuntuMountPoint/tmp"
mkdir "$UbuntuMountPoint/tmp"
#generate quit script
echo "#! /bin/bash">$UbuntuMountPoint/usr/bin/q
echo 'X=`ps 2>&1 |awk '"'"'{print $1}'"'"' |tr -d PID `'>>$UbuntuMountPoint/usr/bin/q
echo 'echo $X'>>$UbuntuMountPoint/usr/bin/q
echo "kill \$X">>$UbuntuMountPoint/usr/bin/q
chmod 777 $UbuntuMountPoint/usr/bin/q
#generate helper script to fix things
echo "#! /bin/bash">"$UbuntuMountPoint/usr/bin/firstRun"
echo 'rm /dev/ptmx
mknod --mode 666 /dev/ptmx c 5 2
/bin/dbus-uuidgen --ensure'>>"$UbuntuMountPoint/usr/bin/firstRun"
chmod 777 "$UbuntuMountPoint/usr/bin/firstRun"
echo "Ubuntu is ready! Chrooting terminal into Ubuntu distribution."
echo "type 'q' to quit"
chroot "$UbuntuMountPoint" "/bin/bash"
else
echo "Failed... Bash is not mounted at $UbuntuMountPoint/bin/bash"
echo "the command executed was
chroot $UbuntuMountPoint /bin/bash"
helpfulExit
fi
#After exit command is executed clear it all up
echo " "
echo "Shutting down Ubuntu"
umount $UbuntuMountPoint/dev/pts
umount $UbuntuMountPoint/proc
umount $UbuntuMountPoint/sys
umount $UbuntuMountPoint