yashsingh1/xdaforums huggingface dataset:
[Android General] Giobio:
it could depend because i change the pit file?

i did not understand the part in gloss...in what menu recovery have to show usb mass storage? i don't see it in any menu of recovery.

if i can't solve the problem is it possible to get the previously state?

Anyway, i think 1) to loose the superuser permission(when u use terminal you get the popup notification and me not)

2) as my pics shown only sdcard is vfat(did u check yours?) and i think all 4 have to be the same.

3) why when gparted is ok then i can't use internet browser and diskinfo doesn't see the internal card(if a get ext4 from recovry i can use apps)
[Android General] philippe734:
1. Watch again video part 1. You will see at before restore data to sdcard.

2. I dont understand.
[Android General] philippe734:
[MENTION=5845001]Giobio[/MENTION] : Watch video part 1 and jump to 3:35 to see the recovery displayed "usb mass storage, leaving this menu unmounts your sdcard from your pc" and keep this state upto the end of the format's process.
[Android General] Giobio:
1) Yes, I have the storage usb mass. Otherwise i was unable to start the partition with gpated.

2) I meant using diskinfo. Mine, show my internal sd card (made from cache, system, data and sdcard0), are all formatted in ext4 but not sdcard it was in vfat(see my pics).

Now i think to have solved the problem but I don't know if in a clean way. I can manage files with file manager but I have a folder I can't delete(the one that gparted create to put file before formatting).

At the end I formatted the sdcard trhought the recovery and now sdcard0 too is in ext4(see point 2). Was the only way to use the browser to copy the code for terminal.

But now there is a problem with whatsapp update....
[Android General] laotzy:
The same problem here - I can't update WhatsApp. When updating, the update is downloaded, then the system tries to install it, but finally the process always stops with this error: inadmissible file of package... Any other aplication or update are installed perfectly. I tried all types of tricks - uninstalling WhatsApp and the installing it again but no luck. The older version on my telefone works fine and I easily restore it from Titanium backup.
[Android General] Giobio:
I haven't tried to restore whatsapp with titanium because i though isn't there the problem. It works as it has to do, but only updating there are issues.

Anyway if I understood, you have the same problem after formatting in ext4?

---------- Post added at 11:28 AM ---------- Previous post was at 10:57 AM ----------

I've discovered one more thing:

If I reboot I lost all terminal job.

I'm not able to manage folders in file manager. I have to write down again into the terminal to have access to the file manager.

Do my problems depend from that?

And more I always find, after rebooting, a folder created from Gparted even if I delete it, it appers again
[Android General] Giobio:
Look at the picture, is this the default setting? (Before make the change to ext4)

And more if a reboot in recovery and plug the phone to the pc it don't recognize the phone and ask me to format sdcard. Can be a good way to back to default?
[Android General] philippe734:
True, it,s the default system before formated to ext4.
[Android General] Giobio:
So S2 already born with cache system and data in ext4?

Did u read my post #89?
[Android General] philippe734:
Please, read all the first post, entirely. Because several questions you asked have responses in the guide :)
[Android General] Giobio:
And if the problem could depend I use CM11 superuser? If I install supersu from the store, could works ext4 to me too?

Do you laotzy have supersu installed?
[Android General] blmvxer:
I've been thinking about writing a File System Modifier called FSMod.

It'll take whatever free space is left and change it to the new filesystem and then moves chunks of data to the new FS while changing the FS of the newly created free space from the Old FS.
[Android General] philippe734:
What problem ? Do mean about the whatsapp update ? If the 2 checks are good, so I'm pretty sure that the ext4 not concern the whatsapp update. I'm lost about you. What about the 2 things to check ? What are the results ?
[Android General] philippe734:
What is the aim of it ? Why do it ?

Just because a user fails to follow a procedure or a user has a problem with an app; must develop a sophisticated tool? No, I think it is not necessary.
[Android General] Giobio:
Sorry I forgot 's close to cm11.

I meant that I didn't have installed supersu, I just used the superuser of the rom.

I DON'T REMEmber 2 things to test, I made lots of them and written so many things here and now I put all as before.

Anyway, I think the problem was that. Now I have installed superuser app and tomorrow I'll try again.
[Android General] laotzy:
I have SuperSU but I don't use it anymore because I am quite happy with the stock CM superuser. I don't think the CM superuser has anything to do with WhatsApp update problem. I am going to format my memories back into FAT32 and try to update WhatsApp. Then I will format everything back to ext4. ;)
[Android General] Giobio:
Yes, I checked. I definitivly back to vfat filesystem. My S2 is unable to set ext4.
[Android General] philippe734:
Ext4 is not supported by stock samsung rom on S2. It's support by android 4.x AOSP roms (CM11...). What is your rom ?
[Android General] Giobio:
I wrote down it a few times.....I use CM11 Linaro one, built by markox89.

Do u read my posts? :confused::eek:
[Android General] Giobio:
1) Could runtime ART block the formatt of filesystem in ext4?

2) When ext4 is fixed, if you formatt the phone to install a new rom in a full clean way, does it back to original or keep fixed?
[Android General] philippe734:
1- no

2- keep ext4 because a rom don't touch sdcard.
[Android General] philippe734:
After many troubles, what is your situation now ? [emoji4]
[Android General] Giobio:
vfat situation. I don't know what to do.

mparus from another thread(you follow too) gave me a procedure but wasn't able to turn it on ext4. what he shown to me is different in my attemp. so i leave it in vfat.

I need of a noob procedure, step by step. If I follow his guide the system show to me different things. That is his prcedure:

http://xdaforums.com/showpost.php?p=55120256&postcount=143
[Android General] philippe734:
1- I think there is a nut somewhere in your configuration. I suggest you to keep your actual file system and stop try to format ext4. Remember, the only advantages to switch to ext4 is to say good bye to the famous music bug and no more lags while video recording. These are not awesome you know.

2- Funny procedure but not for a beginner :)
[Android General] Giobio:
1) Yes, I already stopper to try.

I know about the sound andò video bugs but not they're solvingable by formatting the FS. So, one more reason to continue...

2) Yes soooo funnyyyyy:D:D:D... Anyway it need only to copy and past words sequently. Tried possibile and impossible so it could depend in something of stupid or my device keep me as anemy
[Android General] mparus:
Funny?
[Android General] Acid0057:
I don't shoot much video on my phone but it seems to work okay. What I have is Google Camera not working properly with Photospheres and Gallery Images taking a bit to load. Would this be corrected if I follow your steps in the OP?

I'm on CM 11 M9 Standard Kernel.
[Android General] philippe734:
There is almost no risk. You can try. There are more risks to have FC or issues after change the kernel for example.
[Android General] j1gga84:
[MENTION=5845001]Giobio[/MENTION] wrote something about different PIT files, I think he means this modification: http://xdaforums.com/galaxy-s2/development-derivatives/mod-partition-internal-memory-app-t2538947

So, I am on the same ROM like him (CM11 linaro/sabermod by [MENTION=1597520]Markox89[/MENTION])

AND I also did the modification of the above link (increasing app partition size from 2GB stock to xxGB (in my case 6GB !)

I did not change the preload partition which is also explained in this thread.

so my question is: can his problems (and maybe these could also be my problems if I will try this guide on the weekend) come from this modification? If this could be, I think you have to mention that in opener because many users of I9100 (Galaxy S2) uses this modified PIT files to get bigger internal storage for app installation.

Also the WhatsApp problem must be related to the change to ext4 if it works with vfat, what else should prevent updating WhatsApp if it worked before with another file system?

To the guys that have problems with updating whatsapp: Have you tried it again with ext4 and vfat? And if yes, did it work or same problem like in ext4 ?

And regarding this guide to format sdcards to ext4: I have problems to copy files from internal to external SD, sometimes file transfer stuck and I have to reboot my device. I think this is also related to the eFuse music bug and will be gone after formatting to ext4, correct?

Many thanks and regards
[Android General] luxe38:
thanks for the guide
[Android General] Zile995:
And... Do you have fuse bug? [emoji4]
[Android General] Facuu:
When you make a full advanced wipe in twrp and set sdcard to wipe, twrp then say it's formatting the sdcard, will it format it or will it keep as ext4?

i'm going to test it tonight
[Android General] k__k:
Nope, my i9100 plays music at least 8 hours a day and I haven't encountered fuse bug since formatting to ext4 :)
[Android General] Zile995:
Thank you. [emoji4]

Finally! [emoji1]

Internal:

External:

But only problem is windows.

There was a problem installing this hardware: SAMSUNG Mobile MTP Device

I formated internal and external memory in gustavo kernel 26.03 recovery.
[Android General] philippe734:
In recovery, before format, if no file system is available, then it will not ext4 but maybe vfat.
[Android General] Zile995:
MTP driver error. I can't connect my phone with windows PC [emoji20]
[Android General] philippe734:
In my opinion, yes. But I have no proof.
[Android General] philippe734:
windows users, if you want to still use UMS instead of MTP, after formated to ext4, then you can. Go to recovery and select mount USB storage as the guide and connect to windows.
[Android General] philippe734:
Read my previous comment.
[Android General] Zile995:
Thank you bro!! [emoji122] [emoji106] [emoji4]
[Android General] philippe734:
About your MTP error, in the aim to compare, try to connect in MTP with two others windows (> vista+) computers. Then report here please.
[Android General] Zile995:
I know. I have crappy windows xp. Also and mount USB storage doesn't work on my system.

Edit: Fixing permissions doesn't work on dorimanx kernel. Him strange. No SD card when I want to download something.
[Android General] Giobio:
At the end, did you close the terminal and rebooted android?
[Android General] Zile995:
I fixed sdcard0 and sdcard1 and after that I closed terminal and rebooted android.

But now I can't menage sdcard on dorimanx kernel.
[Android General] Giobio:
I asked you because a few days ago I did the same but without fixing the procedure. Unfortunelly I wasn't arrive to plug the device to pc....
[Android General] Acid0057:
Giving it a go then! Thanks Philppe.

EDIT: okay I'm trying these two commands after formatting to ext4:

find sdcard0 -type d -exec chmod 0775 {} \;

find sdcard0 -type d -exec chown media_rw:media_rw {} \;

And it says Cannot chmod read-only file system on chmod and cannot chown read-only file system on the second. I stopped after that.
[Android General] Zile995:
Read only for me also, but after changing the kernel. It was OK with stock cm kernel.
[Android General] Acid0057:
Then I'm kinda at a loss then. I'm on official CM 11 M9 Snapshot with the Kernel and Recovery that came with it. Any ideas?
[Android General] Zile995:
I am on CM 11 M9 also.

What i did...

First before CM 11 installation i flashed gustavo kernel kk 26.03 CWM.

Then rebooted into recovery.

Full wipe.

Flashed CM 11 and gapps.

In mount and storage formated sdcard0 and sdcard1 to ext4.

Rebooted system

Fix permissions.

And i changed kernel...have flashed dorimanx kernel. And... Problem!
[Android General] Acid0057:
Did you try it on the normal CM Kernel? I'd prefer to stick with it, it was pretty stable.
[Android General] Zile995:
Please read again [emoji4]

First i flashed gustavo kernel and after that CM. If you flash any custom rom then that custom recovery will be overwritten with recovery from that rom. Kernel will be also overwritten. So you will have CM11 kernel, not gustavo, but only if you follow my instructions [emoji5] [emoji6]
[Android General] Acid0057:
Sorry about that. Okay I've done that and still I'm getting stuck at the part where I'm fixing permissions on sdcard0. I don't have an external SD in this phone.
[Android General] philippe734:
It seem that fix permission work on stock kernel and not on dorimanx kernel. I don't know why.
[Android General] Giobio:
Is only the kernel the difference or the problem could be the rom too? I mount a CM11 Linaro/SaberMod. Could be that too the reason I'm not getting the fix?
[Android General] roshan2989:
hello there,as i follow every detail that wrote in OP..but im getting error while formating to ext4... here is the log files

View attachment 2926564

P.S..after failed to format to ext4,i tried exfat which is failed to ..the log that is attach is the log from exfat
[Android General] Giobio:
Hi, I tried again to change in ext4 and this time, after using GParted, the terminal gave me back what shown in the attached pictures (I wasn' t able to take a screenshot picture).

I think is something nobody watched or uploaded before. Anyway the final result was worst than last one.
[Android General] philippe734:
You have foots instead of hands ? Joke. I saw a mistake, not "-typed" but "-type d"
[Android General] Giobio:
Yes, you're right....

But sometime I wrote down correctly by hand line by line and did not work at all...

Maybe that kind of errors depends from "-typed".....

I'll retry!!!!
[Android General] j1gga84:
[MENTION=5845001]Giobio[/MENTION]

which kernel do you use? Dorimanx? I guess Dorimanx does not support ext4 :(

EDIT:

ext4 support was added to latest 10.44 RC2 kernel. Check:

http://xdaforums.com/showpost.php?p=55312448&postcount=10477

So if you could check again if this tutorial work for you now would be great :)

Regards
[Android General] Giobio:
I use the cm11's stock kernel, and tried both with official cm11 than linaro/sabermod one.

Usually after changing the partition at terminal I have "Unable to chmod sdcard0: Read-only file system"
[Android General] j1gga84:
Hmm thats strange..

to the users where this guide work: What kernel/ROM do you use?

Regards
[Android General] Giobio:
Now I' m using cm11 official but usually linaro/sabermod.

With vfat I'm able to take screenshot but in ext4 after partition, I don't.

I use ART runtime, but with dalvik doesn' t work too.

Now I'll try with apolo kernel, somebody told me he done it with that kernel flashed...
[Android General] Giobio:
YESSSSSSSSSSSSSSSSSSSSSSSS

I FINALLY DID IT!!!!!

Special thank to teraßyte!!!
[Android General] fluorine:
Not working as expected...

Hi!

Today I tried to format my external SD Card to ext4, but it simply did not work. I do not know why, so here's what I did:

My laptop runs Ubuntu 14.04 32-bit and I have a Samsung Galaxy S2 i9100 (International) with CyanogenMod 11 M9 stock.

First thing I did was create the media_rw group with Group-ID 1023 and add my existing user, just in case. Then I enabled ADB in the developer options menu to fix the permissions later on.

After connecting my phone to my laptop, I rebooted to recovery and went to "mounts and storage" and selected "mount USB storage". I copied all the content of my SD card to my laptop and opened GParted 0.18.0. In there, I selected my SD card (/dev/sdc) and unmounted it (otherwise it would not let me chose the "Format as"-option). Then I proceeded with "Format as -> ext4".

Well, all goes according to plan until:

set partitiontype on /dev/sdc: 00:00:00 ( ERROR)
libparted messages (INFO)
/dev/sdc: unknown partitiontable

So I created a partitiontable (msdos) and formatted to ext4. Problem solved? Not really, because I could not write on my SD card anymore.

After that, I tried to format it with a GParted Live CD, just to see if there's something wrong with my configuration, but the same error occurs again. So at last I took out the SD card and formatted it with my SD card reader to ext4.... and I still could not write on my sd card. So here's what I did: I formatted the card back to fat32, copied my data back and put it back in my phone. The card was not recognised, so I went into the android storage settings menu and formatted it again. The SD card now works again, but still with fat32.

Can someone please help me to figure out what I did wrong or even better: How can I resolve this?
[Android General] j1gga84:
congratulations ;)

What was the problem/error finally?

Regards
[Android General] Giobio:
Well,

maybe I did not use the cleaner way. I only change the original cm11 kernel with gustavo and after, I was able to use the procedure at terminal (right now I never wasn't).

I formatted in ext4 in recovery mod (If I get it with GParted i can't use then the terminal) and then put down the procedure to fix it at terminal.

All is done without issues and made the verify as the post #1 says.

Somebody told that in recovery way is worst than gparted but is the maximum I can....
[Android General] philippe734:
I have no idea. I'm not aware about linux/unix commands. I can just suggest you to follow exactly as the guide post#1 and watch the videos. Some user had troubles to did it, maybe cause by kernel differences.

I am impressed with your stubbornness ! Check again to be sure ;) (post#1)

I hope that your efforts will serve you.
[Android General] fluorine:
I did exactely as suggested in post #1, but after "- Wait the end of process :" the errors started to occur. :(
[Android General] Giobio:
What I don't understand is....Why formatting with GParted I can not use correctly the fixing procedure at terminal? And why changing the kernel...

---------- Post added at 04:21 PM ---------- Previous post was at 04:16 PM ----------

what kind of error and when along the whole procedure? Maybe I can help you, I ever had problems after using GParted...
[Android General] fluorine:
Here is the GParted Error again:

set partitiontype on /dev/sdc: 00:00:00 ( ERROR)
libparted messages (INFO)
/dev/sdc: unknown partitiontable

It is shown right after it should successfully format my sd card to ext4.
[Android General] Zile995:
Like i said here:

And here:

[emoji1] [emoji4]
[Android General] ixayman:
<deleted
[Android General] Giobio:
But if you firstly install gustavo and then cm11, don' t you loose gustavo? (it'll be overwrittem by the cm11's kernel)

Anyway, when i flash again a new rom or an update, i loose all fixing and i can't use file manager.

So really i' ve tried avery way and always having to back to vfat :(
[Android General] Acid0057:
Okay I was following along and GParted said Unrecognized Label on the original FAT32 partition on sdcard0. After that sdcard0 wasn't formatted at all. I asked GParted to make a msdos partition table and then formatted sdcard0 to ext4. Rebooted recovery, copied files back on, rebooted into Android normally.

Launched Terminal and tried to fix permissions and I'm stuck here:

bash: cd: /storage/sdcard0: Permission denied
/$ su
root@GT-I9100:/ # ls -la /mnt/media_rw/
drwx------ media_rw media_rw 2014-09-08 15:30 sdcard0
drwx------ media_rw media_rw 2014-09-08 15:30 sdcard1
drwx------ media_rw media_rw 2014-09-08 15:30 usbdisk0
root@GT-I9100:/ # cd /mnt/media_rw/
d -exec chmod 0775 {} \; <
Unable to chmod sdcard0: Read-only file system
root@GT-I9100:/mnt/media_rw # dir
sh: dir: not found
127|root@GT-I9100:/mnt/media_rw # df -h
Filesystem Size Used Free Blksize
-h: No such file or directory
1|root@GT-I9100:/mnt/media_rw # exit
/$
[Android General] Giobio:
Welcome in my world...

It heppens to me too. No ideas how to definitly solve it...
[Android General] Acid0057:
Well that's encouraging. I can at least get the SD card working again by formatting it in recovery back to FAT32
[Android General] Giobio:
I'm sorry to encouraging you so strong :) but I really tried all imaginable and unimpossible, and had to back to vfat. No suggested way worked on my S2. By my side, it seems is using GParted the problem.

I'll try the last way suggested by a friend. On his device, he says it works.

So if you'll not find a regular way and my last could work, I'll say you...
[Android General] JavaScout:
Btw, guys: it is not possible to mount ext4 partition even via recovery. So, the only way left to transfer files is Linux...
[Android General] Giobio:
No way again. stop to try!!!

---------- Post added at 08:33 AM ---------- Previous post was at 08:32 AM ----------

But someone told it's possible using GParted...
[Android General] Acid0057:
I'm no gparted expert but since it works in Linux (parted magic is based on linux) it should be possible. Let me know how your friends method works and I'll be willing to give it a go too.
[Android General] Giobio:
Yes, I agree with you...
[Android General] Acid0057:
Can't wait to see your friends method.
[Android General] jnetode:
Hi,

is there a size limit for the external SD Card?

I tried with Gustavos kernel and internal SD card was super OK. For the external, the format will not conclude. If I format with CWM as exfat it works, but as ext4 no.

I have a 32GB external SD card.

Thanks
[Android General] Acid0057:
Not sure about a limit in the Kernel or Android but ext4 does support large drives and will support 32gb. 32GB is also the max size that the Samsung Galaxy S2 GT-i9100 hardware physically supports too.
[Android General] Giobio:
Try to flash a new rom or clean the one you're on and tell me/us if you mantain the fixing....
[Android General] jnetode:
OK. So I tried so many times to format the SD card on the phone and I just realized that the thoughest part was already done since the beggining (format internal SD card).

So a little googling brught me to the Minitool Partition Wizard Home Edition. I pluged my SD card on an adapter on my windows PC and ran Minitool.

I could not format the whole SD card into ext4, only 29.9GB. So 8MB could not be partitioned (which in such a card is peanuts) so I did it.

Took the card on the phone, applied the permition lines on terminal and it is all working.

So, if you have problems or do not want to play linux, I strongly recommend Gustavo's kernel 23-06-CWM, formatting the cards on CWM. If you have problems with the external SD, Minitool can just do it.

:cool:
[Android General] Acid0057:
I wonder if mini partition would work for the internal SD too......
[Android General] jnetode:
I wondered that too.

Maybe mounting the SD card on the recovery and then using it.

Someone could try this.
[Android General] Giobio:
I'm interesting firstly to change in ext4 the internal sdcard.

Using gparted (i'm not into linux but windows8) to format the sd card then I can't use terminal (give me back errors). If I format throgh recovery, I do but if I try to change rom I lost all the fixed setting (still in ext4 but I can't manage the folders into file manager).
[Android General] Zile995:
+1

I think that is normal.
[Android General] Giobio:
FINALLYYYYYYYYYYYY. I know something more I did not know....

I tought it was something of definitly as changing PIT file.

1) Do u think it could happen even if the partition is changed with linux S.O. or GParted? (Of course with Gustavo kernel mounted).

2) Do u know why formatting with gparted the terminal gives back something like...... i don't remember :) but it don't take on the fixing and for example, the device don't take screenshots too
[Android General] jnetode:
So if the problem is setting again the rights when installing a new ROM, could we make a script for doing that automatically?
[Android General] Zile995:
+1 Good idea. You know how to make?