I'm trying to adb push a zip file onto my Prime so I can install the ROM, but adb push always fails, saying that the file system is read only.
What can I do to change this?
Please post full adb command which you are using.
Johnotronz said:
I'm trying to adb push a zip file onto my Prime so I can install the ROM, but adb push always fails, saying that the file system is read only.
What can I do to change this?
Click to expand...
Click to collapse
Send the file to a writable location?
adb push file.ext /sdcard/
or
adb push file.ext /data/local/
I had been using the "adb push file.ext /sdcard/" command, and it returned "Failed to copy....blah: Read-only file system."
This also happens when using "adb push file.ext /data/local"
Try adb push file.ext /mnt/sdcard/
Johnotronz said:
I had been using the "adb push file.ext /sdcard/" command, and it returned "Failed to copy....blah: Read-only file system."
This also happens when using "adb push file.ext /data/local"
Click to expand...
Click to collapse
?
what happens if you type:
Code:
adb remount
First?
Related
I have a few questions on some of these steps:
On the checksum part below, it says to redownload the file if the checksum does not match, does that mean to re push the misc.img and run step three again.
Step 3
This step will gain temp root and flash the custom misc.img. Run:
adb shell
Now the shell should display "$".
Run:
/data/local/psneuter
You will now be kicked out of adb, and adb will restart as root. Let’s confirm the md5 of misc.img:
adb shell
At this point, the shell should display "#".
Run:
/data/local/busybox md5sum /data/local/misc.img
Output should be "c88dd947eb3b36eec90503a3525ae0de." If it’s anything else, re-download the file and try again.
On step 4 below how do I put the file on the phone? Can I just use windows and copy the file to the sd card?
Step 4
Here you will rename the downgrade RUU as PG05IMG.zip and place it on your SD card. Then, run the following command:
Ok in step 3 below, it says if the checksum does not match to delete and re-download. How do I delete the file? Is there a command to do this? I assume re-downloading refers to pushing the file again correct?
Step 6
Please pay attention – this is very important. This step involves a small chance of bricking if you mess up.
To push the eng bootloader:
adb push hbooteng.nb0 /data/local/
adb shell
/data/local/busybox md5sum /data/local/hbooteng.nb0
If the output does not match "6991368ee2deaf182048a3ed9d3c0fcb" exactly, stop, delete it, and re-download it. Otherwise, continue.
to delete in adb you need to use the command "adb shell" and the command in there is "rm /path/to/file" no quotes. This is where being a Linux user helped me out lol. As for moving the file, yes. Move it to SD any way at all that you'd like.
kdb424 said:
to delete in adb you need to use the command "adb shell" and the command in there is "rm /path/to/file" no quotes. This is where being a Linux user helped me out lol. As for moving the file, yes. Move it to SD any way at all that you'd like.
Click to expand...
Click to collapse
Is it "adb shell" one one line and then "rm /path/to/file" on next line or is it all one line like this "adb shell rm /path to file""
Strife21 said:
Is it "adb shell" one one line and then "rm /path/to/file" on next line or is it all one line like this "adb shell rm /path to file""
Click to expand...
Click to collapse
It's all on one line. FYI you only have to adb shell, once. In the tutorial for the root, he has you doing 'adb shell reboot bootloader'. However, you are already in adb shell, at that point. All you need to type is 'reboot bootloader'.
Hi guys .. i am using htc hero(t-mobile g2 touch)..i tried flashing clockworkmod recovery using adb,rom manager and terminal emulator..here is what i got
adb--cannot stat 'recovery-clockwork-2.5.0.7-hero.img': no such file or directory
for terminal emulator--error no such file or directory
for rom manager--unable to contact server
please help ..is there other way or did i make mistake??
thanks in advance
I'm a noob but did you by chance forget to Root your device?
Is it a .zip or .img file?
I'll give you a simple tutorial
1. Right-Click platform-tools and click Open CMD from here.
2. To be sure the device is detected do
adb devices
Click to expand...
Click to collapse
2.1 (optional) If no device is detected follow this tutorial.
3. extract the zip file to platform-tools and put the .img file in the same folder.
4. type the following commands:
adb push recovery-clockwork-2.5.0.7-hero.img /data/local/
adb push flash_image /data/local/
adb shell chmod 777 /data/local/recovery-clockwork-2.5.0.7-hero.img
adb shell chmod 777 /data/local/flash_image
adb shell rm /data/local/rights/mid.txt
adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
adb reboot
Click to expand...
Click to collapse
5. the device will reboot wait until it is on the homescreen again.
6. then type the following command:
adb shell /data/local/flash_image recovery /data/local/recovery-clockwork-2.5.0.7-hero.img
Click to expand...
Click to collapse
7. and you are done
I accidentally formatted my phone before i installed the rom. Now i need to adp push the rom onto the phone. ADB says the following when i try.
C:\adb>adb -s emulator-5554 push dlx.zip /dlx.zip
failed to copy 'dlx.zip' to '/dlx.zip': Read-only file system
wack0jacko said:
I accidentally formatted my phone before i installed the rom. Now i need to adp push the rom onto the phone. ADB says the following when i try.
C:\adb>adb -s emulator-5554 push dlx.zip /dlx.zip
failed to copy 'dlx.zip' to '/dlx.zip': Read-only file system
Click to expand...
Click to collapse
I just got this:
C:\adb>adb push dlx.zip /sdcard/
1887 KB/s (914054797 bytes in 472.833s)
The file is 900mb. What am I doing wrong?
wack0jacko said:
I just got this:
C:\adb>adb push dlx.zip /sdcard/
1887 KB/s (914054797 bytes in 472.833s)
The file is 900mb. What am I doing wrong?
Click to expand...
Click to collapse
adb push <Rom directory> /sdcard/
hi
i need to push a file with adb
but adb push give me permision deny
how can fix this?
my device is rooted but adb show me device not rooted!
Is USB Debugging on?
yes it's on
amir_n71 said:
yes it's on
Click to expand...
Click to collapse
In some rom adb permission isn't root by default. I think it's a line in default.prop that enable root in adb. Something like
ro.adb.secure = 0
if you don't want to edit that file just push file to sdcard or temporary folder then use adb shell (with root) to copy that file to proper location.
but 2 days ago adb work like acharm in this rom!
amir_n71 said:
but 2 days ago adb work like acharm in this rom!
Click to expand...
Click to collapse
That's strange. Maybe in your rom adb push works only when file doesn't exist.
no. i push framework-res.apk 5 days ago & it work! framework-res.apk is exist already
but i test this file again & permision deny!
How about su before the command? Or adb remount, to get write access?
Sent from my LG-P760 using xda app-developers app
I have the same problem too and remounting the adb doesn't solve it.
I'm still searching for a fix. I can only pull but not push.
If y'all are on a stock rom, then you can't push anything directly into the system (unless your bootloader is unlocked & you modify the boot.img). I use the following mount command
mount -o remount /system
First push the file to the sdcard
adb push blablabla /sdcard
then adb shell it to the correct location.
It's a lot of bs but it's the only way I got it to work with stock.
Here's an example of a batch script I made
Code:
adb push LGSystemUI.apk /sdcard/
adb shell su -c "mount -o remount /system"
adb shell su -c "cp /sdcard/LGSystemUI.apk /system/app/"
adb shell su -c "chmod 644 /system/app/LGSystemUI.apk"
adb shell su -c "killall com.android.systemui"
Sent from my LGMS769 using XDA Premium 4 mobile app
I noticed on some of the recent AOSP ROMs (AICP and Vanir that I remember for sure) that trying to "adb push <file> /sdcard/" results in a basic permission denied error. I tried "adb push <file> /storage/emulated/0/" and got a slightly more specific error saying that the filesystem was mounted as read only. When I tried "adb push <file> /data/media/0/" it went through as expected. I'm rooted with SuperSU 2.14, enabled USB debugging, and granted root to both apps and adb. I tried doing "adb root" and "adb remount" which should've given root and remounted /system as read-write, but I got the same results (using adb and fastboot from the most recent SDK).
It works fine in recovery (TWRP 2.8.0.2), but is there a way to fix it so that the /sdcard/ path works again?