1. Download our Official Android App: Forums for Android!

Root [Boost Mobile] Now I'm a Super User, but Stuck

Discussion in 'Android Devices' started by cmpyutr, Dec 22, 2013.

  1. cmpyutr

    cmpyutr Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    26
    Joined:
    Jul 2, 2012

    Jul 2, 2012
    26
    1
    16
    I go into terminal emulator. Get a $ prompt. Enter su root, get a # prompt. Thought I could cp myfile sdcard (/mnt/sdcard). Nope, cp is not an available command. So I try mv. mv works to rename, but when I try to mv myfile /mnt/sdcard, get a message about failure due to cross link. Typical message ya get, I read, when one of the devices is not mounted. I'm thinking /mnt/sdcard is mounted, and so is wherever I am when I am at /. Can anyone help me copy a file over to the sdcard, so I can upload to my pc and analyze it?
     

    Advertisement

  2. Skinnyjeans21

    Skinnyjeans21 Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    2,617
    Joined:
    Oct 25, 2012

    Oct 25, 2012
    2,617
    1,796
    333
    Male
    High School Senior and Professional Sleeper
    Houston, TX
    you might have to run that command through adb after the command "adb shell" w/o the quotes. I think thats an adb command not something that can be executed via terminal emulator
     
    cmpyutr likes this.
  3. jimsmith80

    jimsmith80 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,361
    Joined:
    Aug 22, 2012

    Aug 22, 2012
    1,361
    777
    213
    Male
    Phoenix AZ
    It all depends on how your simlinks are set up. To run the cp command on the stock rom with root you have to run toolbox cp /path/to/file /destination/of/copy
     
    cmpyutr likes this.
  4. cmpyutr

    cmpyutr Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    26
    Joined:
    Jul 2, 2012

    Jul 2, 2012
    26
    1
    16
    Okay, thanks. "toolbox", is that busybox? which I understand is likely installed to supplement the meager commands present in the os. If so, then do you mean

    /path/to/busybox/folder cp /path/to/file /destination/of/copy ?

    Like /bin/cp /data/myfile /mnt/sdcard/myfile, where I know I have a simlink for example which is sdcard -> /mnt/sdcard. So is "toolbox" a simlink for where busybox files are?

    Thanks.
     
  5. cmpyutr

    cmpyutr Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    26
    Joined:
    Jul 2, 2012

    Jul 2, 2012
    26
    1
    16
    Okay, little more investigation on my part. I notice from the output of ls -l that I get this:

    lrwxrwxrwx root root 2013-12-20 22:48 cat -> toolbox
    lrwxrwxrwx root root 2013-12-20 22:48 chmod -> toolbox
    lrwxrwxrwx root root 2013-12-20 22:48 chown -> toolbox

    and so on.

    So I typed:

    $toolbox ls

    which gave me valid output, but when I typed

    $toolbox cp

    output was

    cp: no such tool

    So apparently, my simlinks are fine, cuz my "mv" command worked, but cp is just not one of the commands available in the toolbox. I figure, like skinnyjeans said, I could use adb shell. But if I knew Linux better, maybe I could copy over a file from somewhere to the sdcard, maybe with "dd". dd appears to be a tool in the toolbox. how about dd path/to/infile path/to/outfile? Just don't wanna get in trouble, y'know?

    Thanks.
     
  6. cmpyutr

    cmpyutr Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    26
    Joined:
    Jul 2, 2012

    Jul 2, 2012
    26
    1
    16
    Okay, think I got it now. From terminal emulator, you got:

    $

    then, cuz the file was in a directory that I didn't have access to, unless I was root, I did

    $su root

    Dangerous, ladies and gents. Be careful.

    so now I got

    #

    then I did

    #dd if=myfile of=/mnt/sdcard/myfile
    98+1 records in 98+1 records out

    #exit
    $exit

    Scary. Glad I didn't reverse the if= and the of=. data destruction
     
  7. jimsmith80

    jimsmith80 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,361
    Joined:
    Aug 22, 2012

    Aug 22, 2012
    1,361
    777
    213
    Male
    Phoenix AZ
    Now that your rooted installing busybox is a simple as downloading an app from the play store. It will set up the simlinks for you, so all you will need to do is run cp.
     
    cmpyutr likes this.
  8. cmpyutr

    cmpyutr Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    26
    Joined:
    Jul 2, 2012

    Jul 2, 2012
    26
    1
    16
    Currently running droidsmith rom. Isn't busybox included in droidsmith?
     
  9. jimsmith80

    jimsmith80 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,361
    Joined:
    Aug 22, 2012

    Aug 22, 2012
    1,361
    777
    213
    Male
    Phoenix AZ

    Yes it is
     
    cmpyutr likes this.

Share This Page

Loading...