Results 1 to 1 of 1

Thread: How to get Backtrack 5 ARM running on HTC Desire HD SD card

Threaded View

  1. #1
    Just burned his ISO
    Join Date
    Mar 2006
    Posts
    5

    Default How to get Backtrack 5 ARM running on HTC Desire HD SD card

    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
    Code:
    gunzip bt5.img.gz
    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.
    Last edited by blade2; 06-26-2011 at 12:42 PM.

Similar Threads

  1. Problems running BT5 on ATI 5650HD hybrid card
    By falcorn in forum Non Working Hardware
    Replies: 3
    Last Post: 09-01-2012, 06:29 PM
  2. Having trouble getting my network card running. Please help
    By vampirepsycho in forum Beginners Forum
    Replies: 4
    Last Post: 08-05-2010, 06:13 PM
  3. Wireless card will not work while running linux live cd
    By greg_2390 in forum OLD Tutorials and Guides
    Replies: 0
    Last Post: 06-22-2008, 08:02 PM
  4. Intel 4865 wireless card running on Backtrack 2
    By hjnan in forum OLD Newbie Area
    Replies: 0
    Last Post: 11-14-2007, 03:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •