Go Back   Android Forums > Android Phones > Motorola Droid > Droid - All Things Root
Droid - All Things Root Rooting, ROMS, Overclocking, etc.

test: Reply
 
LinkBack Thread Tools
Old June 4th, 2010, 11:33 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jun 2010
Location: Simi Valley, CA
Posts: 20
 
Device(s): Motorola Droid X
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default "Read-Only File System" when trying to ADB Push an App

Rooted my Droid for the first time earlier today, and installed the NexBeast using the handy-dandy Mod Manager. So far everything has been great, but I'm having problems installing non-Market Apps.

I'm trying to install a Live Wallpaper from http://androidforums.com/all-things-root-droid/63554-coheed-cambria-live-wallpaper.html, but I keep receiving an error.

Here is a copy from the CMD console:
Quote:
D:\Program Files (x86)\android-sdk-windows\tools>adb push LiveWallpapers.apk /system/app/LiveWallpapers.apk

failed to copy 'LiveWallpapers.apk' to '/system/app/LiveWallpapers.apk': Read-only file system
I also tried the other method, which says the file is already there?

Quote:
D:\Program Files (x86)\android-sdk-windows\tools>adb shell
# su
su
# mount -o,rw remount /dev/block/mtdblock4 /system/
mount -o,rw remount /dev/block/mtdblock4 /system/
Usage: mount [-r] [-w] [-o options] [-t type] device directory
# cp /sdcard/LiveWallpapers.apk /system/app/LiveWallpapers.apk
cp /sdcard/LiveWallpapers.apk /system/app/LiveWallpapers.apk
cp: cannot create '/system/app/LiveWallpapers.apk': File exists
If it's already there, what else do I need to do? It doesn't show up under Applications>Manage Applications OR under the Market Downloads.

I HAVE checked the "Unknown Sources" box, but still nothing. Any ideas? Thanks!

Advertisements
Grimshak is offline  
Reply With Quote
sponsored links
Old June 4th, 2010, 11:34 PM   #2 (permalink)
Superuser
 
Fabolous's Avatar
 
Join Date: Nov 2009
Location: Illinois
Posts: 3,635
 
Device(s): Galaxy Nexus, Sensation 4G, Nexus S, Droid X, XOOM 4G, Touchpad
Carrier: Not Provided

Thanks: 134
Thanked 2,145 Times in 699 Posts
Default

You need to mount the system as R/W first, before you push:

Code:
adb shell sysrw
adb push blah blah blah
adb shell sync
adb shell sysro
__________________
Overclocked Rooted Droid X with ApeX


Fabolous is offline  
Reply With Quote
Old June 4th, 2010, 11:45 PM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jun 2010
Location: Simi Valley, CA
Posts: 20
 
Device(s): Motorola Droid X
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Fabolous View Post
You need to mount the system as R/W first, before you push:

Code:
adb shell sysrw
adb push blah blah blah
adb shell sync
adb shell sysro
Awesome! It pushed correctly. However, I am a SUPER newbie to this, and I'm not sure what to do after I've finished the ADB part of it. On the phone, do I need to install it? Again, I checked in the Market Downloads and under Manage Applications (as well as Live Wallpapers, just in-case), and I don't see anything. I know this is gonna be something simple, I just don't quite know what I'm doing yet.

Thanks again!
Grimshak is offline  
Last edited by Grimshak; June 4th, 2010 at 11:45 PM. Reason: Added a thank you!
Reply With Quote
Old June 4th, 2010, 11:55 PM   #4 (permalink)
Superuser
 
Fabolous's Avatar
 
Join Date: Nov 2009
Location: Illinois
Posts: 3,635
 
Device(s): Galaxy Nexus, Sensation 4G, Nexus S, Droid X, XOOM 4G, Touchpad
Carrier: Not Provided

Thanks: 134
Thanked 2,145 Times in 699 Posts
Default

You should just press menu, wallpapers, live wallpapers, and it should be there.
Fabolous is offline  
Reply With Quote
Old June 4th, 2010, 11:56 PM   #5 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jun 2010
Location: Simi Valley, CA
Posts: 20
 
Device(s): Motorola Droid X
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Fabolous View Post
You should just press menu, wallpapers, live wallpapers, and it should be there.
I just realized it replaced one I had already on there...god I feel dumb.

Thanks again.
Grimshak is offline  
Reply With Quote
Old February 7th, 2011, 03:27 PM   #6 (permalink)
Junior Member
 
Join Date: Jan 2010
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Fabolous View Post
You need to mount the system as R/W first, before you push:

Code:
adb shell sysrw
adb push blah blah blah
adb shell sync
adb shell sysro
Mind spelling out the actual commands for an Android newbie?

I'm trying to push a file to my Android device but I get the same error as the original thread starter. Then someone said I had to try doing the adb remount command and it doesn't seem to work :/

Code:
D:\Test\android-sdk-windows\platform-tools>adb push D:\tun.ko \system\lib\modules
failed to copy 'D:\tun.ko' to '\system\lib\modules': Read-only file system

D:\Test\android-sdk-windows\platform-tools>adb remount
remount failed: Operation not permitted
Carnivex is offline  
Last edited by Carnivex; February 7th, 2011 at 03:32 PM.
Reply With Quote
Old January 19th, 2012, 04:40 PM   #7 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 1 Time in 1 Post
Default

Those are the actual commands, to use on your PC.

However, when I do

adb shell sysrw

I get

sysrw: not found

Any ideas?

GaJ
GreenAsJade is offline  
Reply With Quote
Old January 19th, 2012, 04:44 PM   #8 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Grimshak View Post
Rooted my Droid for the first time earlier today, and installed the NexBeast using the handy-dandy Mod Manager. So far everything has been great, but I'm having problems installing non-Market Apps.

I'm trying to install a Live Wallpaper from http://androidforums.com/all-things-root-droid/63554-coheed-cambria-live-wallpaper.html, but I keep receiving an error.

Here is a copy from the CMD console:


I also tried the other method, which says the file is already there?



If it's already there, what else do I need to do? It doesn't show up under Applications>Manage Applications OR under the Market Downloads.

I HAVE checked the "Unknown Sources" box, but still nothing. Any ideas? Thanks!
Your remount command failed.

This is because -o,rw is not valid syntax for mount

So if for no other reason than this, you were sure to fail with that attempt...

GaJ
GreenAsJade is offline  
Reply With Quote
Old January 19th, 2012, 04:46 PM   #9 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 1 Time in 1 Post
Default

I did

# su
# mount

(which gave me a list of the mounts, so I could choose the right mount points for /system, which was not mtdblock4 for me, but rather mtdblock1)

# mount -rw -o remount /dev/block/mtdblock1 /system

and after that the adb push worked.

Yay, thanks for the hints in this thread.

(still don't know why adb shell sysrw didn't work)

GaJ
GreenAsJade is offline  
Reply With Quote
Old January 21st, 2012, 06:46 PM   #10 (permalink)
A guide with guides
 
teddyearp's Avatar
 
Join Date: May 2010
Location: Randle, WA
Posts: 2,316
 
Device(s): HTC® HTC6525LVW, Samsung® SCH-I515 & Motorola® XT907
Carrier: Verizon

Thanks: 721
Thanked 802 Times in 475 Posts
Default

Quote:
Originally Posted by GreenAsJade View Post
(still don't know why adb shell sysrw didn't work)

GaJ
That's because "sysrw" is not an adb command. It is usually a .sh script which contains the longer command that some developers have included in their roms to be run from a terminal on the phone. However while in adb shell a "adb remount" usually does the same thing.
teddyearp is offline  
Reply With Quote
sponsored links
Old February 28th, 2012, 08:10 PM   #11 (permalink)
Junior Member
 
TFroehlich4368's Avatar
 
Join Date: Sep 2011
Location: Kalamazoo, Michigan
Posts: 69
 
Device(s): Samsung Galaxy Prevail
Carrier: Not Provided

Thanks: 5
Thanked 8 Times in 2 Posts
Default

Quote:
Originally Posted by Fabolous View Post
You need to mount the system as R/W first, before you push:

Code:
adb shell sysrw
adb push blah blah blah
adb shell sync
adb shell sysro
I get a "permission denied" when I adb shell sysrw
TFroehlich4368 is offline  
Reply With Quote
Old February 29th, 2012, 03:20 PM   #12 (permalink)
A guide with guides
 
teddyearp's Avatar
 
Join Date: May 2010
Location: Randle, WA
Posts: 2,316
 
Device(s): HTC® HTC6525LVW, Samsung® SCH-I515 & Motorola® XT907
Carrier: Verizon

Thanks: 721
Thanked 802 Times in 475 Posts
Default

Quote:
Originally Posted by TFroehlich4368 View Post
I get a "permission denied" when I adb shell sysrw
Read the post right above yours.
teddyearp is offline  
Reply With Quote
Old December 23rd, 2013, 10:22 AM   #13 (permalink)
New Member
 
Join Date: Sep 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know this is a necro thread but I thought I would chime in for those that need help since this comes up as the top on google search for "Read-Only ADB push".

If you're running into this:
1. Make sure you are rooted with SuperUser of some type installed
2. On your machine with adb installed, do the following:
[HIGH]
--# adb devices
(make sure your device shows up)
--# adb root
(this restarts the adb daemon as root on the phone)
--# adb push blah bleh
(this should now run without issue)
[/HIGH]
You DO NOT need to remount the /system symlink with rw permissions. A lot of people will do this and forget to remount it back to ro permissions.
malhovic is offline  
Reply With Quote
Old September 6th, 2014, 11:39 AM   #14 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

necro thread revived!

apparently the method above is deprecated on my mostly stock nexus 5:
Chads-MacBook-Pro:~ chadly$ adb root
adbd cannot run as root in production builds
back to google search results
chadstone30 is offline  
Reply With Quote
Reply
Tags
adb, apk, droid, live, nexbeast, push, root, wallpaper


Go Back   Android Forums > Android Phones > Motorola Droid > Droid - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:39 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.