fbind - Magisk

GitHub - VR-25/fbind: A versatile Android mounting utility for folders, EXT4 images, LUKS/LUKS2 encrypted volumes, regular partitions and more.
A versatile Android mounting utility for folders, EXT4 images, LUKS/LUKS2 encrypted volumes, regular partitions and more. - GitHub - VR-25/fbind: A versatile Android mounting utility for folders, E...
github.com

Reserved

Archive

Sweet, so this one will start binding automatically on reboot huh? Gonna try.
UPDATE:
Doesn't work mate, i tried "$bind $extsd/mangabird $intsd/mangabird", but it says "/mangabird: not found". The log said "sdcard not found".

For me to no working. Log says all ok. But when i copy some to internal Download, i dont see this file in external Download.
$bind $extsd/.fbind/Download $intsd/Download
Lig:
>>> FOLDER BINDER DEBUG LOG > Thu Jun 15 01:51:22 CEST 2017
Configuration updated. Reboot to apply changes. > Thu Jun 15 01:51:22 CEST 2017
I reboot twice.

khnoizer said:
Sweet, so this one will start binding automatically on reboot huh? Gonna try.
UPDATE:
Doesn't work mate, i tried "$bind $extsd/mangabird $intsd/mangabird", but it says "/mangabird: not found". The log said "sdcard not found".
Click to expand...
Click to collapse
Ok, your issue is simple, mate. If the log says, "SD card not found! Aborting..." try a higher number of seconds. That means your device just takes a little bit longer to mount the external SD card. I've added several zips, each with a different number of seconds to the Downloads page. Try the 15 seconds variant. As you may have noticed, the sooner the bind is performed, the better. I'm currently working on a way to automate that and have only one variant for all devices, regardless of mounting time.
koko115 said:
For me to no working. Log says all ok. But when i copy some to internal Download, i dont see this file in external Download.
$bind $extsd/.fbind/Download $intsd/Download
Log:
>>> FOLDER BINDER DEBUG LOG > Thu Jun 15 01:51:22 CEST 2017
Configuration updated. Reboot to apply changes. > Thu Jun 15 01:51:22 CEST 2017
I reboot twice.
Click to expand...
Click to collapse
Hmm... have you created the target folders manually in the external SD card? @khnoizer, see here? In his case, the SD card is mounted within the 10 seconds mark. Thanks both of you for the reports.

Yes. I created folder Download in extcard.

koko115 said:
Yes. I created folder Diwnload i extcard.
Click to expand...
Click to collapse
Just to be sure...
Code:
$bind $extsd/.fbind/Download $intsd/Download
means you must have the following:
Download folder in your internal SD card
.fbind folder (yes, with the dot) in your external SD card with a Download folder inside of it
is that your setup?

I got permission denied or write error when saving my edited fbind_list.txt on various text editor. Any suggestions?

khnoizer said:
I got permission denied or write error when saving my edited fbind_list.txt on various text editor. Any suggestions?
Click to expand...
Click to collapse
You can copy the file to another location, edit it, then replace the old one. Alternatively, running chmod 777 /data/media/0/fbind_list.txt in a terminal emulator before edition the file should also help. The next version will fix fbind_list.txt permissions automatically upon installation.
Edit: @khnoizer, I use QuickEdit. It asks for root permission in your case to work properly.
Edit 2: sorry, the link is fixed now.

Sorry for a silly question but does this basically do the same as foldermount?

p50kombi said:
Sorry for a silly question but does this basically do the same as foldermount?
Click to expand...
Click to collapse
Yes, but unlike FolderMount, it saves your settings and runs on boot.

@op can you tell me if I bind my download folder(size 5gb) then my internal memory in storage settings will show less then 5gb size or stroage setting still include 5gb in total used memory?

The new version are great, thank you. However, when I tried to bind my android/obb folder, it does got mounted at data/media/0/android/obb, but It's empty at mnt/storage/emulated/0/android/obb. And when I tried to play some games they asked me to download their obb files.

khnoizer said:
The new version are great, thank you. However, when I tried to bind my android/obb folder, it does got mounted at data/media/0/android/obb, but It's empty at mnt/storage/emulated/0/android/obb. And when I tried to play some games they asked me to download their obb files.
Click to expand...
Click to collapse
Here's what you need to do to bind OBB:
1. Install the OBB fix update
2. You don't need to copy your setup to the newer fbind_list.txt this time. Just delete that file and rename your previous_fbind_list.txt back to fbind_list.txt (there are no changes in the template. I just forgot to disable the auto backup/renaming)
3. Add the following lines to fbind_list.txt:
Code:
$bind $extd/Android/obb/YourAppOrGameOBBFolder $obb/YourAppOrGameOBBFolder
$bind $extd/Android/obb/YourAppOrGameOBBFolder $intsd/Android/obb/YourAppOrGameOBBFolder
Or, if you want to bind the entire OBB folder, the following lines are already present in the template (fbind_list.txt) by default:
Code:
$bind $extd/Android/obb $obb
$bind $extd/Android/obb $intsd/Android/obb
4. Reboot
That's a lot of text, I know. Everything will be much simpler in the next version. Stay tuned!

vikasb32 said:
@op can you tell me if I bind my download folder(size 5gb) then my internal memory in storage settings will show less then 5gb size or storage setting still include 5gb in total used memory?
Click to expand...
Click to collapse
That's still an ongoing issue, unfortunately. However, it has nothing to do with the module. Rather, that's a system problem, since other apps don't misreport storage space. I'll look for a workaround.
Edit: I forgot to say that you mentioned the wrong person. "op" shouldn't be there!

VR25 said:
Add this line to fbind_list.txt:
Or, if you want to bind the entire OBB folder, add this one instead:
Click to expand...
Click to collapse
Thank you for the help
i tried your fix, for pairing entire obb, internal pairs to extsd but /sdcard/Android/obb appears to have vanished but I believe it is there because trying to re-create directory results in an error. if I start up a game however, it aplears to be aware of the game data existence but the game freezes. strange?
let me know is you need any specific files, perhaps fstab?

cantenna said:
Thank you for the help
i tried your fix, for pairing entire obb, internal pairs to extsd but /sdcard/Android/obb appears to have vanished but I believe it is there because trying to re-create directory results in an error. if I start up a game however, it aplears to be aware of the game data existence but the game freezes. strange?
let me know is you need any specific files, perhaps fstab?
Click to expand...
Click to collapse
I PM'ed you. Check post #15 for more info. Should I need fstab, I'll ask here. Thanks for the report!

VR25 said:
That's still an ongoing issue, unfortunately. However, it has nothing to do with the module. Rather, that's a system problem, since other apps don't misreport storage space. I'll look for a workaround.
Edit: I forgot to say that you mentioned the wrong person. "op" shouldn't be there!
Click to expand...
Click to collapse
Can you tell me any app which show me my exact free space of internal memory not including bind folders?

vikasb32 said:
Can you tell me any app which show me my exact free space of internal memory not including bind folders?
Click to expand...
Click to collapse
X-plore File Manager

Related

New recovery script "utility" / AUTO PARTITION!!!

MORE INFO IN POST 3 HERE
I am happy to announce the release of my new utility script. This script currently has 11 functions as noted below. It runs in recovery with the help of sdutility which is another script that procures the necessary permissions and file location for some of the features. Some of these options are copied from Cyanogen's various scripts located in his recovery image.
Option 11 will ask you what size to make the swap and ext partitions and then it will partition your sdcard for you using the remaining space for fat32.
The menu looks like this:
Code:
1) Enable SDcard to USB
2) Disable SDcard to USB
3) Upgrade ext2 > ext3
4) Upgrade ext3 > ext4
5) Fix Permissions
6) Repair Filesystem
7) Clear Dalvik-Cache
8) Clear ext partition
9) Backup APPS on ext to FAT32
10) Restore APPS from FAT32 to ext
11) Partition SDcard
Q) Quit Utiltity Menu
Enter Number> _
i am going to get you samuel jackson's wallet from pulp fiction because that is what you are with these scripts.
I think these scripts, along with miketaylor00's fix_rotate script, need to be included in every ROMs /system/bin folders.
Btw, why the . in "./sdcard/sdutility"? I'll probably just move these scripts over to the /system/bin folder on my phone for consistency.
That is an execute command and is required because /sdcard is not in $PATH. sdutility copies the utility script which is the actual script doing all the work to /sbin, setting permissions to 755, and launching it. The point of all of that is with the script on the sdcard it can't partition it without deleting itself.
Fingerlickin said:
That is an execute command and is required because /sdcard is not in $PATH. sdutility copies the utility script which is the actual script doing all the work to /sbin, setting permissions to 755, and launching it. The point of all of that is with the script on the sdcard it can't partition it without deleting itself.
Click to expand...
Click to collapse
I follow... guess I can just keep it on SDcard to run it from.
I looked at the files and figured that's how it worked... I did copy utility to my system/bin and ran it from recovery console. I even backed up my apps using option 9. It gave me an access denied error from line 173 (the fi command in the script). However, it seems it did back up the apps.
dude, this is awesome. im gunna try it out later... using my ubuntu partition.
anyways, when you backup your apps from the ext partition, does it copy over the google apps as well?
backing up the apps copies the /system/sd/app folder to /sdcard/appbackup.
To the best of my knowledge this is NOT a violation because you are backing up your OWN apps including any closed source apps. As long as you don't distribute these apps you are fine.
P.S. I bought a movie tonight and immediately put it in my computer and ripped it. My reason for this is my computer stores all my movies and my xbox streams them to my TV. Nothing wrong with this because I am not distributing the movie to other people.
Fingerlickin said:
backing up the apps copies the /system/sd/app folder to /sdcard/appbackup.
To the best of my knowledge this is NOT a violation because you are backing up your OWN apps including any closed source apps. As long as you don't distribute these apps you are fine.
P.S. I bought a movie tonight and immediately put it in my computer and ripped it. My reason for this is my computer stores all my movies and my xbox streams them to my TV. Nothing wrong with this because I am not distributing the movie to other people.
Click to expand...
Click to collapse
hey finger, let your xbox stream video to my tv as well.
Fingerlickin said:
backing up the apps copies the /system/sd/app folder to /sdcard/appbackup.
Click to expand...
Click to collapse
I feel the urge to clarify this.
mounts both ext and fat32
check to see if both folders exist and creates /sdcard/appbackup if it doesn't
THEN it copies the CONTENTS OF /system/sd/app to /sdcard/appbackup
but david, I'm a good law abiding citizen and that would be illegal.
catch me on gtalk
So has anyone else had the access denied error referencing line 173?
Fingerlickin... any chance you could work with Cyanogen to integrate this with his recovery? I'm thinking it's time for a Cyanogen Recovery v1.5.
Great work fingerlickin
Unasari, the orig plan for this was to make cyan's recovery more noob friendly, hopefully cyan will roll this into his new recovery and add trackball support to it for the mt3g users. Don't be surpised if you see a wrecking crew modified recovey image
Great work I see all of us got something to keep us busy now.
I am looking into the line 173 error now. We need MT3G support before cyan will touch it, working on that too.
I can't recreate the error at line 173. Lets see if others have the problem as well.
Updated to v1.1 see post 3 HERE for details.
This has a possible fix for your line 173 error. I didn't anticipate someone trying to backup apps when they don't have any apps installed on the ext or you try to backup apps after partitioning the card because there obviously isn't a /system/sd/app directory in this case. I have no idea if this will fix your problem or not.
I also included support for ADB (MT3G) YAY
Updated again.
v1.2
updated to fix_permissions v1.29
fix_permissions always has the -r option

[Q] installation error unknown reason-18

HELP!!! every time i try to download and install an app from the market it says "installation error
unknown reason-18"
what could be causing this, and how do i fix it?
I get the same thing. Cyanogenmod 6 RC3. Apps installing to external.
I've tried:
1) rebooting
2) deleting the market data
3) wiping cache
4) wiping dalvik cache
5) nandroid/wipe/restore
6) BART/wipe/restore
7) wipe/reflash
I've heard that installing to internal, and then moving them to external will work. I've also heard that installing one app by adb will fix it to make market work.
And finally I've heard that the following works.
Code:
rm /mnt/secure/asec/smdl2tmp1.asec
I'll be trying a few of these out, starting with the last.
*****::::::EDIT::::::*****
The above code should read:
Code:
su
rm /mnt/secure/asec/smdl2tmp1.asec
Note that in normal text, that's "rm /mnt/secure/asec/smdl2tmp1.asec". For some reason, the CODE tag makes a lower case l look like the number 1.
l
Code:
l
1
Code:
1
I should also mention that I also tried to fix permissions.
The code shown above didn't work. Terminal said that the file didn't exist.
I set it to install apps to "automatic" and that has been working since my first reply.
On the Terminal, enter first "su" and only after that run the command.
hello, i have a Desire NON-rooted and have changed too automatic install on external trough ADB, but i have this problem now suddenly i got unknown reason 18 and nothing will install on external !!! is there any solution i have maybe 20 apps on the external. thanks
yerand said:
HELP!!! every time i try to download and install an app from the market it says "installation error
unknown reason-18"
what could be causing this, and how do i fix it?
Click to expand...
Click to collapse
I had the exact same error message when trying to install the Google Maps update today and it turned out that it was because Google Maps was on the SD Card. I had moved maps to SD yesterday, then when I tried to update it, I got the error you got. I had to
1) switch the install location back to internal
2) move maps back to internal
3) clear market cache
After those 3 steps, I was able to install the update without issue. I guess some apps can not be updated if the are either on the card or maybe if they have been moved to the card.
I have the same error. None of the tips here have worked for me. It seems to be only Angry Birds that wont install...
**EDIT** Just found this -
it's smdl2tmp1.asec (with the letter L before the 2) not smd12tmp1.asec (with the number 1)
Oops!
http://forum.cyanogenmod.com/topic/...all-around-failures/page__p__24608#entry24608
AndyCr15 said:
Just found this -
it's smdl2tmp1.asec (with the letter L before the 2) not smd12tmp1.asec (with the number 1)
Oops!
Click to expand...
Click to collapse
Nice! That's perfect! Spread the word!
AndyCr15 said:
I have the same error. None of the tips here have worked for me. It seems to be only Angry Birds that wont install...
**EDIT** Just found this -
it's smdl2tmp1.asec (with the letter L before the 2) not smd12tmp1.asec (with the number 1)
Oops!
http://forum.cyanogenmod.com/topic/...all-around-failures/page__p__24608#entry24608
Click to expand...
Click to collapse
Hi
Tried with exactly that text (l and not 1) but terminal says "such directory or file does not exist".
Please help...
I love this Forum endless amount of help. Thanks a million, worked like a charm.
I definitely have the same issue, can not browse file smdl2tpm1.aces. Anybody can help me, so that my android on HD2 can be perfect.hic
kiowa79 said:
Hi
Tried with exactly that text (l and not 1) but terminal says "such directory or file does not exist".
Please help...
Click to expand...
Click to collapse
kenhuynh said:
I definitely have the same issue, can not browse file smdl2tpm1.aces. Anybody can help me, so that my android on HD2 can be perfect.hic
Click to expand...
Click to collapse
Solved deleting .adroid_secure folder. It's hidden in SD root.
Tried all the above hints, still not working
Hello all
Market is still not installing anything on my N1.
There is no such file in /mnt/secure/asec, and yes, got a rooted phone.
The only file there that starts with s is smpxg.jewelxmas_lite-1.asec.
Any other hints ?
I experienced this on Froyo (2.2), Froyo 2.2.1, CyanogenMod 6.0 and now also on nightly CM 6.1.
Cheers.
UPDATE: Never mind, was able to unmount
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
Then rm'd it safely. After a reboot I am back in the game.
is this problem solvable for people who dont know what to do with the code or what a terminal is?
removing smdl2tmp1.asec did it for me on my evo. Thanks guys.
kiowa79 said:
Solved deleting .adroid_secure folder. It's hidden in SD root.
Click to expand...
Click to collapse
YES, it worked for me! Thanks.
Ok, so I'm having problems with installing Angry Birds (installation error - 18) and I have read the posts, but I honestly have no idea what to do. Someone said that this code works, but where am I suppose to type it in or alter it?
I'm with thenapster3, not got a clue! Running MUIU Build 5 and can't find anything mentioned or delete the secure folder. Soz Any help would be gratefully received.
Solved on hd2
kenhuynh said:
I definitely have the same issue, can not browse file smdl2tpm1.aces. Anybody can help me, so that my android on HD2 can be perfect.hic
Click to expand...
Click to collapse
found this on other forum... thought i would share with you
(1) unmount your SD CARD
(2) download and install the app
(3) mount back your SD CARD
worked for me...
try this
I got an error saying 'unknown error 18', I Google'd the error and found a possible fix, which was un-mounting the SD card. I tried, and was able to install the apps ! I then have to mount the SD card and move the apps across! It works, but its a real pain to have to keep un-mounting and mounting the sd card!
giv it a shot

[UTIL] One Click Lag Fix 2.0 by RyanZA

i seen this in the Samsung Galaxy S I9000 and i tried it out on the vibrant and it works perfect, its probably the easiest way to partition your SD card and i can confirm it fixes the lag, i will post my scores shortly...... THANKS RYANZA you saved me weeks of research. go here for more info
http://forum.xda-developers.com/showthread.php?t=751864
[UTIL] One Click Lag Fix 2.0
This version (2-3) is now open for BETA testing! It is known to work on many devices, but still has known issues that could greatly affect you. Please read this whole post a few times until you understand!
Details about what this fix does:
Creates a VIRTUAL EXT2 filesystem inside the stock RFS filesystem on the internal SD card, with a 4KB block size. This means that this lag fix creates a buffer between the real filesystem and the android system. This buffer should reduce the amount of disk I/O required for all operations by utilizing EXT2 buffering, as well as not writing file access times to disk, etc.
Folders that are currently supported:
/data/data
/data/system
/data/dalvik-cache
/data/app
/data/app-private as a symlink to /data/app/app-private
/dbdata/databases is not supported. It appears to be ROM backed, and can cause problems if overwritten.
Benefits over version 1
1.5GB of application data available, with no data loss.
e2fsck of the EXT2 partition on each boot.
Correct busybox version included! YES!
/app and /app-private directory included in the fix for faster application installs.
/dbdata/databases included in the fix, expected to give a big performance boost for apps that use it.
Mounts instead of symlinks for extra performance as OS does less work (about 100 or so more quadrant).
Benefits over other lag fixes
Open source, with full comments and ease of editing.
Works on any and all firmware versions, including any yet unreleased froyo versions (that don't change file structure).
Credits
Big thanks to mimocan for putting us all on the right track in how to sort out lag problems!
Big thanks to ykk_five for showing us all how well loopback filesystem mounting works!
Big thanks to cyanogen mod for e2fsck
Requirements for One Click Lag Fix 2.0
Rooted phone - http://www.addictivetips.com/mobile/how-to-root-and-unroot-samsung-galaxy-s-i9000-with-a-single-click/
Windows computer with SGS Drivers (Samsung Kies), or the ability to read through the batch file and run it yourself.
(Beta Release) The ability to reflash your device if something goes wrong.
No other lag fix installed. If you installed One Click Lag Fix 1.0, then use the uninstall function which came with that lag fix before running this lag fix. (Untested but assumed to be working, please help out here.)
1.5GB of freespace on Internal SD Card for swap files while the fix is working (/sdcard).
"Internal phone storage" in Settings->SD Card must read greater than 500mb (0.5GB) of free space.
How to run One Click Lag Fix 2.0
Place your phone into USB debugging mode: Settings->Applications->Development
Attach your device to your computer. Do not mount the drives.
Download the attached ZIP file.
Unzip to a folder of your choice.
Double click "lagfixme.bat".
Don't double click "unlagfixme.bat".
Wait for it to complete.
You will need your phone to be unlocked when it runs the script, so that you can accept the permissions request that will appear on your device.
How to remove One Click Lag Fix 2.0
Double click "unlagfixme.bat"
Wait for it to complete.
Known Issues For All Versions
Some custom firmwares use up all available space in /system. This fix requires some libraries to be placed in /system/lib. These libraries are used to create the filesystem properly, and to check it for errors on every boot.
If your firmware does not have the available space (around 1mb) in /system, do not use this fix! Your phone will not boot and will have to be restored from backup / reflashed.
Current known firmwares with this issue: None yet. Please provide the firmware version+mods if you encounter this issue. It will show up as an out of space error in the log, under 'Copying libraries'.
Known Issues 2-1, 2-2
Paid apps from the market have issues.
Google maps and other pre-installed ROM-backed applications have issues.
2-3 Changes from 2-2
/dbdata has been removed. This fixes maps issues.
/app-private is now a symlink to /app/app-private. This fixes paid apps issues.
Alternate installation methods for similar fixes
Tayutama has made an update.zip version that is easy to install - http://forum.xda-developers.com/show...&postcount=208
Chainfire has a .NET version of this fix with some nice features - http://forum.xda-developers.com/showthread.php?t=751513
I recommend starting from scratch to avoid any problems
my setup is
1.) True 2.1 Samsung T mobile Image http://tinyurl.com/2bc5b6r
2.)BETA OC 1.2Ghz (no added steps for now)
kernel-vibext4-oc1.tar.md5
MD5:d1e26f769406c5d368492855c7b5059e
...you can try his new version of the kernel if you like, my phone i runs fine on the beta , so i havent tried the new ones
more info on the kernal hack http://forum.xda-developers.com/showthread.php?t=744655
3.) RyanZAEXT2LagFix BETA 2-3.zip http://forum.xda-developers.com/attachment.php?attachmentid=384443&d=1282320979
this is the exact order in which i modded my phone and i have no ran into any problems, it was a smooth process , and yes it was my first time modding my samsung phone and i rate it as very easy to do.
Click to expand...
Click to collapse
Frequently Asked Questions
Q: My apps are force closing while this fix is running, and I can't use my phone!
A: By design. The script has backed up/copied your apps over to the internal SD card (remember the requirement about 1.5GB of free space on the SD card?). It is now overwriting them with a 1.5GB file. As the file overwrites an app that is trying to do something, it will probably force close. This is normal.
Closing all running apps, and removing widgets before running this fix can make the process much smoother, though.
Q: The script can't transfer files to my phone / The script can't run / Help help I'm dieing!
A: Read the first post again.
Q: My paid apps from the market don't show up.
A: I will hopefully have a fix for this sooner or later. Hold tight! It's in the known issues. I don't have access to paid apps, so I can't test this.
Q: Does this need busybox?
A: No, busybox is included.
Q: I only have 200mb of free space now! What gives?
A: The lag fix has made a 1.5GB file, and is storing all of the data inside there. The side effect is that the free space meter is now incorrect. Sorry, this can't be helped.
You can check real free space by using ADB like this:
Code:
adb shell
su
busybox df -h
Q: When I use a backup tool, the backup is now 1.5GB big! It's taking forever!
A: The backup tool isn't designed to work with this fix. It will work, it just won't work well. Hopefully this fix will be short lived, and either Samsung will give us a new update, or someone will give us a good custom firmware that can natively mount what we need, where we need it. Or someone might come out with a better backup manager. Until then, we suffer.
Q: Will a reflash wipe this fix?
A: Yes, a reflash will wipe everything this fix did.
Q: Can this brick my phone?
A: If you know how to get to the download mode from power off (hint: volumedown+home+power), then almost nothing short of throwing your phone off a tall building can actually brick it. If you can't do this though, or don't know someone who can, then you're better off waiting for samsung to release a fix. Anything that moves files around on your device has the potential to break things, and this fix has no QA department.
Q: Why is /dbdata not included in your fix, but other people have included it?
A: Other people have included it in the same way my 2-2 fix includes it. However, /dbdata is ROM backed. This means that the real files are on ROM, and only the changes appear in the /dbdata folder. When copying or moving files from this folder, you would need to specify each folder by exact name to ensure that it was copied across, and each firmware can have their own names. (This is because RFS wildcard will not catch an unused ROM backed file.) In some cases, you can get lucky and have this work perfectly because you have already used all the files in /dbdata. There is no fail safe method to do this though, and /dbdata does not make a big difference to performance. (It is already on NAND flash.) If you want to try your luck, v2-2 is still available.
Q: Why does this lag fix work? Is it slowly destroying my phone?
A: Let's say an application counts from 1 to 10, and writes the value each time to disk.
Stock:
1 -> App tells RFS to write 1 to disk -> RFS writes 1 to disk -> RFS writes journal saying to changed the value on the disk.
2 -> App tells RFS to write 2 to disk -> RFS writes 2 to disk -> RFS writes journal saying to changed the value on the disk.
..
9 -> App tells RFS to write 9 to disk -> RFS writes 9 to disk -> RFS writes journal saying to changed the value on the disk.
10 -> App tells RFS to write 10 to disk -> RFS writes 10 to disk -> RFS writes journal saying it changed the value on the disk.
Total physical disk writes: 20. Speed: SLOW! Wear and tear on disk: HIGH!
Lag Fix:
1 -> App tells EXT2 to write 1 to disk -> EXT2 stores 1 in RAM.
2 -> App tells EXT2 to write 2 to disk -> EXT2 stores 2 in RAM.
..
9 -> App tells EXT2 to write 9 to disk -> EXT2 stores 9 in RAM.
10 -> App tells EXT2 to write 10 to disk -> EXT2 stores 10 in RAM.
..
EXT2 tells RFS to write 10 to disk -> RFS writes 10 to disk -> RFS writes journal saying it changed the value on the disk.
Total physical disk writes: 2. Speed: FAST! Wear and tear on disk: LOW!
This isn't exactly what is happening, but it gives you the general idea.
Q: Can this mod work on other Android devices? Would we see a performance boost on them as well? If not why is it limited to the Galaxy S?
A: SGS has very very good hardware, but it has some parts of it's hardware poorly implemented. The filesystem that samsung chose to use is custom-built using FAT32 as a base, RFS. It has a lot of the problems that FAT32 has, and should have been left back in the 90s, or even the 80s.
One of the big issues with it is how it handles multiple requests - it blocks. It blocks everything. When your mail app wants to read the mail you just tried to view, but your twitter app is busy writing a new tweat it just received, your mail app is forced to wait.
This is bad, but it could be worse! And it is... your twitter app didn't just get one tweat, it got 50 tweaks. It is busy writing the tweats one by one to the filesystem. This would be fine, since all modern filesystems will buffer writes, so instead of writing each one at a time, they will batch them together and write it as a big chunk. Uh oh - RFS does no buffering at all! After each write, it will also write an update to the grafted-on journal system. Guess what happened to your mail you were trying to view while all this happened? It 'lagged' and you got a black screen for half a second, before the mail popped into view.
Luckily the hardware on the device is so good that you usually don't even notice the problem until you have a lot of apps running, all writing their updates when you unlock the phone.
This is mostly speculation based on experiments done on RFS -- RFS is closed source, and we have no idea if the problems are just badly set settings (such as a block size that is too small), coding bugs in the implementation, or if RFS is just really that badly designed.
This fix just grafts a buffer on top of the RFS filesystem, using a very very simple and fast filesystem, EXT2. It fixes most of the issues by writing to RFS as seldom as possible.
So no, this fix won't fix other devices, since they're already running quite close to maximum speed. The SGS at stock is running nowhere near maximum speed, and this lag fix takes it a bit closer. You could probably speed up other devices by tweaking the filesystem settings to give them a big buffer or similar, but it isn't really needed. (I haven't actually tried to put an EXT2 onto any other Android phone, as I don't have any other Android phone, so this is just speculation.)
Q: My phone is fast now!
A: Yeah.
Last edited by RyanZA; 18th August 2010 at 10:52 PM..
I used this yesterday. Works a treat! Just be patient when its running.
Texted While Driving
You need to fix the links if you reposted it
lqaddict said:
You need to fix the links if you reposted it
Click to expand...
Click to collapse
i fixed the links before i reposted it and re-added the attachments , is there a certain link i forgot to fix ?
===============================================================
===============================================================
One Click Lag Fix for Galaxy S I9000
===============================================================
===============================================================
__________________________________________________________
Pushing required files to /sdcard - Please wait.
* daemon not running. starting it now *
* daemon started successfully *
mkdir failed for /sdcard/lagfixtemp, File exists
cannot stat 'createlagfix.txt': No such file or directory
cannot stat 'playlogos1': No such file or directory
cannot stat 'userinit.sh': No such file or directory
cannot stat 'busybox': No such file or directory
cannot stat 'e2fsck': No such file or directory
cannot stat 'libext2_blkid.so': No such file or directory
cannot stat 'libext2_com_err.so': No such file or directory
cannot stat 'libext2_e2p.so': No such file or directory
cannot stat 'libext2_profile.so': No such file or directory
cannot stat 'libext2_uuid.so': No such file or directory
cannot stat 'libext2fs.so': No such file or directory
cannot stat 'mke2fs': No such file or directory
cannot stat 'resize2fs': No such file or directory
cannot stat 'tune2fs': No such file or directory
Now running lag fix. On your device, select allow root privledges!"
/system/bin/sh: Can't open /sdcard/lagfixtemp/createlagfix.sh
Script complete!
* server not running *
Press any key to continue . . .
any help?
did you unzip the files and put them all in the same directory ???
bobby915 said:
===============================================================
===============================================================
One Click Lag Fix for Galaxy S I9000
===============================================================
===============================================================
__________________________________________________________
Pushing required files to /sdcard - Please wait.
* daemon not running. starting it now *
* daemon started successfully *
mkdir failed for /sdcard/lagfixtemp, File exists
cannot stat 'createlagfix.txt': No such file or directory
cannot stat 'playlogos1': No such file or directory
cannot stat 'userinit.sh': No such file or directory
cannot stat 'busybox': No such file or directory
cannot stat 'e2fsck': No such file or directory
cannot stat 'libext2_blkid.so': No such file or directory
cannot stat 'libext2_com_err.so': No such file or directory
cannot stat 'libext2_e2p.so': No such file or directory
cannot stat 'libext2_profile.so': No such file or directory
cannot stat 'libext2_uuid.so': No such file or directory
cannot stat 'libext2fs.so': No such file or directory
cannot stat 'mke2fs': No such file or directory
cannot stat 'resize2fs': No such file or directory
cannot stat 'tune2fs': No such file or directory
Now running lag fix. On your device, select allow root privledges!"
/system/bin/sh: Can't open /sdcard/lagfixtemp/createlagfix.sh
Script complete!
* server not running *
Press any key to continue . . .
any help?
Click to expand...
Click to collapse
djkdawg said:
did you unzip the files and put them all in the same directory ???
Click to expand...
Click to collapse
i extracted all files to desktop and ran lagfix.bat from there
bobby915 said:
i extracted all files to desktop and ran lagfix.bat from there
Click to expand...
Click to collapse
do you have usb debugging enabled? do you have any other lag fix installed ?
djkdawg said:
do you have usb debugging enabled? do you have any other lag fix installed ?
Click to expand...
Click to collapse
Got it working thanks
bobby915 said:
Got it working thanks
Click to expand...
Click to collapse
no problem, download the quadrant standard app and run the test and post your score
I got 2072 quadrant score for the phone after the fix, how did the OP manage to get 2700+?
I'm still on version 1 with no issues. Any major differences or Improvements.
Uninstalled the Alpha fix and tried this one. upon reboot, I'm getting an error:
Memory Full
Internal phone storage is nearly full
Delete/Uninstall some applications or data
Didn't have this problem with the alpha fix.
Guess I shouldn't had played with the beta.
Any ideas?
Running Stock Kernel, just rooted.
I'm running Unlagfix now to remove.
Side note: I noticed that my custom font settings disappeared... Icons still appear to be in the same place.
Update:
I just re-read the FAQ. Storage reporting error... heh.. doh.
However, when running uninstall, it started streaming the following error message about 20-30 times over:
cp: write error: No space left on device.
Can't create directory 'data/bak/app': No space left on device
Update again:
Unlagfix didn't seem fully successful. All my application data/etc disappered. Looks like they are still in the /data/ directory, but not showing up on the device.
Here is a listing result
If I'm reading this correct, does that mean the Unfixlag didn't complete it's task? Looks like I still have a 1.5gb partition for data.
Tairen said:
I got 2072 quadrant score for the phone after the fix, how did the OP manage to get 2700+?
Click to expand...
Click to collapse
i started from scratch, i flash the true tmobile vibrant image to start from scratch, you dont have to do this but i did. Link is below
http://tinyurl.com/2bc5b6r <-- true tmobile vibrant image, it also includes odin
after that was done, i used the utility to format my card, you can get the one click utility below
http://forum.xda-developers.com/showthread.php?t=751864
after that i reboot, install the app and did a test and thats how i got my speeds.
edit: after installing all my apps back, i actually average about 2400-2500 , i havent seen the 2722 after installing all my apps
i would start from scratch like i did when i first tried it, because i think the other lagfixes actually jacked something up. follow the steps below
i started from scratch, i flash the true tmobile vibrant image to start from scratch, you dont have to do this but i did. Link is below
http://tinyurl.com/2bc5b6r <-- true tmobile vibrant image, it also includes odin
after that was done, i used the utility to format my card, you can get the one click utility below
http://forum.xda-developers.com/showthread.php?t=751864
after that i reboot, install the app and did a test and thats how i got my speeds.
Spiffywerks said:
Uninstalled the Alpha fix and tried this one. upon reboot, I'm getting an error:
Memory Full
Internal phone storage is nearly full
Delete/Uninstall some applications or data
Didn't have this problem with the alpha fix.
Guess I shouldn't had played with the beta.
Any ideas?
Running Stock Kernel, just rooted.
I'm running Unlagfix now to remove.
Side note: I noticed that my custom font settings disappeared... Icons still appear to be in the same place.
Update:
I just re-read the FAQ. Storage reporting error... heh.. doh.
However, when running uninstall, it started streaming the following error message about 20-30 times over:
cp: write error: No space left on device.
Can't create directory 'data/bak/app': No space left on device
Update again:
Unlagfix didn't seem fully successful. All my application data/etc disappered. Looks like they are still in the /data/ directory, but not showing up on the device.
Here is a listing result
If I'm reading this correct, does that mean the Unfixlag didn't complete it's task? Looks like I still have a 1.5gb partition for data.
Click to expand...
Click to collapse
Just a heads up!
A new version is available for people having trouble with this lag fix, check it out here:
http://forum.xda-developers.com/showthread.php?t=760571
It is designed to be easy to use and a lot safer.
Just wanted to say thanks to djkdawg for posting this and RyanZA for all the work!
im having font issues how about anyone else? i had choko cooky as my default and now it doesnt work anymore...
edit: no fonts work...
Code:
Making new directories to use as mount points for later.
We will now create a 1.5GB real EXT2 partition /data
Will take a long time.
dd: /data/linux.ex2: No space left on device
Linking loopback to the 1.5GB data file store
Creating the EXT2 filesystem
mke2fs 1.40.8 (13-Mar-2008)
mke2fs: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
Creating a mountpoint for files.
Mounting device
mount: Invalid argument
Copying data across. This could take a bit of time.
I keep getting this error when attempting to install. Not sure what's going on. I've got 8.5gb free on internal memory before beginning install. That should be plenty.

SD Card Rescan Takes over 5 mins after Root

Hi ,
I rooted my phone using these instructions, http://forum.xda-developers.com/showthread.php?t=1818502 - [GUIDE][ROOT] How to Root your LG Optimus 4X HD (O4X P880)- Successfully! Made a backup with CWM, and rebooted a couple of times. I have noticed now though, that it takes at least 5 mins to rescan my 32G SD card, when before it was super quick. I tried the "adb shell rm /data/local.prop" but the file had already been removed. I uninstalled SystemBackupTest as suggested, and have had no other issues.
Can anyone think of any reasons this may be happening?
barny_stumble said:
Hi ,
I rooted my phone using these instructions, http://forum.xda-developers.com/showthread.php?t=1818502 - [GUIDE][ROOT] How to Root your LG Optimus 4X HD (O4X P880)- Successfully! Made a backup with CWM, and rebooted a couple of times. I have noticed now though, that it takes at least 5 mins to rescan my 32G SD card, when before it was super quick. I tried the "adb shell rm /data/local.prop" but the file had already been removed. I uninstalled SystemBackupTest as suggested, and have had no other issues.
Can anyone think of any reasons this may be happening?
Click to expand...
Click to collapse
New CWM making backups on thousand files so when system checks for media it goes trough all that files and that’s why checking is slow. If this is your case you may try to find cwm backup directory and insert in there empty file with name '.nomedia' .
Vosetal said:
New CWM making backups on thousand files so when system checks for media it goes trough all that files and that’s why checking is slow. If this is your case you may try to find cwm backup directory and insert in there empty file with name '.nomedia' .
Click to expand...
Click to collapse
Hmm, I tried that, but the system is still taking ages to check.
barny_stumble said:
Hmm, I tried that, but the system is still taking ages to check.
Click to expand...
Click to collapse
Sorry. . You may have to copy .nomedia file to all folders or maybe there is option to force cwm to make only one zip file (old format).
Thanks anyway I tried putting it in multiple folders. Just need to find the right one...
barny_stumble said:
Thanks anyway I tried putting it in multiple folders. Just need to find the right one...
Click to expand...
Click to collapse
download OI FIle Manager, go to the cwm backup folder and press menu > exclude from media scan (in that direction)
it wont be included, its an .nomedia file but it worked for me, making it myself did not work
try- media rescan root - and disable scanning SDcard-

Android 10 update files deletion

Can anyone help me? I have a moto G7+ running Android 10 with TWRP and root. It's working fine... I mean almost, I noticed that since Moto pushed another update for it, it downloads itself and takes up space on storage. It started with 13GB, now it's taking 25GB of system files. I can't find the folder to delete these files even with root. I tried wiping Dalvik Art Cache, it did nothing. Is there anyway to perform this without having to reset the whole phone? Thanks in advanced. I used Mixolorer to try to find the page and TWRP to wipe cache. Also there's no cache option in it, that's why I went with Dalvik.
Nhyphk said:
Can anyone help me? I have a moto G7+ running Android 10 with TWRP and root. It's working fine... I mean almost, I noticed that since Moto pushed another update for it, it downloads itself and takes up space on storage. It started with 13GB, now it's taking 25GB of system files. I can't find the folder to delete these files even with root. I tried wiping Dalvik Art Cache, it did nothing. Is there anyway to perform this without having to reset the whole phone? Thanks in advanced. I used Mixolorer to try to find the page and TWRP to wipe cache. Also there's no cache option in it, that's why I went with Dalvik.
Click to expand...
Click to collapse
It's a A/B device and there is no /cache on it.
The update file for an A/B device isn't stored on your device. It will be installed directly from Motorola's server.
Open a fileexplorer in search inside /data for the file or open a terminal command and type
Code:
du -m /data | sort -g
This command shows all sizes in MB.
WoKoschekk said:
It's a A/B device and there is no /cache on it.
The update file for an A/B device isn't stored on your device. It will be installed directly from Motorola's server.
Open a fileexplorer in search inside /data for the file or open a terminal command and type
Code:
du -m /data | sort -g
This command shows all sizes in MB.
Click to expand...
Click to collapse
Ok, if it's not stored in my device what's taking up so much space on "system"?
Nhyphk said:
Ok, if it's not stored in my device what's taking up so much space on "system"?
Click to expand...
Click to collapse
"System" are ALL system related partitions like /vendor, /system and so on. It doesn't matter which files are stored there. The size of each partition remains the same.
---------- Post added at 12:39 AM ---------- Previous post was at 12:38 AM ----------
You can delete all files within /system, but /system is still 3GB.
---------- Post added at 12:45 AM ---------- Previous post was at 12:39 AM ----------
Only single files on /data are important because that is your internal storage. You only use /data. If you delete files on /system then /data won't get more free storage.
WoKoschekk said:
It's a A/B device and there is no /cache on it.
The update file for an A/B device isn't stored on your device. It will be installed directly from Motorola's server.
Open a fileexplorer in search inside /data for the file or open a terminal command and type
Code:
du -m /data | sort -g
This command shows all sizes in MB.
Click to expand...
Click to collapse
WoKoschekk said:
"System" are ALL system related partitions like /vendor, /system and so on. It doesn't matter which files are stored there. The size of each partition remains the same.
---------- Post added at 12:39 AM ---------- Previous post was at 12:38 AM ----------
You can delete all files within /system, but /system is still 3GB.
---------- Post added at 12:45 AM ---------- Previous post was at 12:39 AM ----------
Only single files on /data are important because that is your internal storage. You only use /data. If you delete files on /system then /data won't get more free storage.
Click to expand...
Click to collapse
I got what you meant, but in my case something is taking up space on my internal memory and it's going to system. It's now on 27GB, yesterday it was 26gb, in March when I updated to Android 10, it was only about 10gb, and when I check data to see some files, there's nothing there to delete, that's what I'm asking.
Nhyphk said:
I got what you meant, but in my case something is taking up space on my internal memory and it's going to system. It's now on 27GB, yesterday it was 26gb, in March when I updated to Android 10, it was only about 10gb, and when I check data to see some files, there's nothing there to delete, that's what I'm asking.
Click to expand...
Click to collapse
Did u run the command obove? All you can do is to search for the file (or what ever it is).
Maybe a file explorer like FX would help you to find it. It shows you the usage of every directory you choose, always beginning with the greatest file/folder on top.
I'm sure it is only one special file/folder that causes your problem, so this method seems to be the best for you.
Example: /data/system/user/0/big_file.dat is what you are searching for, then you will find it by selecting "data". FX shows you that there is a very big file somewhere in "system" and like this you go further and further until you find "big_file.dat" .
WoKoschekk said:
Did u run the command obove? All you can do is to search for the file (or what ever it is).
Maybe a file explorer like FX would help you to find it. It shows you the usage of every directory you choose, always beginning with the greatest file/folder on top.
I'm sure it is only one special file/folder that causes your problem, so this method seems to be the best for you.
Example: /data/system/user/0/big_file.dat is what you are searching for, then you will find it by selecting "data". FX shows you that there is a very big file somewhere in "system" and like this you go further and further until you find "big_file.dat" .
Click to expand...
Click to collapse
Thanks for the tip, when I get to data and choose a folder, they all say access denied, even with root allowed. There must be something wrong with this freaking phone. Thanks anyways.
Anyone out there. I still need freaking help. I thought with the app I found, system storage would stop growing, but it hit 32GB of simply nothing. I've removed everything from the phone, moved vids, pictures. The folder says it's files needed to make android work, but why is it growing?
Nhyphk said:
The folder says it's files needed to make android work, but why is it growing?
Click to expand...
Click to collapse
Which folder told you that?
WoKoschekk said:
Which folder told you that?
Click to expand...
Click to collapse
System in Storage
Nhyphk said:
System in Storage
Click to expand...
Click to collapse
You should take a root fileexplorer... It's somewhere in /data, except /data/media
---------- Post added at 01:40 AM ---------- Previous post was at 01:33 AM ----------
You can also exclude
/data/app
/data/data
/data/user
/data/user_de
WoKoschekk said:
Which folder told you that?
Click to expand...
Click to collapse
WoKoschekk said:
You should take a root fileexplorer... It's somewhere in /data, except /data/media
---------- Post added at 01:40 AM ---------- Previous post was at 01:33 AM ----------
You can also exclude
/data/app
/data/data
/data/user
/data/user_de
Click to expand...
Click to collapse
This is the folder, there are so many things inside it. If I delete data/app, won't my apps restart? I'll have to login again, because banks apps won't work without authorization...
Nhyphk said:
This is the folder, there are so many things inside it. If I delete data/app, won't my apps restart? I'll have to login again, because banks apps won't work without authorization...
Click to expand...
Click to collapse
The file(s) you are searching for is/are stored in /data. You can EXCLUDE the following paths from your search:
/data/app/*
/data/data/*
/data/media/*
/data/user/*
/data/user_de/*
Do not search in above mentioned paths and do not delete them or something else!!!
---------- Post added at 04:43 AM ---------- Previous post was at 04:34 AM ----------
I don't know why it took so much time for you to find the problem. Open /data and get the size for each folder, one after another. First folder should be 'adb'. What is the size of this folder? Is it less than 20GB then go to the next one. The next one is called 'app' and should exclude it so take the next one. And so on and so on...
You have a maximum of 20 folders. This should take approx. 5-10 min. and your problem is solved!
---------- Post added at 05:12 AM ---------- Previous post was at 04:43 AM ----------
or open any terminal app and type
Code:
su
du -akd 1 /data | sort -n
in the last line of your output you find the folder with the highest size.
Thank you very much for your help and I'm sorry for bothering. I'm really not an expert on these things. I think the actual file is so hidden not even root will show it. The biggest folder in data is exactly apps. First I thought you said I could delete them, thank God I only deleted user_de and when the phone restarted, I only had to confirm my account and 2.5GB were cleared off memory. Then I did what you told me to and you can see what it says in the picture, biggest folders are app and data. Since I can't delete data/app, I think it's another file, or even more than one that are hidden. Or my phone is just buggy. Last resort is resetting it... Anyways, thanks again.
Nhyphk said:
Thank you very much for your help and I'm sorry for bothering. I'm really not an expert on these things. I think the actual file is so hidden not even root will show it. The biggest folder in data is exactly apps. First I thought you said I could delete them, thank God I only deleted user_de and when the phone restarted, I only had to confirm my account and 2.5GB were cleared off memory. Then I did what you told me to and you can see what it says in the picture, biggest folders are app and data. Since I can't delete data/app, I think it's another file, or even more than one that are hidden. Or my phone is just buggy. Last resort is resetting it... Anyways, thanks again.
Click to expand...
Click to collapse
Please have a look at /data/app. 25GB are too much for this path. Usually it contains less than 10GB.
Expand the command this way:
Code:
du -akd 1 /data[B]/app[/B] | sort -n
WoKoschekk said:
Please have a look at /data/app. 25GB are too much for this path. Usually it contains less than 10GB.
Expand the command this way:
Code:
du -akd 1 /data[B]/app[/B] | sort -n
Click to expand...
Click to collapse
Those are the biggest ones, but they're games (like pogo, Mario and HP) and they take about 2.5gb separately on Storage. I think musically is tik-tok, because that was its name before, I barely use it, it says 1.9GB, right? But the app itself says less than 300Mb. Also Google Port Camera looks huge and google quicksearchbox (is it the app or the widget?) and gms... Correct me if I'm wrong. Sorry once again.
Nhyphk said:
Those are the biggest ones, but they're games (like pogo, Mario and HP) and they take about 2.5gb separately on Storage. I think musically is tik-tok, because that was its name before, I barely use it, it says 1.9GB, right? But the app itself says less than 300Mb. Also Google Port Camera looks huge and google quicksearchbox (is it the app or the widget?) and gms... Correct me if I'm wrong. Sorry once again.
Click to expand...
Click to collapse
Numbers on the left side are sizes in KiB (Kibibyte).
1 KiB = 1024 Byte (binary, 2^10)
1 kB = 1000 Byte (decimal, 10^3)
/data/app/com.google.android.gms (Play Services) = 296.880 KiB = 289,92 MiB = 304,01 MB
All folders shown on your screenshot (YouTube - Play Services) are together almost exactly 4GB! But the total sum of '/data/app' is 25,79GB
What about the remaining 22GB??? The folders above 'YouTube' getting smaller and smaller. To get a total sum of 22GB you need hundreds of folders!
My advice: Do a factory reset! I don't know what it is, but your device (or storage) is really messed up.
WoKoschekk said:
Numbers on the left side are sizes in KiB (Kibibyte).
1 KiB = 1024 Byte (binary, 2^10)
1 kB = 1000 Byte (decimal, 10^3)
/data/app/com.google.android.gms (Play Services) = 296.880 KiB = 289,92 MiB = 304,01 MB
All folders shown on your screenshot (YouTube - Play Services) are together almost exactly 4GB! But the total sum of '/data/app' is 25,79GB
What about the remaining 22GB??? The folders above 'YouTube' getting smaller and smaller. To get a total sum of 22GB you need hundreds of folders!
My advice: Do a factory reset! I don't know what it is, but your device (or storage) is really messed up.
Click to expand...
Click to collapse
Thank you. I thought so, think it's actually the freaking update... I'll do it in some days, remove root and install a newer version of Android 10 from Motorola, then root it again. But thank you very much. God bless you.

Categories

Resources