Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
ajhutton
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Apr 2011
Default [Q] /system/ r/w mounting on Legend.

Hey,
I'm having difficulty mounting the /system/ directory as read/write on my Legend.

I've tried both "adb remount" and "mount -o remount,rw /dev/block/mtdblock3 /system".

The mount appears to succeed but when I try to do anything I get errors (eg; "touch: /system/test: Out of memory" and "mkdir failed for /system/test, Out of memory")

ro.secure=0 is set in my /default.prop

Code:
# cat /default.prop
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.service.adb.enable=1
HBOOT: 1.01 S-ON
Does it need to be S-OFF to do so? If so, is it possible to S-OFF my Legend?

Thanks.
 
ThauExodus
Old
(Last edited by ThauExodus; 1st April 2011 at 06:57 AM.)
#2  
ThauExodus's Avatar
Senior Member
Thanks Meter 47
Posts: 128
Join Date: Sep 2010

 
DONATE TO ME
You are s-on, so you can't write on /system
You need to have s-off, but you are on hboot 1.0+ where s-off isn't possible yet
The Following User Says Thank You to ThauExodus For This Useful Post: [ Click to Expand ]
 
ajhutton
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Apr 2011
Thanks ThauExodus ,

So am I right in thinking that when I flash a rom (let's say "update-cm-7.0.0-RC4-Legend-signed.zip"), I am re-flashing the /system partition?

If that's the case, can I somehow modify the rom before flashing to add custom things? If I extract it and insert a directory called "/system/test", when I flash it will /system/test exist?

A practical example being, if I populate the hosts file (/system/etc/hosts) with AdFree entries then somehow repackage and flash the rom will it work?
 
branch8
Old
#4  
branch8's Avatar
Member
Thanks Meter 4
Posts: 35
Join Date: Nov 2010
Just use Blay0's overlay filesystem (flash the zip with CWM) and you will be able to do what you want :)
I9100 - Stock ICS & N8010 - Stock JB 4.1.1
 
abhishek92
Old
#5  
Junior Member
Thanks Meter 3
Posts: 20
Join Date: Dec 2010
I am S-on and found no reason for s-off..for modifying anything in /system..i use adb in recovery mode..this serves the purpose..
 
smashingembryos
Old
#6  
Junior Member
Thanks Meter 2
Posts: 11
Join Date: Mar 2011
Location: ontario
Default that sounds appealing

Quote:
Originally Posted by abhishek92 View Post
I am S-on and found no reason for s-off..for modifying anything in /system..i use adb in recovery mode..this serves the purpose..
does that stick? (e.g. remove system apps like stocks)
what are you doing that on? (legend-hboot-os ect)
 
abhishek92
Old
#7  
Junior Member
Thanks Meter 3
Posts: 20
Join Date: Dec 2010
yes it does stick..when u enter recovery mode..u r allowed to write to /system..ul have to boot into ur custom recovery mode(clockwork/amon)..and then use adb shell from the command line on ur comp...jus search on how to use adb shell in recovery mode..
The Following User Says Thank You to abhishek92 For This Useful Post: [ Click to Expand ]
 
smashingembryos
Old
#8  
Junior Member
Thanks Meter 2
Posts: 11
Join Date: Mar 2011
Location: ontario
Default thank you sir

Quote:
Originally Posted by abhishek92 View Post
yes it does stick..when u enter recovery mode..u r allowed to write to /system..ul have to boot into ur custom recovery mode(clockwork/amon)..and then use adb shell from the command line on ur comp...jus search on how to use adb shell in recovery mode..
Thank you for the information, from what i have been reading i was convinced that could be a viable way to go about things. I have been reading about adb shell and recovery, unfortunately i find sites like adb for beginners a little rough for an actual beginner-well, not as informative as typing help into the cmd prompt.
As of right now i am trying to compile a list of commands specific to the legend structure.
That is why i would ask what build, hboot or any phone specific info about your phone so i can get a better grasp on how things change from one system\setup to the next.

Following instructions is one thing, i want to understand what i am doing.
 
billyJAM
Old
#9  
Member
Thanks Meter 4
Posts: 90
Join Date: Jun 2007
Location: Cape-Town
Before I flash a new ROM I just open the downloaded ROM zip on the PC and delete apps I don't want from the system directory. Delete stocks, quick office etc. Simplest method for Windows users who don't want to use adb.

Sent from my HTC Legend using XDA App
HTC Legend
Ogo2 New Sense RC4

Previous Devices:
i-mate JASJAR 64mb (WM6.1 Tomal v8.71)
i-mate JAM (Stock WM2003SE WWE)
The Following 2 Users Say Thank You to billyJAM For This Useful Post: [ Click to Expand ]
 
smashingembryos
Old
#10  
Junior Member
Thanks Meter 2
Posts: 11
Join Date: Mar 2011
Location: ontario
Quote:
Originally Posted by billyJAM View Post
Before I flash a new ROM I just open the downloaded ROM zip on the PC and delete apps I don't want from the system directory. Delete stocks, quick office etc. Simplest method for Windows users who don't want to use adb.

Sent from my HTC Legend using XDA App

wouldnt it be nice if we could do that with our ota updates and just skip the whole rooting process

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Go to top of page...