Jump to content

No copy (cp) command?


Recommended Posts

Guest hyakamaru
Posted

I've noticed that, when I do a cp command under adb shell, it always tells me:

cp: not found

Is this normal for the Pulse/CHT8000? Or am I missing some files?

Guest BigBearMDC
Posted
I've noticed that, when I do a cp command under adb shell, it always tells me:

cp: not found

Is this normal for the Pulse/CHT8000? Or am I missing some files?

I thought Android has a copy command - I never tried it though.

If that doesn't work just use a combination of adb pull and adb push.

But beware of that adb push doesn't work when Android is booted as you can't mount the system partition as rw.

Best regards,

BB

Guest Tom G
Posted
I thought Android has a copy command - I never tried it though.

If that doesn't work just use a combination of adb pull and adb push.

But beware of that adb push doesn't work when Android is booted as you can't mount the system partition as rw.

Best regards,

BB

I'm not sure about older versions, but froyo doesn't have cp. Most custom roms will have cp from busybox.

The system partition can be mounted rw, just remount it with 'adb remount' before pushing anything.

You could probably copy things using something like 'cat file1 > file2', but that would lose the permissions on the file, so you would need to manually set them afterwoods (chmod).

Guest BigBearMDC
Posted
I'm not sure about older versions, but froyo doesn't have cp. Most custom roms will have cp from busybox.

The system partition can be mounted rw, just remount it with 'adb remount' before pushing anything.

You could probably copy things using something like 'cat file1 > file2', but that would lose the permissions on the file, so you would need to manually set them afterwoods (chmod).

Okay, mounting the system partition as rw didn't work for me, it just spit out an "device or resource busy" error ...

I think he's on a stock ROM, so I guess he hasn't installed busybox.

But he should be able to install it on a rooted stock ROM, right?

All he would have to do is pushing busybox to /system/bin and add the symlinks?

Hell I think installing a custom ROM would be easier :)

Best regards,

BB

Guest Tom G
Posted
Okay, mounting the system partition as rw didn't work for me, it just spit out an "device or resource busy" error ...

I think he's on a stock ROM, so I guess he hasn't installed busybox.

But he should be able to install it on a rooted stock ROM, right?

All he would have to do is pushing busybox to /system/bin and add the symlinks?

Hell I think installing a custom ROM would be easier :)

Best regards,

BB

I think there is a command in busybox for it to create all of the symlinks for you, but where it creates them depends on what path was set for it when it was compiled. Default would be something like /usr/bin or /bin which won't work for android. Alternatively you can run it without the symlinks eg. 'busybox cp sourcefile targetfile'.

Guest hyakamaru
Posted
Okay, mounting the system partition as rw didn't work for me, it just spit out an "device or resource busy" error ...

I think he's on a stock ROM, so I guess he hasn't installed busybox.

But he should be able to install it on a rooted stock ROM, right?

All he would have to do is pushing busybox to /system/bin and add the symlinks?

Hell I think installing a custom ROM would be easier :)

Best regards,

BB

I'm a she.

I was able to use adb's push/pull, as you advised, plus some chmod-ing, instead of cp. It would've been easier and more straight-forward without it, but whatever works is ok as well.

For now, I'm using the "normal" build. Will try the custom ROMs when I get more time to play around with this phone.

What is the busybox for btw?

And thanks again guys for the help!

Guest BigBearMDC
Posted
I'm a she.

I was able to use adb's push/pull, as you advised, plus some chmod-ing, instead of cp. It would've been easier and more straight-forward without it, but whatever works is ok as well.

For now, I'm using the "normal" build. Will try the custom ROMs when I get more time to play around with this phone.

What is the busybox for btw?

And thanks again guys for the help!

Doh! Sorry :D

Damn prejudice ...

Busybox adds commands like "cp" :)

Its just an enhancement for the pretty weak Android shell.

Best regards,

BB

Guest hyakamaru
Posted
Doh! Sorry :D

Damn prejudice ...

Busybox adds commands like "cp" :D

Its just an enhancement for the pretty weak Android shell.

Best regards,

BB

Much thanks. I'll try to install a custom ROM, and add that busybox with it. Lets see if I can get to use more commands afterwards :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.