yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] :
ok, can you teach me how did you partition ur sdcard in the first place? by paragon or gparted or sparted? Thanks :)

I was using paragon and mark both partition as "Active" upon completion, I wonder what I did wrongly. Anyway the kernel V4 patch works, just that now external sd won't mount on my windows when connected to usb, only internal sd mount (I choose "mount" from phone).
[Galaxy S I9000 Android Development] lenrek:
I am not sure if you can mount EXT4 filesystem when you connect it via the phone.

Maybe you can try turn of the phone, take the SD card out and format the 1st partition again in your windows? Only 1st partition, not 2nd partition.

By the way, don't format the external SD card via the phone, it would wipe out the 2nd partition and use the whole card as a single fat32 filesystem. That was what happened to me. I formatted both partition in Ubuntu.

However, I formatted the SD card again in the phone, I thought it would just format the vfat partition only. I did this coz, I had an experience that some phone can't read the fat32 I created in Linux, so thought of doing it to be safe.
[Galaxy S I9000 Android Development] lenrek:
Goto "Menu" -> "Setting" -> "About Phone" -> "USB Settings".

You would need turn off USB debugging in order to access this option.
[Galaxy S I9000 Android Development] lenrek:
Just queries, not sure anyone can answer...

Well, I had followed the steps accordingly and everything seems great.

However, I have 2 queries:

1. I was told about SD card lifespan. Since EXT4 is a journal filesystem, a section of the card would get more read/write than the rest of it. It would increase performance, but decrease card lifespan. Not too sure how true is this, the person who said could be wrong.

2. The card gets "hot". I purposely try to play games, surf net, read news and task switching all the time. It starts to get hot and eventually my phone was rebooted by itself! Would this be an overheating issue? Anyone face such problem? Or, is this a sign of a faulty card?

So far, besides showing a bit of lagging after I reinstall all my apps, everything else works great. :D
[Galaxy S I9000 Android Development] Jabbypants:
On my phone i turned the animations to some and it seems much better now this without lag fix
[Galaxy S I9000 Android Development] dirk1978:
I noticed that with LauncherPro on JG5 the 3d drawer would stutter a bit the first few times. Now moving this data to the sd card that's eliminated, which would seem to point to this whole lag issue being not enough bandwidth on the internal sd. When splitting stuff out to different locations and going through different controllers it's then able to have enough bandwidth.
[Galaxy S I9000 Android Development] AllGamer:
my "external" SD is class 6

all of the feedback from people and the delay experiences seems to points out the "internal" SD seems to be of a class 4 or maybe even a class 2 to be that sluggish.

so my advice is to have all the software apps and games installed to the external SD, and keep the internal SD clean to only be used for MP3 and stuff like that

you'll want the Video files to be on the fast external Class 6 SD card as well.
[Galaxy S I9000 Android Development] ghill55:
Is it worth applying the ext4 fix on a class 4 SD card?
[Galaxy S I9000 Android Development] Jabbypants:
Ignore please
[Galaxy S I9000 Android Development] Darkstriker:
Did it. Doesn't give me a clue. System is 90% full but that's it. No unusual things there. Also did a reflash to JFF (from JG5) and still have the same problem.

I could of course install all apps before applying the patch (they do work afterwards) but that's not very practical.

Three must be a fix for this somewhere :S

Anybody?
[Galaxy S I9000 Android Development] lenrek:
Possible to show the output here? Should check if the symbolic links are correct.
[Galaxy S I9000 Android Development] rewrew2:
can i put database in the external SD and the app data in the internal SD? or both database+data must be only in the external SD??
[Galaxy S I9000 Android Development] Darkstriker:
I can't post it cause I'm using an on screen terminal + I removed the fox for now cause I'm away from my pc. Its looks exactly mimo's on page 3 except my system is 90% full and the size of the mmcblk1p2 is different size cause I made a 3gb partition in ext 3.
[Galaxy S I9000 Android Development] lenrek:
Oh... I thought I saw somewhere in the thread, your partition should not be more than 2G, that is why I follow strictly to the 1st suggestion, set as 1G only.
[Galaxy S I9000 Android Development] Darkstriker:
I'll try that tomorrow then. I don't have access to a pc for formatting right now.

Or is there an app for android that can format sdcards?
[Galaxy S I9000 Android Development] Jabbypants:
Having some issues with this i can get it to work on a old 2gb card i have knocking about, i tried it on my 16gb model but it goes to the samsung boot logo then just goes black after it, when i take that card out and put the original 2gb in it boots fine.

Would it be worth trying a ext4 on it using the 16gb model card.
[Galaxy S I9000 Android Development] soraxd:
can anyone help me? ive been trying this for 3 days.. and i think ive gone as far as i can on my own. ive partitioned my 32GB MicroSD card to fat32 partition 1, and ext4 partition 2 (2.2GB partition). ive downloaded the Kernel_GalaxyS_mimo_ext4_v4 (1) included in the post. i load this and my pit file, it flahses sucessfully. my phone is on, i connect it to the pc. the SD card and SIM are both in the phone when i connect it to my 64bit Win7 computer (usb debugging is on)

i sucessfully enter adb on my computer, and paste the following command in

su -
busybox cp -rp /data/data /disk/
busybox mv /data/data /data/data.bak
busybox ln -s /disk/data /data/data

and i get this

well, then i think to try it on my Terminal Emulator on the phone and get these results

ive tried to follow the directions to a T, i dont know what i could be doing wrong.. can anyone advice me?
[Galaxy S I9000 Android Development] dupel:
Im no guru, but I'd say you are rooted, but don't have busybox installed. Just search market for it.
[Galaxy S I9000 Android Development] danielherrero:
In your pc write first adb shell, then you will see a $ prompt. Then write the commands (su,etc)
[Galaxy S I9000 Android Development] Jabbypants:
Having problems getting this to take it i follow the instructions and all goes well but it still seems to be coming from internal storage and its no faster, can't even run quadrant to test it.
[Galaxy S I9000 Android Development] Shinili:
open cmd on your pc and try this:

adb shell
su -
busybox mount /dev/block/mmcblk1p2 /disk

and then the rest of the things from the frontpage ;)

worked for me
[Galaxy S I9000 Android Development] joe611:
sd card damaged?

Hi,

I tried applying the ext4 version of the fix to my rooted SGS running firmware JG5. After partitioning into fat32 and ext4 using GParted Live, it says Damaged External SD card in the notification bar. I thought this was normal so went ahead with the fix, but this problem is still there. I'm guessing this is not normal?

Thanks

Joe
[Galaxy S I9000 Android Development] phete:
Getting exactly the same :)
[Galaxy S I9000 Android Development] DocRambone:
Go to settings/sd card

press unmount card (external)

press format

Another thing that should be included in the post post: format the ext partition every time you flash a new rom...
[Galaxy S I9000 Android Development] joe611:
The option under settings is greyed out though...any suggestions?
[Galaxy S I9000 Android Development] DocRambone:
Then you have some problem with your sd card, do you have a card reader?

If yes, try to format within windows
[Galaxy S I9000 Android Development] paranoid2007:
In the pocketpc.ch forum people are suggesting, that partitioning the SD card via the phone doesn't work somehow. On the other hand, somebody managed to sucessfully format the SD in a Milestone.
[Galaxy S I9000 Android Development] DocRambone:
Partition in phone cant be done today, format is ok tho
[Galaxy S I9000 Android Development] Ferdimage:
any one experiencing a quick battery drain with the SD Fix?

im using ext4 (1GB)... its quick... but the battery drains even when using gps in the car while charing... i was watching the % drop for the 30 min drive....
[Galaxy S I9000 Android Development] dupel:
Nope, excellent batery life here with fix + latest firmware.
[Galaxy S I9000 Android Development] Ferdimage:
i must have a dirty widget somewhere thats raping battery...

did you do the battery status clear after flashing?
[Galaxy S I9000 Android Development] r4ng3r:
wlan dosn't work after ext4 flash

Hello,

i just tried the fix with ext3 partition today and i got only 1098 Points on quadrant.

Now i tried the fix with ext4 partition but i can't joining my wlan after flashing the ext4 kernel. I'm using the "Doc's StockRomMod V1" bevor flashing the ext4 kernel.

Using original firmware -> wlan ok

update to Doc's StockRom -> wlan ok

flashing ext4 kernel -> wlan doesn't work -> obtaining adress... still loop.

Any ideas for fixing these issue?

while searching in the board i only the tipp to reflash the firmware..

UPDATE: reflashing the firmwares from original JG5 to ext4 kernel fixed these issue... don't know why... :)
[Galaxy S I9000 Android Development] phete:
Formatting through the phone somehow repartitions the card into one big partition again.

What I got when I started the GParted Live was both of the SD-cards in the phone marked as "unallocated". Seems weird some how, I got a small "microSD" card reader that I got with my SanDisk card but GParted doesn't recognize it so I have to mount the card through the phone.

What I did then was to create one partition as fat32 on max-1gb size, and one ext4 on 1gb. Even tried setting some flags like "lba" etc on the fat32 partition but no luck. I even tried to flash the ext3 kernel and partition the card in fat32/ext3 with the same result, "Damaged external sd card" in the notification telling me to reformat the card (which results in one big partition again and GParted seeing the card as "unallocated" space).

SIGH!
[Galaxy S I9000 Android Development] Akerfeldt:
When partitioning with GParted should I make the ext3/4 partition as a Logical Partition inside an Extended Partition or simply as a second Primary Partition after the fat32 partition?

Thanks
[Galaxy S I9000 Android Development] lenrek:
Should be 2nd primary partition.
[Galaxy S I9000 Android Development] lenrek:
Ouch! I wrote it earlier here sharing my experience, stated not to format using the phone. Is a big thread, I guess it got missed out...

Let's just say loudly this time.

Don't format the external SD card via the phone, it would wipe out the 2nd partition and use the whole card as a single fat32 filesystem.
[Galaxy S I9000 Android Development] Jabbypants:
Is it normal for certain cards to no work i can't for the life of me get my 16gb card to work on it.
[Galaxy S I9000 Android Development] damianarnold:
What problem are you having?
[Galaxy S I9000 Android Development] djase:
works fine but black screen with music after start.
[Galaxy S I9000 Android Development] lenrek:
I am using 16gb, no problem. Though, I only create the 2nd partition as 1gb, as I read from the thread, it seems, those with smaller size works fine.
[Galaxy S I9000 Android Development] phete:
So is it some flag or something I'm missing on the partitions? Because this is just rediculous... without a "real" card reader my only option is to have the card in the phone and mount it from there when booting GParted, what could possibly have gone wrong? :<
[Galaxy S I9000 Android Development] Jabbypants:
I have it now set up with a 2gb card and it works fine, when i try my 16gb card with a 1gb patrician it gets to the Samsung boot up then the screen just goes black and nothing after that.

I have re-flashed the JG5, superuser and then put the flash for the fix no joy, partitioned the 16gb card but the same, i have tried ext3/4 with the flash needed but it just won't boot past that screen.

Soon as i put the 2 gb card in it works straight away, for the life of me i can't get it to run from the 16gig card and i know the card is fine as i used it on my Desire and wanted to use it on the galaxy with this fix.

Really hope someone can figure out why it won't work its driving me mad.
[Galaxy S I9000 Android Development] sammy555:
what is the difference between ext3 and ext4? what is recomended?
[Galaxy S I9000 Android Development] joe611:
Thanks guys for the help with the sd card.

To those who are having "Damaged external sd card" but does not have a proper card reader, but does have a card reader inside a laptop, it probably wasn't recognised by GParted Live (for me anyway on a macbook). But by using the disk utility in a ubuntu LiveCD, I was able to format it correctly using the laptop's built-in card reader.

I have another question though, how do I know whether the installation of this patch is correct?
[Galaxy S I9000 Android Development] boredtoday:
I'm experiencing all of these in my SGS. I'm using KingMax microsdhc class 6. (fresh wjg5 flash)

any solution to this? anyone else having the same problem?
[Galaxy S I9000 Android Development] bommel0815:
a way to check could be this:

The App "Got To Do" (lite version available) takes rather long to safe stuff on the Galaxy.

say you create a new task, and you change the priority by means of a pop up list. It takes one or two seconds without the fix to close the box again (already rediculous), with the fix and my Kingston card it takes anywhere up to 8-10 seconds. (I also have the benchmark problem)

I will try with a new sandisk card later this week. hopefully it improves.
[Galaxy S I9000 Android Development] lenrek:
Is your partition more than 2gb? I thought, I saw discussion in the thread, making the partition > 1gb is really a waste of space, and it seems those who don't report problems are using < 2gb partition.

Mine is just 1gb, no problem so far.
[Galaxy S I9000 Android Development] Fredrichc:
That is odd, I downloaded "Go To Do" to see if I had the same problem. When I follow your little test it closes the box instantly without any delay at all. But Quadrant is stalling for me at I/O... I have yet to see a "real world" stall, as of now it only happens in Quadrant.
[Galaxy S I9000 Android Development] dahool2008:
where can we get the open source code??
[Galaxy S I9000 Android Development] Chainfire:
Also stickying this one for the time being.
[Galaxy S I9000 Android Development] meepmeep2006:
Couldnt apply this fix with adb so did it with terminal emulator :)

Im running JG5 with some random 4gb sd card which i dunno the class of used ext4 and im scoring 1776.

Thanks you so much for this fix :)
[Galaxy S I9000 Android Development] ginkage:
Is it possible to create a custom ROM, which has ext4 support built-in, and system partition of internal memory (afaik, it's divided in two parts, one is 2 GB for system, and other is 6 or 14 GB for user data) pre-formatted with ext4, so that no SDcard or additional actions would be needed?
[Galaxy S I9000 Android Development] Darkstriker:
No. we cannot partition the internal sd card like that. The custom roms don't touch that storage card.
[Galaxy S I9000 Android Development] aciduzzo:
hey guys, thanks very much for this fix. it really made a huge difference to my SGS.

just out of interest tho (and forgive me if it's already been posted - if so, i haven't seen it), but how could i reverse the SD card fix and revert to the original setup should i ever need to. Would a hard reset suffice?

Thanks!
[Galaxy S I9000 Android Development] boredtoday:
whenever i partition, i get the option to make it a logical partition, should i tick the checkbox or not?
[Galaxy S I9000 Android Development] clubtech:
Can this be used on the Vibrant or Captivate?

I tried this on the Captivate and it totally messed up my G-sensor and i can only longer control the power button when in recovery mode (thus can;t select anything).
[Galaxy S I9000 Android Development] BackfireNL:
I would like to know that 2!
[Galaxy S I9000 Android Development] damianarnold:
It should be a primary partition. First partition being a FAT16 or FAT32 (depending on whether you have a HD card or not) the second being a EXT3 or 4.
[Galaxy S I9000 Android Development] mcmugchu:
Dear all,

I've followed every step of this guide and double checked I've moved the data files and created the symbolic link correctly.

However after rebooted, every process keep force closing...

Anyone know what's wrong?

Thanks.
[Galaxy S I9000 Android Development] aciduzzo:
ok, this is very odd. i removed SD card, however after i replaced it and restarted phone, i get continual FCs for ADW launcher!! I click on Force Close, but the same ADW app keeps giving me FCs over and over. everything was fine before. any ideas how to fix this?
[Galaxy S I9000 Android Development] Jabbypants:
Mine was nice and fast for a few days but its gone laggy again now, why can't they release these phones without problems, takes away from wanting to use it and makes me want to sell it and keep my Desire that is super speeds compared to this.
[Galaxy S I9000 Android Development] boredtoday:
i flashed jg5 and it made my phone really fast.

i wanted faster so i tried this fix, and it slowed it down instead. quadrant scores are super high (1700++) but real world user experience is bad (your usual black lag screen)

suffice to say, i went back to clean jg5 which scores 890 on quadrant but feels much much snappier during regular use.

anyone experienced the same?
[Galaxy S I9000 Android Development] Jabbypants:
I get the black lag screen without this fix and its snappier with it, had to reboot my phone as the sd card wasn't being picked up and seems fine now.
[Galaxy S I9000 Android Development] sl8125:
This was my concern too. I guess i won't try it now. Glad I did the research. I had to read all 23 pages. Mang. I hope someone in captivate could figure this out somehow.

Edit: Can you not reflash to the factory rom again? That way everything is back to normal.
[Galaxy S I9000 Android Development] Darkstriker:
This tutorial doesn't modify anything related to your recovery screen so it think it is rather unlikely this is caused by the fox posted here.

Even more: the recovery screen does not use any of the files that are regularly accessible on the memory! Are you absolutely sure this can only have been caused by the fix?
[Galaxy S I9000 Android Development] sl8125:
Are you talking about the .Tar file? I assume these fixes would work on the captivate. We are not flashing a new rom or something. I would like some help with this. Once we make it work. I won't need a new rom. I kind of like TW. I just want to cure the lagg on the Captivate.
[Galaxy S I9000 Android Development] Jabbypants:
No one got any ideas why i can get this to work on a 2gb card but when I try on a 4gb/16gb I have it just won't go past the boot up the screen just goes black and nothing happens.
[Galaxy S I9000 Android Development] TehMoe:
I did the stall fix last night and everything seemed to be going great, then today while i was chatting with my mate on talk it kept making some load beeping sounds then i couldnt open any app, kept getting FC with anything that wasnt a stock app. After that my launcher pro started to crash so i decided to do the fix again and my odin failed at the flashing set and my phone got bricked. I manage to unbrick it quiet easily but im still wonder why I got those FC and what went wrong exactly. Thanks in advance.
[Galaxy S I9000 Android Development] damianarnold:
What size ext3/ext4 partition are you creating?

Try creating the FAT32 as the largest partition (for music etc) and set the ext3/4 to <2Gb.
[Galaxy S I9000 Android Development] Jabbypants:
I have tried lots but always put the biggest as fat32 and only try a 1gb partition, i have tried ext3/ext4 but its always the same thing on the 16gb/4gb cards i get the Samsung boot up but after the screen just goes black bit the 2gb card works fine.

There is nothing wrong with the cards as i used them in this phone and in my Desire to put things on.
[Galaxy S I9000 Android Development] sammy555:
Ive just done it on an old very slow 1gb card and scored 1400 in quadrant(was about 850 before fix).Overall now all apps are reinstalled id say its a little better than the nand fix in overall snapiness.gallery loads a lot quicker than it did on with nand fix but currency converter slightly slower,most things are a little quicker though.Imagine with a decent card would be better still
[Galaxy S I9000 Android Development] aciduzzo:
from my own experience, the answer is FACTORY RESET is all that's required. :D
[Galaxy S I9000 Android Development] :
with this fix moving /data/data to the ext4 partition, all cachecleaner or cachemate are rendered useless? :D
[Galaxy S I9000 Android Development] raspdeep:
ya, i noticed that too.. still dont understand why symbolic links doesnt work well with cachemate
[Galaxy S I9000 Android Development] lenrek:
Have you checked the filesystem structure? Is it correct? You need to make sure ext3/4 is mount and the symbolic links are valid.
[Galaxy S I9000 Android Development] r4ng3r:
can anybody explain the commands above?

I've fixed the lagging problem with the ext4 partition and executed the

first lines.

Yesterday i executed the market issues lines and all my app data is cleared

and the quadrant benchmark scores decreased from 1700 to 850.

Ideas to fix these?
[Galaxy S I9000 Android Development] bommel0815:
sure:

adb shell type that on your PC. opens a command line prompt for issuing commands to your phone

su - grants you super user rights so you can modify the system

busybox cp -rp /data/data /disk/ copies your application data to the SD card ext3 partition

busybox mv /data/data /data/data.bak moves the data you just copied to the SD out of the way on the internal memory

busybox ln -s /disk/data /data/data makes a link from your internal memory to the SD card data, so the Galaxy still sees the data altough it now resides on the SD card

to fix market issues:

busybox mv /system/media /disk/ moves the media directory, where the market stores stuff to your SD card (that is mounted on /disk by means of this update.zip patch)

busybox ln -s /disk/media /system/media links back the media you just moved to the /disk to /system/media so the galaxy still finds it

reboot self explanatory :)
[Galaxy S I9000 Android Development] Jabbypants:
What does all that mean lol, am not thick when it comes to these things but not sure what you mean by those things.
[Galaxy S I9000 Android Development] rodney.cabahug:
done!

i was just done installing this fix. i dont see any problem whatsoever.. and yes, my phone is so much faster now. got 1630 from quadrant!

i did notice one thing though, while i was benchmarking my phone using quadrant, database reads and writes seemed to be the ones left that took long to complete. i wonder if whether we can move the database to the ext4 file system, too.. or is that exactly what we are doing by moving /data/data to ext4?
[Galaxy S I9000 Android Development] lenrek:
From what I understand, the part that causes slow/lag is the partition of data/, the rest shouldn't be a problem.
[Galaxy S I9000 Android Development] rodney.cabahug:
yes. i got that, too.. but im wondering where the database file is store.. is it in the /data directory, too? or is it somewhere else?
[Galaxy S I9000 Android Development] lenrek:
Err... I am not sure as well.

However, besides the 2 directories stated in 1st post, I had moved /data/davlik-cache into /disk/davlik-cache. My understanding of the word "cache" means, frequently/recently access memory/data. So, thought moving it to /disk should improve the situation.

I also installed "Advance Task Killer" and set it as "aggressive" to auto kill after blank screen. So far, no lagging after a few days of operation and it seems to run smoother now.

I did not use the default launcher from Samsung, I find it too iPhone-ish and seems to take more memory than those free launchers found in the market.