I am using Terminal Emulator on the phone (because my PC is screwed up). I am trying to copy a directory from the sd card to /system/media/audio directory on the ROM.
I am able to get rw access to the ROM by typing in..
mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system
then I am trying to copy the file by typing..
cp -r /sdcard/download/ringtones /system/media/audio
It gives me an error saying "Cannot allocate system memory"
does anybody know what that means? How can do this?
you can't copy across mount points. At least, I think that may be what's happening.
You cant write to system from a droid itself....need to use recovery
Related
can anybody answer my why i keep getting this message
C:\android-sdk-windows\tools>adb push recovery-RA-heroc-v1.5.2.img /sdcard
failed to copy 'recovery-RA-heroc-v1.5.2.img' to '/sdcard/recovery-RA-heroc-v1.5
.2.img': Permission denied
what do I have to do to get permission granted?
thanks in advance
Is your SD card mounted? It cant be mounted to your computer when running adb to it or you will get this error.
limbicsystem said:
can anybody answer my why i keep getting this message
C:\android-sdk-windows\tools>adb push recovery-RA-heroc-v1.5.2.img /sdcard
failed to copy 'recovery-RA-heroc-v1.5.2.img' to '/sdcard/recovery-RA-heroc-v1.5
.2.img': Permission denied
what do I have to do to get permission granted?
thanks in advance
Click to expand...
Click to collapse
I have had that problem before if you have gotten to that step in the guide then you are already rooted you just need to flash the recovery. just mount your card and manually copy the file to the root of your sd card then unmount and use this code
Code:
cd /androidsdk/tools/
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard/
flash_image recovery recovery-RA-heroc-1.5.2.img
wait for the # symbol to come back up and then type
Code:
reboot recovery
this is what i get when i try to do it manually
C:\android-sdk-windows\tools>adb shell
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /sdcard/
cd /sdcard/
# flash_image recovery recovery-RA-heroc-v1.5.2.img
flash_image recovery recovery-RA-heroc-v1.5.2.img
error opening recovery-RA-heroc-v1.5.2.img: No such file or directory
# flash_image recovery recovery-RA-heroc-1.5.2.img
flash_image recovery recovery-RA-heroc-1.5.2.img
error opening recovery-RA-heroc-1.5.2.img: No such file or directory
i tried to put the v in front of the one because thats how it was listed but it still didn't work. does it help to say that i bought this three days ago?
flash_image recovery recovery-RA-heroc-1.5.2.img
i have the same problem. can anyone help? I download (flash_image recovery recovery-RA-heroc-1.5.2.img) on to pc but it seems that it wont open the file to read. I copy the file on xp and vista. even copy it manually on the sd/card? can anyone help?
Pre-Kitchen.
limbicsystem said:
this is what i get when i try to do it manually
C:\android-sdk-windows\tools>adb shell
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /sdcard/
cd /sdcard/
# flash_image recovery recovery-RA-heroc-v1.5.2.img
flash_image recovery recovery-RA-heroc-v1.5.2.img
error opening recovery-RA-heroc-v1.5.2.img: No such file or directory
# flash_image recovery recovery-RA-heroc-1.5.2.img
flash_image recovery recovery-RA-heroc-1.5.2.img
error opening recovery-RA-heroc-1.5.2.img: No such file or directory
i tried to put the v in front of the one because thats how it was listed but it still didn't work. does it help to say that i bought this three days ago?
Click to expand...
Click to collapse
You are getting that error because it can not find the specified file. Try this:
When your phone is plugged into your computer, mount your SD card. Then, using Windows Explorer (On your computer) look at your SD card and see if the Recovery IMG is there. If it is, this should work. If it is not, simply click and drag the 1.5.2 Recovery img onto your SD in the root folder (there isn't a folder called root, it simply implies the main/top level folder. The img should not be in any subfolders). Once the Recovery img is on your SD card, then on your phone unmount the SD card, and try your commands again.
Hello,
I am a newbie on this site and android development. I want to installa nd run openvpn to my emulator. I am using these 2 sites for reference :
1)
chengdu110.wordpress com
2010/08/14
want-openvpn-work-on-android-device
2)
android.modaco
content
software
291919
openvpn-on-android/
I am facing couple of problems. From 1st site, I can't copy busybox to system/xbin folder. I get no access, permission failure, etc such messages. Am stuck at this point and thus can't proceed ahead. In Part 2 also need to access /system/lib/ where again problem comes.
In site 2, same cannot access /system/lib or /system/bin folder. Even I can't mount like this : ADB shell mount /system
Command mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system from site 1 was successful.
Even I face problems with cp cmd. Just cp libcrypto.so libcrypto-orig.so doesn't work. I got to give "/system/lib/libcrypto.so cp libcrypto.so libcrypto-orig.so" this format only it copies. Though in the above case "Permission denoed" occured for system/lib. But this foramt worked while copying busybox file.
Can anyone help me with the permission to system folders /xbin, /lib, /bin. Why is mounting required ? Why I am not able to mount directly as mount /system; I need to give full command mount -o rw, .... -t .... /system. I am not sure what all to give in the "..." place - had just copied it from site 1.
Any help, guidance is highly appreciated. I use Eclipse DDMS and Android emulator 2.3.3. Please try to help me.
Hi folks,
This isn't about mounting as a usb drive or anything; I'm trying to gain rw access to /system, but my usual command for that - "mount -o remount,rw /system" - returns the following:
Mount: not found.
Any idea why that would be? This is running CM7 off an sdcard.
try prepending busybox to the command line: "busybox mount yada yada"
Hey, that totally worked! Why did that make a difference?
symlinks not setup right i guess
I am trying to move the vending.apk into system/app from the command line.
I was going to use ES File manager. However, when I try to do 'root explorer' it fails. I do still believe I have a working root because SU works from the adb shell..
Here is what is driving me crazy, I can't seem to move or copy the file from the adb shell after I root and mount the folder as read/write.
I run these commands to set permissions and mount it read/write.
SU
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
However after running SU it returns 'cp not found' when I try to run cp to copy the file. Example...
# cp /mnt/sdcard/Vending.apk /sytem/appVending.apk
cp: not found
If I try to move it, it returns this error.
# mv /mnt/sdcard/Vending.apk /system/app/Vending.apk
failed on '/mnt/sdcard/Vending.apk' - Cross-device link
Is there something else I need to do to move or copy after running SU?
You would first have to fix the mount command because it's not a yaffs2 filesystem, and it's not /dev/block/mtdblock3. The correct command should be "mount -o remount,rw -t ext4 /dev/block/mmcblk0p9". Then try to copy it over to /system/app.
If it still fails, you can adb push it to /system/app after having mounted the partition in read/write.
i just moved it with explorer myself
Try to rename it from .apk to .jpg and copy it with ES File Manager. If it's successful rename it back to .apk after it's in /system/app.
Hi,
I am unable to edit build.prop (flashing B15 and B13-chinese bootstack enabled nav bar - I want to remove it) as I can not mount /system as RW. When doing so, either via Terminal, ADB Shell or simply a file explorer app, I generally get a "Device busy" error or some other random error.
I have tried those commands so far in Shell:
mount -o remount,rw /system
mount -o remount,rw -t ext4 /dev/block/bootdevice/by-name/system /system
All commands have been tried on the three available kernels.
Any help is much appreciated!