permission denied on /sdcard - Galaxy S I9000 Q&A, Help & Troubleshooting

Hi,
I cannot copy update.zip to my device using adb.
from my comman prompt:
C:\asdk\tools>adb devices
List of devices attached
9000b0c52740 device
=> connected
C:\asdk\tools>adb push root.zip /sdcard/update.zip
failed to copy 'root.zip' to '/sdcard/update.zip': Permission denied
=> the problem
C:\asdk\tools>adb shell
$ su
su
# ^C
=> popup on phone, access granted
C:\asdk\tools>adb push root.zip /sdcard/update.zip
failed to copy 'root.zip' to '/sdcard/update.zip': Permission denied
=> nothing changed
I have JM5, SamSet 1.9d. Busybox installer is installed.
busybox installer says that phone is rooted, but when I try to install busybox it says error. nand is not unlocked or remount is not possible.
If I use windows explorer I can copy an update.zip to /sdcard but then recovery mode says "cannot open".
What wrong?
How can this be fixed?
Thanks in advance
HolyFreak

Related

[Q] adb mount system help

Hi guys i have read around and i have seen that some experienced the same problem but i couldn't find and answer so here i go: i am trying to push an app to /system/app but it seems that i can't remount the system as read-write:
C:\AndroidSDK\tools>adb push app.apk /system/app
failed to copy 'app.apk' to '/system/app/app.apk': Read-only file system
C:\AndroidSDK\tools>adb remount
remount failed: Operation not permitted
C:\AndroidSDK\tools>adb shell sysrw
sysrw: not found
do you think you can help, please?
i have superuser installed and busy box but when i try to update busy box it gives me an error saying that: The application failed, either because your device is not nand unlocked or we were unable to remount....

[Q] Can't mount internal sd card

Hi everyone,
I have the famous problem described here http://forum.xda-developers.com/showthread.php?t=1253036
So I'm trying to repair my internal sd card with these
Code:
adb shell
mount /sdcard
su
parted /dev/block/mmcblk0
rm 1
rm 2
rm 3
quit
With "mount /sdcard" I got "can't find /sdcard in /etc/fstab"
With "su" I got "Permission denied"
With "parted /dev/block/mmcblk0" I got "parted: not found"
I have flashed a JVP ROM with speedmodkernel and CWM v2.5.1
Help Please!!
Do you have a terminal program on your phone? Maybe you can try to connect to localhost and try from there.
Because of the Permission denied message: your phone is rooted?
g00fy64 said:
Do you have a terminal program on your phone? Maybe you can try to connect to localhost and try from there.
Because of the Permission denied message: your phone is rooted?
Click to expand...
Click to collapse
I don't have a terminal program on my phone because I have a boot loop issue, so I can only get to download and recovery mode.
From CWM v2.5.1 I've done "Advanced SpeedMod Features" --> "ROOT / Install Superuser" --> "Simple: install busybox+su" so I think my phone is rooted

V8 rooted but no CWM

I was on v8 non-rooted.
I followed the instructions here to the letter:
http://forum.xda-developers.com/showthread.php?t=1566729&page=4
didn't have any issues at all, no errors.
I'm confirmed on V8 and do have root but can't access CWM. Attempting to run the new AIO again gives the following:
Root and Recovery for ZV8
Press any key to continue . . .
* daemon not running. starting it now *
* daemon started successfully *
Device found
Mounting Device
remount failed: Operation not permitted
Pushing Root Permissions
Unable to chmod /system/bin/su: Read-only file system
7781 KB/s (5345280 bytes in 0.670s)
Unable to chmod /system/xbin/busybox: Read-only file system
Installing CWM Recovery
/dev/block/mmcblk0p14: cannot open for write: Permission denied
Remove Trash
rm failed for /system/etc/install-recovery.sh, Read-only file system
rm failed for /system/recovery-from-boot.p, Read-only file system
rm failed for /data/local.prop, No such file or directory
CWM Recovery!!!
Press any key to continue . . .
Any ideas how to get to CWM?
Looks like you need to root again after your upgrade. Run MT's Root&RecoveryAIO.bat again and select the "Root ZV8" option.
[EDIT]
My bad. That's what you are trying to do! I've been up all night and am tired. Did you get any errors when you ran the "Prepare for Update" option before you upgraded? That option actually pushes the superuser files back to your phone and the "Root ZV8" option just goes back and set's the permissions. You can try manually running these commands with adb first.
Files\adb push Files\zergrush /data/local/tmp/zergrush
Files\adb shell "chmod 755 /data/local/tmp/zergrush"

ADB Help

I have searched but haven't been able to find a solution to my problem.
I am on the latest CM9 nightly and I have installed ADB on my Windows 7 64bit computer and it seems to be working but when I try and use the 'push' command, I get this "C:\android-sdk-windows\platform-tools>adb push Trebuchet.apk /system/app
failed to copy 'Trebuchet.apk' to '/system/app/Trebuchet.apk' : Read-only file system"
I have tried the 'Remount' command, but that just throws back "Remount failed: Operation not permitted"
Any help is much appreciated.
You need to change permissions on the system folder
C:\android-sdk-windows\platform-tools>adb remount
then
C:\android-sdk-windows\platform-tools>adb push Trebuchet.apk /system/app
Didn't see that you had tried this !!
if you have root explorer or such navigate to system directory and change permissions to r/w...
otherwise...
adb shell
su
#mount -o rw,remount /dev/block/mtdblock3
Thank you for the help, however it still isn't working. I used the commands;
adb shell
su
#mount -o rw,remount /dev/block/mtdblock3
and it didn't throw me an error, but then when I tried to push the Trebuchet.apk it says the say as before. "failed to copy 'Trebuchet.apk' to '/system/app/Trebuchet.apk' : Read-only file system" "
Try
adb root
It could also be your version of busybox...
running out of ideas but one more...
Actually try this reboot into recovery (I presume you have some type installed), if you have an option to 'mount system' select it and then push the file...
Sent using my fingers and some technology from my HD2
Thank for your help! In the end it was my bad.
I didn't realise that on CM9 nightlies you have to go to Settings > Developer Options > Root Access > Apps and ADB.
Bling

[Q] flash_image via terminal

Is it possible?
I did:
Code:
su
flash_image boot /storage/sdcard1/boot.img
But it give me failed error -1
What's that meaning?
Yes, file locating in root in my external-memorycard. (CM11)

Categories

Resources