• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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


Jul 2, 2012
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?
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

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?

Upvote 0
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?

Upvote 0
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


Scary. Glad I didn't reverse the if= and the of=. data destruction
Upvote 0


We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.