yashsingh1/xdaforums huggingface dataset:
[Android General] k__k:
I'm stuck at the "Check permissions" step, when I adb into my phone while it's in recovery mode path /mnt/media_rw/ doesn't even exist. When I tried it when phone was running android I got:

root@GT-I9100:/ # ls -la /mnt/media_rw/
drwx------ media_rw media_rw 2014-08-28 00:34 sdcard0
drwx------ media_rw media_rw 2014-08-28 00:34 sdcard1
drwx------ media_rw media_rw 2014-08-28 00:34 usbdisk0

which, I guess is bad. I tried to chmod those catalogs, with no luck:

root@GT-I9100:/mnt/media_rw # chmod 755 sdcard0/
Unable to chmod sdcard0/: Read-only file system

I'll add that I used gparted and it at first couldn't create partition, leaving it without partition table. Only after creating new partition table and then ext4 partition itself it succeded. On the bright side, battery life got much better as only basic functions are available, much recommended ;)

But seriously, any hints much appreciated, guise :(
[Android General] philippe734:
OMG, you wish help in emergency ;)

I suppose that you had backup data of your sdcard on pc before formated. So, don't panic. I propose you to start again. Same as guide, format again using parted magic in live cd and not virtualbox. At the steps to fix permissions, if you use a terminal, you need to verify that "su" have granted root access. Go to superuser to check this. To fix permissions with terminal, you need to type in several times and not in one times, not execute all commands in only in one time. After fix permission, execute commands to check permissions, you may have a different reply in opposite of before.
[Android General] Giobio:
Thanks for the help

OK I'l try again to install ext4. Anyway I used GParted, virtualbox is something of unknown to me.

I didn't understand about fixing permission. I used Pc for GParted and my S2 (I bet on your are smiling now...) and don't understand what have I to type, where... the guide didn't talk about typing..

If you meant to type linux codes, i'm not able to do that but the guide didn't talk about typing so I tried to do all.

Now I'm back to stock rom with odin and I'm always on bootloop.

I'l try to flash cm11 and than I'll follow what you suggested me.
[Android General] philippe734:
Fix permissions is needed to finish the process. I think there are 2 way to fix permissions.

With ADB or with a terminal under android (root)

I don't know ADB, but you can find some guide on xda to ADB.

To fix permissions, have you did this with a terminal (or ADB) :

If not, that's the trick, do it ;)
[Android General] laotzy:
I have successfully managed to format the Internal and External memories of my Galaxy S2 into ext4 format. It wasn't easy for me because I am absolute noob in the field of Linux. As a matter of fact the procedure is not that difficult as it seems. My error was in reading the Linux commands badly. For example, the line " find sdcard0 -type d -exec chmod 0775 {} \; " was interpreted by me as - to find (somewhere in the Terminal of the phone) sdcard0 and then type the letter "d"... Can you imagine??? So, for those who are not on board of Linux: you have to copy everything, line by line, from the Post 6 into the Terminal of your phone BUT before you start fixing permissions don't forget to type su in your phone's Terminal. I could format the Memories into ext4 from CWM of my device - no problems at all. I didn't need to use Ubuntu which I also have here. Only my phone's CWM. After that I had to execute all those steps from the Post 6. And REBOOT the phone. You don't have to type the word "reboot" in the Terminal, you have to reboot. That's all. I have explaned everything from the point of view of a noob for those who are newbies. Ah, I start liking Linux but I am too old to remeber all those commands... It's easier for me to make a click on a picture.

P.S. The only problem with my phone today is that I cannot install today's WhatsApp update although the previous version works fine. But it may be a problem of something else and not of ext4.
[Android General] philippe734:
Thanks for my laugh ;) I will modify my guide to more details.
[Android General] philippe734:
To check if permissions is done, go to browse files under android, with an app to browse file. Then, create any folder at the root of your sdcard ext4, then delete it. If done, permissions is ok.
[Android General] Giobio:
Thanks again Pippo,

I solve the problem by another way.

As I told you I was on stock rom bootloop, solved flashing rootsupersu/recovery. At first boot (even in stock rom, I use 2 recoveries to get cm11) the bootloop was ended and more, the system automatically recognized an issue to the sd0 and put it as it have to work. Than, I ending installing cm11 rom and continuing to see sd0 with the file manager. And more the file system is in ext4 (verified with DiskInfo app).

So it seems all ok now. Could be that another way to solve the problem?

Anyway I'll copy your terminal procedure to ending, as GOD wants, the procedure, so next time I'll be able to do it myself.

Let's see now if performance are better...

Thanks again
[Android General] philippe734:
I suggest you to do that to be sure that permissions is fine to avoid big troubles.

Check permissions

To check if permissions is done, go to browse files with Android, with an app to browse files. Then, create any folder at the root of your sdcard ext4, then, delete it. If you will able to delete the folder, then permissions is fine. If not, then go back to follow again steps about fix permissions.
[Android General] Giobio:
Yes, I did it.

If you meant browsing with a file manager, yes I did. I create a folder, copied a file inside from sd card and deleted it.

Happy to continue with my S2 again!!!

---------- Post added at 08:41 PM ---------- Previous post was at 08:22 PM ----------

I'm checking better on DiskInfo app the filesystems of "every disk". It says:

Internal Storage

Cache in ext4

System in ext4

Data in ext4

SD Card in vfat

Don't tell me I have to repeat all.....
[Android General] laotzy:
Dear philippe734, thank you for your fast reaction :) I must say that I can see the difference and ext4 works slightly better. I can't say anything about the music bug but in general everything works a little bit better. Now I am going to try your trick to cure the WhatsApp.
[Android General] k__k:
I was able to fix it by getting Gustavo_s kernel + CWM and then formatting both sdcard0 and sdcard1 with option "format /storage/sdcard(0|1) -> ext4" from CWM's "Mounts and Storage" menu(cwm v6.0.5). Then I was able to set permissions according to guide :) Ok, I'm off to testing whether it got rid of fuse bug.
[Android General] philippe734:
True. Sorry [emoji20]
[Android General] Giobio:
What is for true?

Have I to repeat all the process or have I only to finish with the part written at terminal?

And more me too have problem to update whatsapp.
[Android General] philippe734:
If you want your sdcard to ext4, then repeat all. Bad news.

Edit : I mean repeat the guide.
[Android General] Giobio:
Ok, I will.

I've tired to digit in terminal all line, but after second line it give me back: "no such file or directory"

I hope to solve all problems doing it again...

thanks
[Android General] philippe734:
I propose you to browse this guide with your device and copy past to terminal.
[Android General] Giobio:
Yes, I understood that browsing was only to check if the operation could be end well....

Anyway i'm trying again from the start to the termnal usage...

let you know later

---------- Post added at 08:49 AM ---------- Previous post was at 08:41 AM ----------

Only one more thing:

when I arrive at this point " -In recovery, go to mount storage and select mount USB storage :" what have I to do? There are two choice: mount usb or goback. which one have I to choose? Because i think yesterday i made a mistake at this point of the procedure...
[Android General] laotzy:
Well... Everything works fine here after formatting into ext4. The only problem that persists is the updating of WhatsApp. The present version of WhatsApp works good but when I try to update it, it says something like - "inadmissible (or impossible:p) file of package (or pack)... Sorry, I have to translate it from my native language and it's rather tecnical term - can't find it in any of the dictionaries I have here. But I hope you can understand. I have tried to update it via wi-fi and mobil internet, no way in both attempts.
[Android General] Giobio:
I have had the same problem with whatsapp.

Can u tell me how did you do during the process when arrive to enter in recovery and then in usb storage? There are to choose: unmount or goback.

I imagine is a stupid question but yesterday i had problem, i think, at this point. but the guide do not say that
[Android General] philippe734:
1- No, I mean use your device, using a web browser (as firefox) to navigate to this guide, in the aim to copy past the lines to terminal

2- In recovery, first select mount and storage. Then, select mount USB storage. Then, don't touch recovery upto the end of process. If you go back, then recovery unmount sdcard.
[Android General] philippe734:
ok, I understand you. But we need to be sure that permissions is ok.

Please do it :

On android, go to browsing files with any file explorer app like es file explorer.

Then, at the root of your sdcard (as /storage/sdcard0/) create a directory. Then delete it. If done, permissions is good.

Test it and report to me. Then will see next.
[Android General] Giobio:
I did all well until reboot the device.

It has now a problem with the browser too so i can't copy and paste to the terminal the procedure.

I made it by hand but after first line gave me UNABLE TO CMOD SDCARD0: READ ONLY FILE-SYSTEM

THEN i stop because i think i already have a mistake....
[Android General] laotzy:
OK, I have created a folder in the root directory, in storage/sdcard0/ then put a picture in it and then deleted the folder - everything worked fine.
[Android General] philippe734:
Great ! Did you use diskinfo to check if your sdcard is now ext4 ? If not, do it to be sure.
[Android General] laotzy:
Yes, I have installed this app and it shows my both memories are in ext4.
[Android General] philippe734:
Good ! So your issue with whatsapp is NOT cause by ext4. I propose you to backup this app with titanium backup, then uninstall whatsapp normally, then install it form play store, then restore only data from titanium. I wait your report.
[Android General] Giobio:
Can u help me for that?
[Android General] philippe734:
1- Which reboot ? If the reboot of recovery, so you need to fix permissions.

2- If the browser can not copy then there is another problem, not cause by ext4. I propose you to use another browser for android, as chrome or dolphine, in the aim to be sure to copy past very well all the lines for the terminal. Don't forget to execut SU in the terminal before fix permissions and grant root to terminal by superuser (allow root to terminal).

3- True, there was a mistake.
[Android General] laotzy:
No way... I uninstalled WhatsApp and the same problem appears when I try to install it again, from the Market. Now I have restored my WhatsApp from Titanium.
[Android General] Giobio:
1) rebooting i meant the reboot of phone, after gparted.

2) I only use dolphin but after some test now it works and i copied to terminal all procedure. at the end the terminal finishes its work without show me nothing. I checked with ls -la........ and the disk have a new date. It seem to me all good but using diskinfo there isn't anymore sd card....

And more no more problem with whatsapp...for now

Now i'll try again without the external sd card...maybe it depends from it
[Android General] philippe734:
Please, check again from the guide "please verify this..."
[Android General] Giobio:
I've checked the guide and use it lots of time but everytime it heppens something of new and strange.

So, please, only to know:

1) after typing all on terminal, does it have to answer anything or cursor has to stay there waiting command?

2) with file manager if i want to see sd0 i have to set on root(i always stay on safe).Is this to leave for ever set so or doing a good procedure is it possible to set it how u want?
[Android General] philippe734:
1- No. No return, nothing. Just cursor wait commands. That's why we need to do the new section "please verify this" of the guide.

2- No need to set root. It's not the purpose for this check. The root at the sdcard it's the top of all directory in sdcard. It's like "/storage/sdcard0/" or "/storage/sdcard1/"
[Android General] Giobio:
Sorry, I'm lost....what do u mean with new section and what have I to verify, nd where?
[Android General] philippe734:
There are 2 things to check to be sure :
[Android General] Giobio:
Yesterday I was able to copy past and delete folder but diskinfo told me that sd0 was in exfat and not ext4 (the others voice was ext4). You told me to do again all the procedure because something was wrong.

Now after gparted when i use terminal, after first line it can't find the sd card and when i open the file manager i can't get nothing. A message tell me i need superior permissions.

I don't know what to do to get a different answer....

And more,

a good procedure will correct previous errors? I think i'm starting with something wrong and at the and I'm always at the same point....
[Android General] philippe734:
I understand ! Yesterdy was yesterday and I wish that today you had follow this guide with success. So now, please check again carefully and tell me about the file system of your sdcard from diskinfo and what about the test with directory. Becasue, I'm almost lost of your steps ;)
[Android General] Giobio:
I'd like to show you a screenshot but i don't know where to take out the picture now... so i'll write you down what diskinfo says:

INTERNAL STORAGE

Chace fylesystem ext4

System fylesystem ext4

Data fylesystem ext4

until yasterday, here, there was SDCARD but today there isn't.

Memory.....

About the test with file manager, : 1) if i set SAFE mod on file manager it answer "I need superior permission"; if i set ROOT mod i see lots of folders and anyway, I'm able to do all operations(copy, past, delete folders).

---------- Post added at 11:38 AM ---------- Previous post was at 11:25 AM ----------

I'm asking:

when I'm on usb storge, under recovery, after have changed in ext4 i have to reboot in recovery the phone. To do that i back to the menu using the back button of the device and not using goback or unmount
[Android General] philippe734:
I understand now why the test of directory didn't work and require root ! Where is the sdcard ?

Do you have an internal sdcard or an external sdcard ?

If you have internal sdcard, then I suppose that it will not formated.

So, sorry, you need to repeat all the guide but do it :

In Gparted, be carefully to select your internal sdcard and be carefully to clic on the button apply after select to format to ext4.

Don't panic, your internal sdcard is still alive, but I guess not formated.
[Android General] Giobio:
I keep out the external sdcard. Now I only have the phone sdcard.

in Gparted i need before af all, to unmount the sdcard(there is a block symbol) because it could be impossible to format it. Correct?

I'm not in panic, i know that the problem isn't big and i think the error is a stupid way but don't know where, how....

help for you: the terminal gives me back: unable to chmod the sdcard0 and unable to chown sdcard0

And more, when I'm checking with the command ls -la..... it shows 3 items: sdcard0 - sdcard1 - usbdisk0. But i haven't anymore the external sd card

---------- Post added at 12:35 PM ---------- Previous post was at 11:47 AM ----------
[Android General] laotzy:
Giobio, I am not sure if I have understood your question corectly but if you mean to conect your memory cards to your PC via USB while being in CWM, I think it won't work. To see your memory cards and being on ext4 you have to choose MTP and not USB... To be able to mount USB storage so that your PC were able to see the content of the cards while you are in CWM, you have to use Linux ( like Ubuntu or similar). If I haven't understood your question well, try to ask me again.
[Android General] Giobio:
No, sorry, I didn't want to say that. I don't know what are you refferring to, I ask so many things...

I tried to format filesystem in ext4, but i have problem to end the procedure. I don't know but it doesn't work for me so now, I only want to back to stock firmware without knowing how to do it well. I'm installing right now the stock samsung rom but i don't think it will be the right pass....
[Android General] philippe734:
1. True, need to unmount before format with gparted.

2. Don't care about ADB. It's another way to fix permissions harder than terminal.

3. vfat is the file system by default, before tried to format to ext4. You are returned to the past. Bad news, same player, play again.

4. No, after your several comments, not with the end, but you have trouble with the part about format with Gparted.
[Android General] chrhei:
ADB

Gentlemen, is it this hard to use your favorite search engine?

ADB = http://en.wikipedia.org/wiki/Android_software_development#ADB

I think this forum is used to share information and help others. But it's not ment to provide essential computer skills. I believe this community can expect that people start reading at least some manuals. And it's not that hard to find something about Linux user and group permissions. It's not rocket science. And ADB is a nice method for Windows users not to install or maintain a Linux distribution. One rule of thumb: If you have no idea what people talking about stop to try it! Regards, ... .
[Android General] Giobio:
Yes I was back to stock rom but now again in cm11. I finished right now to try again but when i wrote first line, terminal says unable to chmod sdcard0: read-only file system.

In gparted what correspond to vfat? if i'm not wronging there isn't..

---------- Post added at 04:52 PM ---------- Previous post was at 04:49 PM ----------

yes men, you are right,

but I'm on this trouble from yesterday, with a not well working phone, and i red lots of post without find out something to solve my problem. Only philip is trying to help me and i continue to have that problem.

Sorry, tonight i will read about adb
[Android General] philippe734:
1- Don't do thing that is not in guide. Why switch rom ? How do you want to me to help you if everything is different of my comments ? Keep CM11 for exemple, and follow the guide step by step. If you don't understand some steps, so don't try and ask help + search infos on google.

2- you had said that your internal sdcard is vfat. So, with Gparted, vfat appears after select your internal sdcard. Go to youtube to watch a short video on how to format any partition with Gparted. It's better for you ;)

3- Again, don't care about ADB, it's a complex tool and methods not for your level ;)
[Android General] Giobio:
1) I've tried to install stock rom because there was time to do something, i can't stay without doing nothing(is my problem).

2) I followed this guide lots of time but issue persist. vfat is on cmw but with gparted is fat32(that i discovered trying). Now i'm trying to put fat32 but gparted give me back arror. even if i try ext4. I have to try lots of time to do that until, i don't know how, it does.

My last configuration was that i can move,create, delete folder in file manager but with diskinfo, cache,system,are ext4 and sd0 vfat. If i realize to change sd0 in ext4, i can't manage file manager.

did you read in my last post what terminal gives as answer?

Or maybe gparted doesn't work well with me? For once i realize to format sd, i tried hundreds of times that operation...
[Android General] philippe734:
Because you had some troubles to achieve the guide, I want to make video to show the steps. Wait 1 hour, then go back on the first post.
[Android General] Giobio:
Maybe... right now i don't know nothing...Thanks for video, I'll wait for it. I've decided to make one too for you, showing my procedure but if I record i can't proceed...

Anyway, i know gparted and i've seen some video on youtube and i make the same procedure....
[Android General] HippyTed:
Maybe it needs to be stressed that before a filesystem is unmounted, and before a filesystem is disconnected from the USB port, it must be sync'd.

Just issue a sync command from the terminal before unmounting/disconnecting it.

Otherwise your changes may not have been fully flushed out of the buffers onto the disk.

Sorry if this is already well known.
[Android General] philippe734:
Fine, I didn't known it.
[Android General] Giobio:
thanks for suggesting, i think too it could depend from something as u explain but my problem is how to translate it in operations and eventually from which point have I to start or continue the process

---------- Post added at 07:34 PM ---------- Previous post was at 07:24 PM ----------

question for all people:

internal sd card is maden from cache, system, data and sdcard. Is correct to have sdcard with file system vfat and all others in ext4? Because I think maybe is there too a problem
[Android General] philippe734:
I made 2 videos of this guide. Go back to the first post to watch it. I'm sure you will able to achieve the process !

Please, press my thanks button each times I helped you ;)
[Android General] Giobio:
thanks for the videos, im going to watch them right now....

I already give you a thank and if i will find a way to that, don't worry for them...
[Android General] Giobio:
well, let's see...

On gparted part, we made the same. the only difference is I set "fix to reboot" before rebooting both recovery than android. I put the data of internal sdcard in a folder on gparted desktop(this isn't important) and the drive you format is sbc(11GB) and mine is sdb(10GB). I hope is the same...My data are there(sbd).

on terminal part, i start with su and copied all lines when i was able to use dolphin, when i had to write, after SU and first line(cd.....) was written without problems, when i wrote line find sd....... it gave to me errors as i shown you in some post.

And more to me don't get the su windows when am I on terminal

Looking tha pics there isn't any of wrong?
[Android General] Giobio:
I left you all thanks in each post as correctly have to be.

But continue to have problem:

if I have no problem during gparted(when it runs correctly) i have them with phone(rebooting i can't use dolphin so i have to write and there are errors at terminal).i can copy from browser and past at terminal inly if formatting with recovery. Anyway at terminal I write:

su (enter)

cd /mnt/media_rw/ (enter)

find sdcard0 -type d -exec chmod 0775 {} \; (enter) and here, it says unable to find sd0.... i wrote down correctly in previous post.

Why to me don't have the superuser request when i am at terminal, as you shown in your video?
[Android General] philippe734:
Well well well... I have no more idea. You have trouble in the process about format with gparted. When I see the picture, your sdcard is not ext4 but vfat, that's the problem. Because the sdcard is not ext4, no need to continue the process and try to fix permissions. It seem that you are not able to format your sdcard to ext4 with gparted. Why ? I don't know. But I think it's not an issue but it's your fault. Maybe you did a mistake in the process to format with gparted. Before format, the recovery need to display "usb mass storage, leaving this menu unmounts your sdcard from your pc" upto the end of the format's process. After selected ext4 in "format to", then click on Apply and wait the end of format's process.