[MOD] full r/w access via overlay filesystem (any ROM)

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
1. Just disable overlay via adb (check 1st post).
2. Nope. Ext2/3 is necessary (for now). What partition do you have in mind?
3. Right.
 

maxq1

Senior Member
May 28, 2010
541
175
0
With Sansa @Winterfell
wooha! some more clarifications...

  1. if i do that, data written to the overlay is still there, right? if so & if i want to try out another kernel/rom, do i need to wipe whatever partition the overlay was in? the process will then be a) wipe partition, b) re-enable overlay then c) install new rom/kernel. is that it?
  2. i was hoping plain ol' fat so i don't need to re-partition my sd :D
  3. haven't been this giddy to have my question answered since i asked my then-fiancee to marry me :D:D

thanks for your patience thus far, man!
 

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
1. Yep. You can delete just /data/sysrw or sysrw directory on your sdcard and all your overlay data are gone. If you test another ROM it is always good to wipe.
2. Nope. Not gonna happen. AUFS does not support FAT. Besides, you can not put system files to a FAT partition because you can't set permissions/ownership of files and you can't do symlinks for example...
3. Its only a phone ;)
 

maxq1

Senior Member
May 28, 2010
541
175
0
With Sansa @Winterfell
thanks for enlightening!

Its only a phone
hehe. just exaggerating, my man! but honestly, this + kickass rom + OC kernel = AWESOMENESS!

also, isn't there a potential for a pseudo-sys2sd for this (aside from the nandroid alternative thingy)? i'm thinking this because after enabling overlay on your sd then installing apps (particularly those that need to be on internal memory/storage for their widgets to work) to phone, the installations essentially should be on sd, right (overlay on sd, ergo anything on overlay is on sd)? or am i just getting ahead of myself here? :confused:
 

esset

Senior Member
Jul 14, 2008
67
3
0
Right. What am I doing wrong?

I reboot into Recovery mode with Clockworkmod.
I install the .zip by using the menuthingy in recovery-mode.
Then I mount /system using adb on my computer and when I write "adb-windows.exe shell aufs --enable" I get "aufs: not found" returned.

Using the ROM in my sig.
Kernel: 2.6.29-5f084974 ([email protected] #1)
 

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
Hmm, aufs is in /system/xbin. Maybe you don't have it in your PATH. Check your PATH variable or run aufs with absolute path.

Sent from my HTC Legend using XDA App
 

esset

Senior Member
Jul 14, 2008
67
3
0
Hmm, aufs is in /system/xbin. Maybe you don't have it in your PATH. Check your PATH variable or run aufs with absolute path.

Sent from my HTC Legend using XDA App
Thanks.

"/system/xbin/aufs --enable" gives me
Code:
Enabling read-write /system overlay...
touch: /data/local/dosysoverlay: No such file or directory
Please reboot your phone for changes to take effect...
Should it work like this or did I miss something with installing dosysoverlay? :p
EDIT: looks like I can delete stuff from /system. Cool :)
EDIT2: And on reboot the stuff I deleted came back. Hmmm. (tried deleting Youtube.apk)
 
Last edited:

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
This probably means you don't have /data/local directory (yet) because you just wiped your data partition. On first boot (after wipe) it will be created and then you can do "aufs --enable" to create /data/local/dosysoverlay... no need to do that from recovery, just hook up you gizmo and issue:
Code:
adb shell aufs --enable
...no need to actually reboot your gizmo:
Code:
adb shell stop zygote
adb shell /etc/init.d/70aufs
adb shell start zygote
...these will stop the entire framework (screen goes black), do the overlay and start framework again - you will see your boot animation again.

EDIT: You are running run-parts from init.rc right?
 
Last edited:

esset

Senior Member
Jul 14, 2008
67
3
0
This probably means you don't have /data/local directory (yet) because you just wiped your data partition. On first boot (after wipe) it will be created and then you can do "aufs --enable" to create /data/local/dosysoverlay... no need to do that from recovery, just hook up you gizmo and issue:
Code:
adb shell aufs --enable
...no need to actually reboot your gizmo:
Code:
adb shell stop zygote
adb shell /etc/init.d/70aufs
adb shell start zygote
...these will stop the entire framework (screen goes black), do the overlay and start framework again - you will see your boot animation again.
Alright, now I didn't get the error from dosysoverlay for the first line. Now I got error from issuing "/etc/init.d/70aufs" - "/etc/init.d/70aufs: not found".

EDIT: You are running run-parts from init.rc right?
I'm sorry, what? I'm not so greatly into linux/unix world :p
 

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
1st your system should meet the requirements (1st post) then I can help U.

One should at least know what to do if he/she gets an error saying "File xyz not found." or "xyz: Permssion denied." It's the same as you would learn how to slice a loaf of bread... you don't ask how to do it when you buy another one at some other store... right?
 

esset

Senior Member
Jul 14, 2008
67
3
0
Oh wow, totally missed out on checking if I had the "# run-parts integrated in init.rc script (/etc/init.d)".
But from the sounds of it, I can't ask you to help me set that up?
 

TheGrammarFreak

Senior Member
Jul 29, 2010
2,820
678
0
twitter.com
I just set it up on build 25, it was a bit of a pain to work out. Instead of
Code:
aufs --enable
do
Code:
/system/xbin/aufs --enable
I'd like to point out that this solution is in this very thread.
 

qzem

Senior Member
Jun 23, 2010
1,594
1,030
0
bro ...is this will work on cyanogen 6. nightly builds....???????:confused::confused::confused:i checked on superfryo......its not working.....





FOLLOW ME http://smartsreenath.blogspot.com/
SuperFroyo has this already build in overlay. Developer of superfroyo was actually forced to include this script to get his rom working properly on other Legends.

EDIT: corrected my post because of false statement.
 
Last edited:

smartsreenath

Senior Member
Apr 3, 2010
311
19
0
trivandrum
smartsreenath.blogspot.com
I just set it up on build 25, it was a bit of a pain to work out. Instead of
Code:
aufs --enable
do
Code:
/system/xbin/aufs --enable
I'd like to point out that this solution is in this very thread.
bro not working........
i tried whitetigerdk rom .....i easily put ubuntu in my legend....
but cm6 after installing the zip and by typing cmds that you given .....shows read and write / system overlay already enabled......

but i can't put ubuntu on my mobile........





FOLLOW ME http://smartsreenath.blogspot.com/
 

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
I just set it up on build 25, it was a bit of a pain to work out. Instead of
Code:
aufs --enable
do
Code:
/system/xbin/aufs --enable
I'd like to point out that this solution is in this very thread.
I changed installation instructions in 1st post for less confusion and more rebooting ;) Ppl are very fond of rebooting (if it doesn't work let's reboot... twice) and not so happy if they need to find something out on their own :rolleyes:

I would release much more to this community but I don't have the nerves for "It doesn't work!", "It gives me an error.", "Can you guide me step by step.", "Can you tie my shoelaces." and alike.

SuperFroyo has this already build in overlay. Developer of superfroyo was actually forced to include this script, but I think he had to modify it, to get his rom working properly on other Legends.
Hmm, what exactly was changed? I'm asking because my script is supposed to be generic.
 

TheGrammarFreak

Senior Member
Jul 29, 2010
2,820
678
0
twitter.com
I would release much more to this community but I don't have the nerves for "It doesn't work!", "It gives me an error.", "Can you guide me step by step.", "Can you tie my shoelaces." and alike.
I'm not being funny, but I can deal with that if you like. I'm no expert, but I want to learn. So I'll happily deal with noobs for you. I learn how all your MODs work, answer the stupid questions, and the community benefits from your work.


----------------------------------------



bro not working........
i tried whitetigerdk rom .....i easily put ubuntu in my legend....
but cm6 after installing the zip and by typing cmds that you given .....shows read and write / system overlay already enabled......

but i can't put ubuntu on my mobile........
Keep trying (don't repeat the same commands over and over though), the scripts are meant for use in recovery mode. Look through all zips/scripts you're using, understand what they do and you'll be able to get it to work. Also, when you say CM 6 do you mean Azure, nightlies or "SuperFroyo"? Also, ease off with the "...............". It makes it really hard to follow what you're saying. Help me to help you, yeah?
 
Last edited:

maxq1

Senior Member
May 28, 2010
541
175
0
With Sansa @Winterfell
OP/guys..finally got some time to give this a go but i'd like to confirm first:

  1. is a swap partition necessary for overlay to work?
  2. any suggestions on how much to allocate for the ext partition? would 512mb be enough?
  3. would partitioning my sd card under gparted (in ubuntu) do? i just feel more comfy doing so on a pc than on my device

thanks in advance to anyone who could help!
 
Last edited: