Hi Guys,
Here is how to get BT5 Running on DHD
Requirements
- Rooted Phone
- SDcard
- VNC Client
- ADB
- Rom Manager
- Titanium backup for Busybox
Download sdparted - http://forum.xda-developers.com/showthread.php?t=543985
Paratition you SD card with EXT4 Support
1. Boot into rom manager
2. At your windows cmd prompt type: adb push /path-to/sdparted.txt /sbin/sdparted
3. Then type: adb shell chmod 755 /sbin/sdparted
4. To run type adb shell and hit enter.
5. Run separted -i (Warning this will format you SD card)
6. Reboot
Find your New partition.
1. Connect via adb
2. Type “mount” and find your fat32 partition
Code:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
….
/dev/block/vold/179:65 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
….
3. Type “ls /dev/block/vold” to find other Voulmes in my case it was 179:66
4. Create a new Folder in mnt called "sdcard-ext"
Code:
mount -o rw,remount rootfs /
mkdir /mnt/sdcard-ext
mount -o ro,remount rootfs /
5. Mount your new partition.
Code:
mount -o rw -t ext4 /dev/block/vold/179:66 /mnt/sdcard-ext
Copying BackTrack ARM
This can be done a number of way take your pick
Uncompress IMG
Modify bootbt
[/ODE]
echo "*****Starting BackTrack 5 ARM*****"
echo " "
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This Script Needs Root! Type : su";exit;fi
mount -o remount,rw /dev/block/mmcblk0p25 /system <- You will need to change
export kit=/mnt/sdcard-ext/BT5
export bin=/system/bin
export mnt=/data/local/mnt
mkdir -p $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/block/loop2 ]; then
echo "Loop device exists"
else
busybox mknod /dev/block/loop2 b 7 0
fi
busybox mount -o loop,noatime -t ext4 $kit/bt5.img $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 "127.0.0.1 localhost bt5" > $mnt/etc/hosts
busybox chroot $mnt /bin/bash
echo "*****Shutting down BackTrack ARM For DHD*****"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
echo "*****Reboot Device Just to make sure*****"
[/CODE]
Change to the microSD directory
Code:
cd /mnt/sdcard-ext/BT5
Boot BackTrack
Code:
./bootbt
# ./bootbt
*****Starting BackTrack 5 ARM*****
mkdir failed for -p, File exists
Loop device exists
net.ipv4.ip_forward = 1
root@localhost:/#
*The only issue is that you have to create sdcard-ext and remount after a reboot.