adb not found/busybox install help

Discussion in 'Android Hacks and Help' started by zeppelinmad4, Jan 10, 2010.

  1. zeppelinmad4

    zeppelinmad4 Member

    Joined:
    Dec 24, 2009
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Jacksonville Beach, FL
    Ratings:
    +0
    I have done a search and couldn't find anything on this so here I go. I am not extremely new to adb shells and linux operating systems (I successfully installed ydl on my ps3) but I have recently run into an issue on my rooted droid. I am trying to install busybox onto the phone and do the following:
    $ su
    # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
    adb push ./busybox /system/sbin

    When I get to the last step I get "adb: not found". I have attached a screen capture to show where I am at. I'm not quite sure why it is coming up with this and don't really know what to do from here. I have a copy of busybox in the tools folder and on the root of the sd card. Thank you for any help and let me know if you need anymore info.
     
  2. Topsy

    Topsy Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Rio Rancho, New Mexico
    Ratings:
    +0
    You can't do an adb push from within an adb shell, that's what's wrong.

    adb push busybox /sdcard/
    adb shell
    $su
    #mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system
    #cp /sdcard/busybox /system/sbin/

    should do the trick.
     
  3. zeppelinmad4

    zeppelinmad4 Member

    Joined:
    Dec 24, 2009
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Jacksonville Beach, FL
    Ratings:
    +0
    okay so maybe I'm a little more confused than I originally thought. As you can see in the capture, I did what you said but now get a "cp: not found". I have since exited and tried to push out of the shell but get a permission denied. Thanks for the help.
     
  4. Topsy

    Topsy Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Rio Rancho, New Mexico
    Ratings:
    +0
    ya sorry that works for me but i forgot it's cause i already have busybox installed , oops

    try this route instead:
    adb push busybox /data/local/busybox
    adb shell
    su
    cd /data/local
    chmod 755 busybox
    ./busybox
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    mkdir /system/xbin
    /data/local/busybox cp /data/local/busybox /system/xbin
    /data/local/busybox cp /data/local/busybox /system/bin
    cd /system/xbin
    busybox --install .
    mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot
     
  5. zeppelinmad4

    zeppelinmad4 Member

    Joined:
    Dec 24, 2009
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Jacksonville Beach, FL
    Ratings:
    +0
    Thanks for the helps so far I'm so close. As you can see, I got all the way to "cd /system/xbin" and it says can't cd /system/xbin.
     
  6. Topsy

    Topsy Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Rio Rancho, New Mexico
    Ratings:
    +0

    forgot the / before system,

    cd /system/xbin
    instead of
    cd system/xbin
     
  7. zeppelinmad4

    zeppelinmad4 Member

    Joined:
    Dec 24, 2009
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Jacksonville Beach, FL
    Ratings:
    +0
    Thanks got to that part and got busybox --install and got no such file or directory for many many directories.
     
  8. zeppelinmad4

    zeppelinmad4 Member

    Joined:
    Dec 24, 2009
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Jacksonville Beach, FL
    Ratings:
    +0
    I forgot to mention that I did the rest of the steps and then tried to start up metamorph (I'm installing a new theme) and it still said that busybox wasn't installed so I came back here. Then I got this bright idea to turn off debugging and tada!!! I'm pretty sure that everything is good. I really appreciate you sticking around and helping me with this.
     
  9. Topsy

    Topsy Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Rio Rancho, New Mexico
    Ratings:
    +0
    you've got a busybox that is hard coded to install to another directory.

    Attached is a version that will work for you.


    Well I see you got it working , but it took forever to get the forums to accept the upload, so here it is.
     
    #9 Topsy, Jan 10, 2010
    Last edited: Jan 14, 2010
  10. zeppelinmad4

    zeppelinmad4 Member

    Joined:
    Dec 24, 2009
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Jacksonville Beach, FL
    Ratings:
    +0
    Thank you for the help.
     
  11. Topsy

    Topsy Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Rio Rancho, New Mexico
    Ratings:
    +0
    Welcome. Enjoy metamorphosis and the custom themes.
     
  12. jrocketdroid

    jrocketdroid Member

    Joined:
    Nov 10, 2009
    Messages:
    163
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    SoCal
    Ratings:
    +0
    topsy can you help out?

    can you help out Topsy.
    I get to the ./busybox line, and the following happens:
    ./busybox
    ./busybox: permission denied

    I know I'm rooted, because I did that correctly...any ideas?
     
Search tags for this page
adb cp not found
,

adb not found

,
adb push busybox
,
adb push su install system
,
adb shell cp not found
,
busybox adb
,
busybox android
,
busybox android not found
,
busybox not found
,
my phone rio busy box