yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] lafaya:
My guess is that you rooted, installed busybox 1.18 (from the market) and proceeded to install the fix. You tried again and it says can't format the mounted system. It already exists but it wasn't installed correctly.

I think reflashing is the easiest but if you can access the ext2 and delete it, then it should be okay. Like I said, I reflashed and started again.

After you reflash, root your phone.

Download busybox 1.17 (it should be somewhere in this thread, just do a search)

start over again and everything should be okay :)
[Galaxy S I9000 Android Development] Arkymedes:
No love for my problem? :(
[Galaxy S I9000 Android Development] lex_87:
Sorry, another question! I tried to run your test file but have this problem:

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

This will try to upload a test file to your phone and test if it contains all th

e files needed for applying the dirty lag fix trick.

*** to CONTINUE, press any key

*** to QUIT, press control-C

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

Press any key to continue . . .

failed to copy 'test4u.sh' to '/sdcard/test4u.sh': Permission denied

sh: can't open '/sdcard/test4u.sh'

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

test finished

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

Press any key to continue . . .

Terminate batch job (Y/N)?

I'm guessing there is some setting I need to change to allow it to copy over the test4u.sh file? My phone is rooted btw.
[Galaxy S I9000 Android Development] myslee_ovi:
726MB on Internal Phone Storage <-- this said all...

You need 1024MB of free Internal Phone Storage.
[Galaxy S I9000 Android Development] ykkfive:
is there a file called test4u.sh in /sdcard already?

the problem looks like my test program do not have permission to write on ur /sdcard. did u apply other fixed b4?
[Galaxy S I9000 Android Development] lex_87:
No other fixes etc applied. My phone has stock firmware, is rooted and has busybox 1.17.1 installed. There is no file called test4u.sh in the phones internal root directory (i.e. /sdcard/).
[Galaxy S I9000 Android Development] ykkfive:
ok, so, can u manually upload the file to /sdcard/? eg by bluetooth or usb?
[Galaxy S I9000 Android Development] lex_87:
I manually copied the test4u.sh file to /sdcard/ and it still comes up with the same error...weird.

I'm guessing this error will still occur because it will try and copy the file even if it's already present.
[Galaxy S I9000 Android Development] ykkfive:
r they the same? if so, u can put a "rem" for the following line inside test4me.bat so it looks like:

rem adb push test4u.sh /sdcard/test4u.sh

then save test4me.bat

this will prevent the test program to copy the file to /sdcard again (assumed the file do exist and identical)

now u can run it again
[Galaxy S I9000 Android Development] lex_87:
Ok, now it says it can't open the test4u.sh file:

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

This will try to upload a test file to your phone and test if it contains all th

e files needed for applying the dirty lag fix trick.

*** to CONTINUE, press any key

*** to QUIT, press control-C

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

Press any key to continue . . .

sh: can't open '/sdcard/test4u.sh'

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

test finished

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

Press any key to continue . . .

Terminate batch job (Y/N)?

Sorry for being such a pain, it'll blatantly end up being something really obvious:D.
[Galaxy S I9000 Android Development] ykkfive:
another option:

rename my test4u.sh, say test4u1.sh

then remove the "rem" u just added to the bat file, and replace all test4u.sh with test4u1.sh

so the file will be uploaded to /sdcard again, named test4u1.sh

and finally, run the bat again
[Galaxy S I9000 Android Development] lex_87:
I get the permission denied error again when it tries to copy test4u1.sh :(

Do you think it's worth trying to run the bat file on another computer to see if it makes any difference?
[Galaxy S I9000 Android Development] ykkfive:
it's strange.....

so u cannot copy files to /sdcard manually, rite?

i mean, did u copy files to /sdcard b4 successfully?
[Galaxy S I9000 Android Development] lex_87:
I can copy files manually to the phone vis usb (never had a problem), but when the .bat file tries to copy the test4u.sh to the phone it gets a permission denied error.

If I then manually copy the test4u.sh file to the phone and run the bat file it then says it can't open the test4u.sh file. :(

Hope that's clear, let me know if you want any other info, but don't lose too much sleep over it!
[Galaxy S I9000 Android Development] ykkfive:
ok, last attempt, do u how to run the test4u.sh manually? it's not difficult though

just open a command prompt and change to the dir where my files are. do a dir and u should see there's a file named adb.ext (or just adb if ext r hidden)

then u can connect to the phone by the following commands:

type:

adb shell [press enter]

(a "$" appears)

then, type

busybox sh /sdcard/test4u.sh [press enter]

u should read the result

if either one failed, i think u better stop here and post the results/errors

yeh, i'll take my time to go to bed, thx
[Galaxy S I9000 Android Development] lex_87:
Right I tried this, using the dir command in cmd adb.exe shows up.

Then did the rest and got this:

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Alexander>cd test4me

C:\Documents and Settings\Alexander\test4me>dir

Volume in drive C is Windows XP

Volume Serial Number is 800A-EE90

Directory of C:\Documents and Settings\Alexander\test4me

09/08/2010 19:59 <DIR> .

09/08/2010 19:59 <DIR> ..

07/05/2010 11:48 578,611 adb.exe

07/05/2010 11:48 96,256 AdbWinApi.dll

09/08/2010 19:53 540 test4me.bat

09/08/2010 21:44 1,077 test4u.sh

4 File(s) 676,484 bytes

2 Dir(s) 381,778,067,456 bytes free

C:\Documents and Settings\Alexander\test4me>adb shell

$ busybox sh /sdcard/test4u.sh

busybox sh /sdcard/test4u.sh

sh: can't open '/sdcard/test4u.sh'

$

Still can't open it :confused:
[Galaxy S I9000 Android Development] XeQtuR:
Here is my quadrant score,does the I O score seem strange?
[Galaxy S I9000 Android Development] SquidgyB:
Do you mean numerically, that 6632 is way higher than your score?

It's an average - add all the results together and devide by 5 = 2097 ;)
[Galaxy S I9000 Android Development] exadeci:
I have busybox in /system/bin you might want to add this too
[Galaxy S I9000 Android Development] lex_87:
It works!!

I fiddled around with a few things using adb, then rebooted the phone and it seems to work now :)

Sorry for being a pain :)
[Galaxy S I9000 Android Development] diehard2222:
how did u get that version of quadrant?
[Galaxy S I9000 Android Development] AJerman:
He bought it.
[Galaxy S I9000 Android Development] diehard2222:
where though? i cant find any other version besides standard.
[Galaxy S I9000 Android Development] XeQtuR:
Go to slideME.org and sign up, its 2.99
[Galaxy S I9000 Android Development] odyssey61:
I have just looked at my battery useage over night. Usually in Airplane mode my phone loses about 2% over night. With the lag fix 30%. Has anyone else noticed this?
[Galaxy S I9000 Android Development] exadeci:
...... http://forum.frandroid.com/forum/viewtopic.php?id=19071

21-07-2010 14:04:55

And conclusion is it doesn't really work, it just get quadrant crazy that's all

http://forum.frandroid.com/forum/viewtopic.php?pid=284947#p284947
[Galaxy S I9000 Android Development] odyssey61:
Who's conclusion?

Did they do exactly the same method?

Yes quadrant is higher but apps like Dolphin HD now working instead of bogging down the whole system.

What do the devs here say about this please.
[Galaxy S I9000 Android Development] Tekoajaib:
phone feels snappier, faster, less laggy and adding apps to homescreen is faster... so it works for me.

also please note that this fix does not change any processing speed or 3d process. so linpack and neocore like benchmark should not change. if you're curious though, run quadrant without the fix, and notice during the I/O write test it take some times to pass. with the fix the I/O test will pass in a blink.
[Galaxy S I9000 Android Development] kendalfung:
If it change to external SD with Ext4 and cache, will it faster?
[Galaxy S I9000 Android Development] Diamond_dawg:
nice this interests me
[Galaxy S I9000 Android Development] odyssey61:
For the first time I can use Dolphin Browser without any lag at all. Great fix.
[Galaxy S I9000 Android Development] odyssey61:
RyanZA explains clearly how this fix is very different than the one mentioned on your links, so all good.

http://xdaforums.com/showthread.php?t=749495
[Galaxy S I9000 Android Development] furt890:
okay got to the

busybox losetup /dev/loop0 /data/dataimg

but it said that no such file or directory, what should I do ?

EDIT : Ahh... went with that one click fix and I'm through with it, got 2186 on quadrant yeah !! :D
[Galaxy S I9000 Android Development] ryanlaw.cs:
I am having problem download apps from the market.

Message :

Download was unsuccessful, please try again.

I tried to use appBrain, no luck ~ :(
[Galaxy S I9000 Android Development] ykkfive:
What did u do?
[Galaxy S I9000 Android Development] ryanlaw.cs:
Flash JM5, and apply the OneClick Fix.

now it seem that I cannot download apps anymore.
[Galaxy S I9000 Android Development] ykkfive:
U should try it b4 u made a conclusion
[Galaxy S I9000 Android Development] ykkfive:
No need to worry, it's just a test which u can do it manually.

Goto the adb shell again and enter su, u will see if u have su installed. For busybox just enter busybox and see it contains commands like losetup, mkfs.ext2 etc as stated in the bat file
[Galaxy S I9000 Android Development] ryanlaw.cs:
I post in the wrong thread. haha
[Galaxy S I9000 Android Development] ykkfive:
Which fix did u apply?
[Galaxy S I9000 Android Development] picard2008:
Power Consumption?

Not sure if it is isolated incidence! I am experiencing reduction in battery life since I applied the fixed yesterday. I have to charge my phone both at work and at home now.

If you assume a linear drop in battery usage (which I know it isn't), I would be getting only 13.9 hours of life from a full charge battery instead of a day or so before. I am running ZSJG4.

Anyone?
[Galaxy S I9000 Android Development] ykkfive:
That's great
[Galaxy S I9000 Android Development] ykkfive:
Sure, thx for ur info
[Galaxy S I9000 Android Development] ykkfive:
No, tested
[Galaxy S I9000 Android Development] ykkfive:
Sorry, that fix is not written by me

pls refer to the author
[Galaxy S I9000 Android Development] ykkfive:
What did u do to ur phone?
[Galaxy S I9000 Android Development] odyssey61:
I used adb to do the internal sd card fix. I am now thinking I misread the battery level last night. I have been using it repeatedly since 9:30 so 6 hours now and its at 46%, started at 95%.
[Galaxy S I9000 Android Development] Devlish:
Been using mine for 2 hours since charge, and still @ 100% battery :)
[Galaxy S I9000 Android Development] matty___:
and that doesn't ring any bells?

I mean how can that be? the screen just eats battery beside any nolag fixes.

BTW the battery icon loses 1 bar when it gets below 75%.
[Galaxy S I9000 Android Development] Devlish:
If you install Spare Parts, you can se the drain more exact.

I have not used the phone and the screen has been off.

but anyway, there would be a difference if the lag fix had been a influence on battery usage.

I had one call and installed one update and it has been on for almost 4 hours now, but it´s still on 94% :) using XXJP3

Of course there might be a bit more drain since the ext2 partition is accessed inside the RFS filesystem, but seems not to do so if there is no services doing read/write operations while the phone is in standby/screen off
[Galaxy S I9000 Android Development] nop56773:
I noticed the same thing. Then I "killed" a lot of apps and it seemed better. I'll test it the next few days to confirm if it drains faster or not.
[Galaxy S I9000 Android Development] odyssey61:
That definitely odd. I am doing a recalibration but I still got 10 hours of moderate to heavy use out of it.
[Galaxy S I9000 Android Development] Arkymedes:
Hello,

Sorry if I was not clear enough.

This was AFTER the fix was done, what it was a success. At least the bench scores confirm that.

The downside is that I cannot install app's via adb without the "insuficient storage" error.

Thanks!
[Galaxy S I9000 Android Development] ykkfive:
seems u've applied others fix. pls refer to the original author, thx
[Galaxy S I9000 Android Development] ykkfive:
u applied other's fix or just to do it with my trick?

if it's due to others' job, then i think u better refer to the author, coz i think i cannot provide u any comments about their fixes, thx

EDIT:

u said u've applied "internal sd card fix", which is out of my concern here. u better ask the author about this
[Galaxy S I9000 Android Development] kgk888:
For those of us not as well versed in Linux, are we going to get some direction as to how to apply this, seeing as the devs seem to be enjoying all the benefits of a functioning Galaxy S while the rest of us sit in lagville? :confused:

Or is it better to just dump these phones on eBay while they're still worth something and wait for functioning devices to come along?
[Galaxy S I9000 Android Development] ykkfive:
there are some fixes out there for inadvanced users
[Galaxy S I9000 Android Development] zerocoolspain:
One question... which do you prefer? JM5(Europe) or JG4 (Asian)?
[Galaxy S I9000 Android Development] ykkfive:
1/. i've tried only JF4 & JF7 only (both are asian version)

2/. in fact, i think those without CJK are better
[Galaxy S I9000 Android Development] MemphisLeak:
Yea dump it on ebay. Its better for lazy whiners to go elsewhere. It doesnt help productivity.
[Galaxy S I9000 Android Development] zerocoolspain:
Then i reject JF4, thanks
[Galaxy S I9000 Android Development] ykkfive:
let me remind u, both contain CJK
[Galaxy S I9000 Android Development] zerocoolspain:
It's true..then i will try JM5 and DDJG4 (without CJK, no?)
[Galaxy S I9000 Android Development] ykkfive:
try european/us version

nearly all asian versions contain CJK
[Galaxy S I9000 Android Development] g00ndu:
A quick update.

I have tried bub181 fix, and RyanZA fix as well. There are 2 more fixes, which is ykk_five and also the update.zip method, which I have not tried yet.

Just for your information, for those who uses CWM, I have done a backup after bub181 fix, flashed a stock rom, and did a recovery. The recovery was a success and the ext2 was restored as well.

Point to note however, is that the backup will take a much longer time, and the backup will be occupy a lot more space (447mb w/o fix compare with 1.53gb with fix).

I have also flashed another asian firmware (DXJG4) which in my opinion isn't good as ZSJG4, but nevertheless I am keeping it because this is the version which my country is using. I have also make a backup with fix, and the file size is about the same as the previous one.

Regardless of the fix, I believe that CWM goes hand in hand with this fix.

Would be good if everyone can backup their roms and stored in Dropbox and in the event any issues happen, you can be sure to get back all your original settings and apps without much fuss.

Hope this little info is of help. :)
[Galaxy S I9000 Android Development] distortedloop:
Did the method you used involve creating a backup of each of the affected folders (i.e., /data/data.bak, /data/system.bak, /data/dalvik-cache.bak)?

That's a nice safety feature to have something to fall back on while creating the fix here, but once you're confirmed to be up an running, wouldn't it be appropriate to delete those files? For some of us, that's probably a couple of hundred megabytes of wasted space being sucked up by a backup that's not current as soon as we even run a program (dalvik-cache changes) or add a new program.

Seems like a good idea to offload those files by either putting them on the sdcard, your computer, or in DropBox for access later should you really need them.

Any reason to NOT remove those files from your /data folder?

I'm going to remove them from mine, since if I want to undo the fix I'll either restore from nandroid pre-fix, or I'll manually copy the stuff on the loop mount back to the original location to keep my changes current.

Thank you for posting that. It seemed like CWM/nandroid should/would backup/restore properly, but I'd seen posts that it wouldn't. It certainly worked with a mimocan fix by maintaining all the symlinks and the ext partition data. CWM also saved my ass on my first attempt at this hack when I bricked my phone trying to run the one-click method on my Mac. LOL I was able to nandroid restore back to a working mimocan state and start over with this fix.

WORD OF ADVICE TO ALL. GET CLOCKWORK ROM MANAGER. USE IT. ALWAYS MAKE SURE THE UPDATE.ZIP FILE NEEDED TO START IT IS IN THE ROOT OF YOUR INTERNAL SDCARD BEFORE EXPERIMENTING WITH THE PHONE AND THIS STUFF.
[Galaxy S I9000 Android Development] ykkfive:
totally agree
[Galaxy S I9000 Android Development] blingblingslyna:
so now i have a loop mountpoint /dbdata/databases

the tricky is where should i have my databases.img (250mb) ? :D

f***!
[Galaxy S I9000 Android Development] deathst:
SO will flashing a new ROM with this fix in it crash or brick the phone?
[Galaxy S I9000 Android Development] ykkfive:
so where did u choose?
[Galaxy S I9000 Android Development] Chainfire:
I created a new patching tool partially based on your work, ykk_five. Just a heads up, thanks for your research!
[Galaxy S I9000 Android Development] ykkfive:
thx for ur acknowledgement and credits
[Galaxy S I9000 Android Development] ykkfive:
i flashed a new rom yesterday, no problem at all. the only thing is, u have to apply the fix again
[Galaxy S I9000 Android Development] andars05:
I'm not sure as this has been asked since I last read this thread. Apologies if this is a repeat.

Has anyone tried mounting a virtual RFS partition on top of the /data RFS partition? The rationale behind doing this would be to see if it's really RFS filesystem causing the lag, or if the virtual partition is just acting as a buffer.
[Galaxy S I9000 Android Development] ykkfive:
i don think ppl will try to run a virtual rfs inside a rfs which regarded as slow and relatively poor in performance
[Galaxy S I9000 Android Development] distortedloop:
Agreed, but that's not the point of the guy's original question, which has some validity - he's wondering if it's actually the use of ext2 that's speeding things up, or some other buffering effect of the loop mount.

He could try it himself with your instructions, just by replacing the format type in the mkfs command with rfs or fat or whatever's supported, couldn't he?
[Galaxy S I9000 Android Development] andars05:
I'd be happy to try it out. I'm just unsure of the command to create the partition as rfs. mkfs.rfs doesn't work.
[Galaxy S I9000 Android Development] ykkfive:
oops...u r right

yes, sure. he can try it of coz
[Galaxy S I9000 Android Development] ykkfive:
hi andars05,

i dono how to make a rfs either, but it's fat/vfat (or derived from)

the easiest way to test it, in this case, is to put a .rfs from a rom file into ur phone and mount it

hope this help!

EDIT

or, u may simply create a new mount pt and mount it to another mounted rfs partition
[Galaxy S I9000 Android Development] bricheun:
Great benchmarks >2220 - I have very poor phone (real life) performance.

1) Lags

2) Long pauses of black screen during calls

3) Dial --->Call-->Black screen ~ 5-10 seconds but the call is connected...

I reflashed with ZSJF4 - repartition before doing this mod, does anyone also experience this?

I have around 10 apps - K9 mail, Dolphin, compass..etc
[Galaxy S I9000 Android Development] bratfink:
Just an idea

I know im probably going to get flammed for this but here goes..

Has anyone looked at how the iphone manages its data partitions and which file formats it uses. I understand the structure of the OS's are very different but being that it too uses a large amount of built-in storage it seems to me that it is worth looking into...

As i said im probably very wrong for even assuming this can help, but its just an idea...
[Galaxy S I9000 Android Development] ykkfive:
no such problems even for stock version
[Galaxy S I9000 Android Development] RyanZA:
RFS is samsung proprietary. There are no tools to make em, so you can't test this.

I've been messing around with /cache .. but no apps seem to use it! ykk, why did you include /cache in yours? Does it help out?
[Galaxy S I9000 Android Development] nalinbhatt:
How can I get this working ?

Thanks for all the hardwork.
[Galaxy S I9000 Android Development] distortedloop:
I'm not going to flame you for offering a suggestion.

The iPhone uses two partitions, one for the system and one for the user. The system partition on my iPhone4 is 1gb, the rest of the internal memory goes for the mobile user partition and has everything else (media, user apps from the market, camera roll, etc).

Lack of space isn't the cause of lag on our SGS phones, it's lack of throughput on i/o that hurts us. It really looks like RFS is the culprit here for some reason. Modeling our partition scheme after the iPhone's won't change that. What we need to do is get Samsung to switch to YAFFS2 which is what HTC is using on the N1 and other phones.

Mount command on the iPhone shows the filesystem iOS uses as Apple HFS if you're interested. I find that interesting, since HFS is pretty old. (EDIT- seems my MacBook Pro displays HFS only on the mount command, so they're using the same on the iPhone.) They use HFS+ on Macs now, and I beleive if you had an iPod on a Windows machine it had to be formatted in FAT/FAT32. At any rate, since they're not using a filesystem designed for nand flash memory, they've either modified it to deal with wear-leveling, or more likely they've decided that wear on the nand isn't an issue. I suspect the latter since nand should last several years and they're only warranting the phone for 2 or 3 years max. This is something those of us concerned about the wear leveling issue we imagined this particular fix might cause should keep in mind before being too upset.

Anyways, the 2gb ROM space on the SGS is very generous as far as Android phones go, and the HFS filesystem is Apple proprietary, so we can't use it. YAFFS2 is the answer as far as I'm concerned. We're not going find the ultimate lag solution by kanging off the iPhone I fear, but it was a good idea to at least look at what Apple does. ;-)
[Galaxy S I9000 Android Development] bratfink:
Thanks for your honest and thorough reply. Its always nice to learn a bit extra. Much appreciated :D
[Galaxy S I9000 Android Development] ykkfive:
Yes, i used all the nand space available
[Galaxy S I9000 Android Development] ykkfive:
It is just a simple win batch, just extract the zip and run the test4me file
[Galaxy S I9000 Android Development] andrewluecke:
Do we know if we have XSR yet though? If so, we could switch to EXT4 safely instead..
[Galaxy S I9000 Android Development] Bhonka:
You need to use an older version of busybox 1.7. something. It's been posted many times look through the thread.
[Galaxy S I9000 Android Development] ykkfive:
o, i didnt read the screen cap msg seiously, sorry
[Galaxy S I9000 Android Development] Kryston:
Does this fix lower life expectancy of the internal sd card somehow?
[Galaxy S I9000 Android Development] ykkfive:
i have no idea neither
[Galaxy S I9000 Android Development] RyanZA:
# Mount the new file. You will need loopback support, either as a module or built in the the kernel.

# mount linux.ex2 /mnt -o loop=/dev/loop0

and you are done.

Okay, stock kernel doesn't seem to have loopback support?! Since OP said stock kernel, anybody have any idea on this?
[Galaxy S I9000 Android Development] shohid1234:
Hmmm so has someone actually done this? if can you please report to us, whatever this is it seems to good to be true. Even the op says it doesnt drastically change performance. All I want is a fast smooth rom, dont give a flying f**k for benchmarks.