yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] Gaatan Pleite:
Repair SD card

I just repaired my SD with the use of Gparted in Linux without problems.

First I removed the damaged partitions and expanded the working partition.

After this I formatted the partition, inserted it into my M4 Aqua E2303 and it worked again.

Then I created a partition usig the mentioned instructions and it worked again.
[Sony Xperia M4 Aqua] mati686:
Well i will try it again, but last week i didnt susceed with gperated, or nany linux/windows/mac soft :( Neither the old camera cant format card.
[Sony Xperia M4 Aqua] mindyabiznis:
I've got this working but I'm using a 64gb micro sd card now it seems to use the partition SOMETIMES, like one minute storage isn't an issue and then all of a sudden storage is low and I can't install more apps...

The spaced being used on the partition of the sd fluctuates quite a bit so it IS using it, just not correctly.

I am using the 64gb card 50/50 as I read in the OP edit that it doesn't actually cause any issues.

It is a SanDisk extreme uhs1 card very decent read and write speeds.

I can't for the life of me figure out what 8gb of 64gb is in a percentage for the adb command line if anyone could tell me that would help?

That might solve the issue that seems to be the ONLY thing holding this phone back from being half decent, it's not the fasted (I had z1compact modded to the back teeth for 2.5years and until I smashed it to prices the other day it was STILL outperforming my mates z5 premium and my my mate s7 edge in regular multitasking and performance AND the battery lasted 2 days!)

As I completely smashed my z1compact I'm now having to use this but I really need to get this adoptive storage sorted before I give it back to the Mrs because that's the ONLY reason she doesn't like this phone, not enough storage.

---------- Post added at 02:54 AM ---------- Previous post was at 02:20 AM ----------

****EDIT**** you NEED to select migrate data option in the storage settings as previously mentioned ****EDIT****

I've done this now with a 64gb SanDisk extreme card set to 50/50 and although the numbers are crazy its working pretty fluidly
[Sony Xperia M4 Aqua] tmiland:
Is it safe to install the 26.3.a.1.33 update?
[Sony Xperia M4 Aqua] uriah18:
I did it today succesfully. I couldn't do it from the phone (it would just restart without installing anything) but only by using Xperia companion software from PC.

After instalation icons of applications installed on SD card where rendered wrong on Xperia Home, but afer I entered settings it was OK.
[Sony Xperia M4 Aqua] Ammby:
Hi. I did a factory reset and now the adoptet storage is gone. But my public SD partition is still 22 gb (of 32gb) so the partition is there but not recognized from the system. Do I have to repeat the procedure? Thanks
[Sony Xperia M4 Aqua] mindyabiznis:
Well this was working fine when I was using it on my sandisk extreme 64gb 50/50 adoptive storage...

Now I've done setup my missus phone with her 32gb **SONY** sd card on 8gb adoptive storage and first I was gettting the issue "not enough storage" when migrating the data (it was only trying to move like 4mb so that's BS) and now... After literally only a few hours use her phone locked up and now the sd card is 100% broken, I have managed to get it to read in the pc but sm partition won't work at all, so I've formatted using both the phone and the pc and still sm partition does not work with this card at all it takes ages then returns the error "null"

I have another 32gb micro sd card she can use but I'm still getting the "not enough storage" when trying to migrate data what could be causing this?
[Sony Xperia M4 Aqua] mindyabiznis:
Figured it's the rom now as I tried my SanDisk card in there and it did the exact same thing... Guess this is why Sony haven't fully implemented it yet and to be fair I understand as with just about every phone on the market right now storage just is not an issue....

Rather annoying that the only stripped down deflated modded stock MM ROM out is the one I wanna use but isn't compatible with adoptive storage, oh well looks like it's back to stock with recovery then, at least it won't completely bugger another sd card
[Sony Xperia M4 Aqua] zaffodb:
I installed the 26.3.a.1.33 update. Unfortunately, now Google Play continuously crashes with the infamous "Unfortunately google play store has stopped" message, while the apps I had previously moved to the adoptive storage do not appear any more. So far I tried clearing the Google Play caches and resetting my Google account but failed. Any ideas?
[Sony Xperia M4 Aqua] meekspace:
First attempt allocated 8gb of a 32gb SD card. Went well for a couple of months. Then the memory was getting low so I transfered apps to "internal" memory and then back to SD card memory. Big mistake. Apps couldn't load. Icons were showing. But no go.

So I started again from scratch. Did the phone repair through the pc. This time I allocated 16gb of a 32gb SD card. Then went into storage and did the transfer thing. Then I updated and downloaded all the apps. So far so good. Time will tell.

Today I found an app called Google pay. It's where you can enter your card details and using nfc on the phone to pay for purchases. It installed ok, but then I got an error message and the system info is a little off.

"Capacity for nfc services full"

170%
[Sony Xperia M4 Aqua] meekspace:
So today I uninstalled Google pay because I constantly get the message "capacity for nfc services full."

Only trouble is, I constantly get the error message "capacity for nfc services full." The good news is its down to 145%

I don't know what else would fix this.
[Sony Xperia M4 Aqua] beniusc:
Hi

thanks for the work, i'v 2 questions :

- i need first to uninstall all application moved to sdcard ?

- in my 32gb sdcard it's better to put 8go to adaptative, i must take this command : "sm partition disk:diskid mixed 75" ? (8gb-25% to adaptative and 24gb-75% to external sdcard)

- in the 24gb of the sdcard after the adaptative, can i transfert application to external sdcard with the automatic transfert menu in storage settings ?

many thanks

ben
[Sony Xperia M4 Aqua] boeselhack:
Wow, that worked really well!

I used a 32 GB SD card and used the following commands

- adb shell

- sm list-disks (that gave me the following out put: disk:179,64)

- sm partition disk:179,64 mixed 73

That means that I use 27% (100-73) of the storage on the 32 gig card which is about 7,9 gigs of additional adoptive storage. So now I can barely use 16 gigs on my Sony M4 Aqua.

I tried to allocate even more percents of the card, but then had problems with installing apps, it just didn't work, so "73" is the magic number for 32 GB SD cards.

Thanks for this great instructions!
[Sony Xperia M4 Aqua] beniusc:
Hi,

a use 'mixed 73' like boeselhack in my 32gb sdcard and all the apps has installed without problem -> that's great !

but problem before this, with the format command : i've got a 'command failure', i eject the sdcard, put in a computer and format in fat32 and not quick format. Next put the sdcard in the phone and format again -> that's ok. Then i can go to adb shell and put the command 'sm...', and after the prompt make a reboot in the adb shell.

the applis cannot be moved to ext sdcard, there's no option : they have been installed directly in the mixed part of sdcard.

my 8gb phone works like a charm.
[Sony Xperia M4 Aqua] xXNitro:
How i can Mount my SD Partition ?

On my Sony Xperia M4 Aqua
[Sony Xperia M4 Aqua] xdagenius:
Hi i have a E2303 8gb and i updated it via pc companion to 26.3.A.1.33 (newest) i own a 32gb kingston ultra fast sd card for 4k recording with 90mb/s read and wrhite speed can you explain to me how to do a 50/50 partition and will it be stable on the newest firmware
[Sony Xperia M4 Aqua] beniusc:
Hello,

read the post of boeselhack : for 32gb sdcard its not 50/50 but 27/73

you will find all you need on the first post : it's easy to do

regards
[Sony Xperia M4 Aqua] Bryden:
Thanks Johnny

This worked great for my phone, now I have MORE than 2 games running
[Sony Xperia M4 Aqua] xdagenius:
Performance

I have 32gb kingston ultra fast sd card and aftr doing mixed 73 the phone is so slow apps keep crashing avter 30sec on using them overall performance is so slow
[Sony Xperia M4 Aqua] beniusc:
hi,

my kingston 32gb is a class 10 and really have no problem even with gps like nagivon or sygic. have you try to format the card before the adb shell ? i'v problem with format and i must eject the card and format on a pc before the adb shell command.

maybe same problem with format command. or not really a kingston ultra fast sdcard
[Sony Xperia M4 Aqua] cromanescu:
I did exactly as described, using a 16 Gb Kingston class 10 sd card. But now I have 2 sd cards, each of 8 Gb. The phone is displaying the same message, low space... I cannot move apps to any of the sd cards. What can I do?
[Sony Xperia M4 Aqua] Bahamut:
Can you explain how this works? I have now 8GB of internal SD and 8GB for external SD, but it only uses the real internal storage and not the SD to store apps. So when i download apps, it always says its full, and the 8GB of the internal SD is never used.

I can move apps yes, but only to the external SD part.

---------- Post added at 03:00 PM ---------- Previous post was at 02:53 PM ----------

same for me
[Sony Xperia M4 Aqua] beniusc:
Hi,

in the storage menu we have the phone storage, the sdcard adaptive storage and next the ext sd card.

for me too it's not possible to move aps : you must desintall

all aps

and reinstall all, then they move automatic to adaptative sd card.

after this my phone have never internal storage full. the storage menu say 9,5go used in 8,00go available...
[Sony Xperia M4 Aqua] Bahamut:
Yes, i tried reinstalling all apps too, but almost 75% of the apps are installed to the internal storage, and only arround 25% to the simulated internal SD, which are the same apps that can be moved to the external SD... so its a bit useless!!!
[Sony Xperia M4 Aqua] nemes480:
Im just rebooted my phone some days ago and my card is not able to use. And If I try to format it I get I/O devie error. Any solution to fix it?
[Sony Xperia M4 Aqua] cattrap:
I did 50/50 on my 64 GB memory card, ( which gives 59 Gigabytes of actual storage capacity)

But, now in the storage menu in the settings, it is showing 29 as Device storage and 29 as Portable storage .

But , how could i access the files in the SD card converted as device storage.

Is there any way to format the Device SD storage ( used as internal storage)?
[Sony Xperia M4 Aqua] :
So does this work or not ?!? I have Android 6 and would really welcome more space . Or shoulw i try Link2SD or similiar ?
[Sony Xperia M4 Aqua] meekspace:
I did 50/50 on a 32gb card. Even though I knew it had about 10gb remaining, I had installed an app that needs to download about 1.5gb of data. Couldn't do it. The phone didn't think I had enough memory. Had to save the data to the SD card.
[Sony Xperia M4 Aqua] xdagenius:
Hi i did mixed 73 on 32gb card evrything works greath i have instaled 3 games that are 2gb+ but when i go to file menager i cant see the internal memory the 8gb partition it only shows the new 7.7gb and the 21 gb that are left from the sd card also when i conect it to the pc same the internal memory isn't displayed i can see it only when i go in settings/storage
[Sony Xperia M4 Aqua] vebhy075:
I update my sony m4 aqua and some ad display on my screen continuously i, i can use all app like adguard , abp plus , adblock,but no result please help me what can i do now??
[Sony Xperia M4 Aqua] GVDWERKNOU:
Error when using sm partition disk:diskid mixed 50

this is the error i get :(

Error: java.lang.IllegalArgumentException: command '48 volume partition disk:diskid mixed 50' failed with '500 48 Unknown disk'
[Sony Xperia M4 Aqua] bustr85:
You gonna need to change the disk:diskid to the actual numbers that the previous command (listing partitions) displays.
[Sony Xperia M4 Aqua] GVDWERKNOU:
now i get the error : java.lang.IllegalStateException: command '131 volume partition disk:179,64 mixed 50' failed with 'null'

*update

i forgot to format the sd card. so i formatted it and everything works now
[Sony Xperia M4 Aqua] razorDev:
I did this on my phone and I now have adoptive storage, but it doesn't work well with moving apps in the external SD. You can move them, but the phone gets really slow and freezes a lot. So i can basically use it for files, not apps.
[Sony Xperia M4 Aqua] beniusc:
Hi,

no freeze or slow phone with my xperia. You need a fast card : mine is a class 10 and really no problem.
[Sony Xperia M4 Aqua] cromanescu:
https://www.change.org/p/hiroki-totoki-solve-the-memory-problem-of-sony-m4-aqua
[Sony Xperia M4 Aqua] Randomsha:
My PC reads my sd card no problem but my phone says its corrupt when i press fix nothing happens. Any advice E2303
[Sony Xperia M4 Aqua] xdagenius:
Problem after 5 months of using adoptive storage

So at the begining it was perfect my 1gb phone got another 8gb's i instaled 3 games on the new partition that are 2gb+ they worked fine (Gangstar Vegas, Asassins creed identitty, Need for speed moast wanted ect.) i also instaled word power point twitch and many othr apps that are completly on the 2th partition. But now i have a problem gangstar vegas wanted to update and when i press update on play store it says you have no memory and it shows the phones internal memory as the low not the partitioned sd card memory that the game is instaled on. So i deleted the game and deleted 2 apps from the phones internal memory and then tryed to instal gangstar vegas again and playstore gives me low memory but i have 4gb free on the partition and 700mb on internal. but when i instaled a smaler app that can be instaled on the partitioned memory and its lower on size of then the free memory of the phones internal memory it worked so if you understood this and ideas how to fix it ???? :)
[Sony Xperia M4 Aqua] jmesxrnld:
hi, what is the magic number for adoptive storage in 64GB cards?
[Sony Xperia M4 Aqua] anonind:
Tried 50/50 with a 64 gb SD card and it works nearly flawlessly! It showed an error in the command prompt, but after removing and reinserting the SD card in the phone, my device memory had an additional 30 gb and the remaining 30 gb as portable storage. Finally I no longer have 'insufficient internal memory' issues, which makes this phone perfect!!!!!
[Sony Xperia M4 Aqua] vladberes:
Doesn`t work for me...

My phone see the sd card, it says "deteriorated".

http :// imgur . com/a/ 5qkfG

What cand i do? I followed all the steps.
[Sony Xperia M4 Aqua] crisbravo14:
SD Card can't be read by phone

So I've tried this method once before, and I have a new SD Card and tried to do the same process with this new one, but instead there was an error: Error: java.lang.IllegalStateException: command '182 volume partition disk:179,64 public' failed with 'null'.

And now the phone doesn't recognizes the sd card, so I don't know what else I can do. Help me please.
[Sony Xperia M4 Aqua] vladberes:
I have the same problem...
[Sony Xperia M4 Aqua] crisbravo14:
Ok so I've figured it out a way to succesfully do it (kinda messy but... hope it works for you), so

I opened again adb tools, and type the following commands:

adb devices

adb shell

sm list-disks

sm list-volumes all (in this command, I had -null- in both public and private volumes, btw)

pm get-install-location

pm set-install-location 2 (I don't really think these commands helped, but I've used them so..)

sm set-force-adoptable true

sm partition (now however you want..)

And that's it, that's how I managed to make it work.
[Sony Xperia M4 Aqua] ninadovalle:
Thanks for the tutorial! I did all the steps and it all seemed to work fine. The storage shows the internal, the SD card, and the portable storage. HOWEVER it does not allow me to move apps around, and still complaints of no space available.... do you have any idea of what went wrong please?
[Sony Xperia M4 Aqua] Wort3x:
I did everything on the tutorial and no errors but still wont WORK

My internal phone storage is full and i migrated the internal sd-card (go to Storage-->internalSD-card--->dots uppercorner and migrate) like u said but still the apps won't install on the internal sd-card...

it just asking me to delete some apps to able to install the new one...

Just hope somone can figure this out :)
[Sony Xperia M4 Aqua] r.itvik:
Sorry I am a newbie. Could you please make an easier guide? I'd love to have adoptive storage on my Xperia M4!
[Sony Xperia M4 Aqua] yoom81:
hi,

I use a 64 go sd card and I try to put 20 adoptive and 80 normal . I use that command " sm partition disk:diskid mixed 50 " and I have that message :

Error: java.lang.IllegalArgumentException: command '14 volume partition disk:diskid mixed 80' failed with '500 14 Unknown disk'

some idea ??

yoom
[Sony Xperia M4 Aqua] Pitja:
In example use:

disk:196,70

instead of only numbers
[Sony Xperia M4 Aqua] Andrzej_Andrzej:
Maximum for sony m4 aqua SD Card is 32 GB or 64 GB ?
[Sony Xperia M4 Aqua] meekspace:
Try un-adopting then have another go. sm partition disk:diskid public
[Sony Xperia M4 Aqua] NickMihal:
good job can i enable it from option with any trick or only it works with adb?
[Sony Xperia M4 Aqua] mammaAnna:
I tried this a few months ago and thought I made it but the memory has not been used as I hoped and was quickly full again. (it's my daughters phone so I don't check all the time). That time I partioned 50/50.

Now I gave it a new go, I adopted the full 32 Gb Sd card (using private) and then, with the help of some other posts which I now cannot find, tapped the SD-card when in the storage menu, tapped the tree dots up in the right corner and chose ' move data to internal' or something like that. (this option doesn't show once you've done it) and voila, it seems the phone now has the full SD as internal and us using it. I have reinstalled a lot of apps and so far so good. :) The numbers are strange, stating a negative number for total memory used, but the numbers by the bars (one for the built in memory and one for the now internal SDcard) are ok.
[Sony Xperia M4 Aqua] palego:
50/50 its works fine

thank you man you saved my phone
[Sony Xperia M4 Aqua] Hitman951:
200GB
[Sony Xperia M4 Aqua] cromanescu:
Does anyone have a stock rom for europe?
[Sony Xperia M4 Aqua] Horaz-:
Hi.

Try with Flashtool.
[Sony Xperia M4 Aqua] greatbal:
Thank you for this. I used a 32GB sandisk ultra. From what I've read, it is advisable to use less than 8GB adoptive storage so i used 28% or around 7.97GB as reported by my phone. Everything is working ok after I installed my needed apps. Adoptive storage is being used properly and I get the correct amount of used storage. Thank you. Now I can actually install apps on this phone! :D

[IMG="Xperia M4 Aqua with adoptive storage"]http://i86.photobucket.com/albums/k111/Lawrence_Patricio/M4Aqua_zpsvynvvbpr.png[/IMG]
[Sony Xperia M4 Aqua] Gregory1306:
Hey there,if i format my PHONE,without repartitioning my sd card back to full size,will it brick my phone? currently i give around 8 gbs from 32gb in my sandisk ultra sd..
[Sony Xperia M4 Aqua] greatbal:
i tried that by doing a factory reset. My phone wasn't able to recognize/access the old 8 GB adoptable storage. but it will be able to read the portable storage part. so I had to reformat my sd card and start over (after backing up the contents of the portable storage part). I guess the system encrypts the adoptable storage part so you won't be able to access it from another system.
[Sony Xperia M4 Aqua] dot.Age:
Hi All,

Today I found that I had missed the mix parameter for partition and made full SD as internal storage then the stock Camera App doesn't work with "Memory not available" error now.

I have installed all apps and copied more than 20GB music and hiking maps into the phone, should I do factory reset and reformat the SD?

Thanks!
[Sony Xperia M4 Aqua] amd2100:
Hi I created the partition 50/50. now I can see 3 lists. (Internal storage, Sandisk sd card, then sd card slot sandisk sd card. Now my problem is if I move my files to internal shared sandisk partition how can I move files to sd card section? is it usable to move files? how can I move files to the empty sd card section. when I click migrate then all the files comes to the sd card internal shared section. but other 50% how can i use?
[Sony Xperia M4 Aqua] meekspace:
I just downloaded a camera app. Only drawback is holding the camera button down doesn't work.
[Sony Xperia M4 Aqua] Natasha_Athanor:
When I get to this line: 5. Now type "adb shell" and then "sm list-disks" , the answer is "sm not found"

And what do I do now? :)
[Sony Xperia M4 Aqua] Susana_:
Thank you for the thread and sorry for my English.

Yesterday I did a factory reset and upgraded my Xperia to MM and since then, I'm trying to install Adoptive Storage and I'm absolutely unable.

My SD card is SanDisk Ultra XC I de 128 GB and ADB always sends back the same error:

Error: java.lang.IllegalStateException: command '23 volume partition disk:179,64

mixed 94' failed with '400 23 Command failed'

1|shell@E2303:/ $

I've tried the process many times and always appears the same error, only changes the number between 400 and Command, like this: 'XX volume partition disk:179,64 mixed 94' failed with '400 XX Command failed'.

Thank you in advance
[Sony Xperia M4 Aqua] Susana_:
Good morning

I've solved the problem using a 32 GB Sd card instead of the 128 GB one.

Thanks any way
[Sony Xperia M4 Aqua] GamingAori:
hey,

I have a problem, few hours ago I wanted to format my adoptive storage back to a normal SD, so I tried it in my phone but it didn't work so I though I try it with root essentials it didn't work. So I tried it with adb shell, and the command "sm partition disk:diskid public", but I can't format the sd back to a normal format. minitool partition wizard look like that: http://imgur.com/a/cGOYj . Problem is even when I try to format it in for example NTFS it changes automatically back to "other". how can I solve that problem? my phone doesn't recognize the sd card anymore.
[Sony Xperia M4 Aqua] ch3mn3y:
Copy the files from nonadoptive part and use SD Formatter to format whole card (on PC).

Sent using D6503 - Resurrection Remix/RR N
[Sony Xperia M4 Aqua] GamingAori:
didn't work because when I inserted the micro sd and refreshed SD Formatter the program crashed.

btw I realized that the current sd size is smaller than before doing adaptive storage and even when I delete both partition and recreate them they are automatically 2 again. I think a hidden partition exist which no program see?
[Sony Xperia M4 Aqua] fado5ster:
Ok so I've done everything and ended up with 8.63 GB on my Device Storage SD Card. Then a week later I get the Storage Full prompt again.

I still can't put Sony/Google apps to this new adoptive storage.

But it seems to be acting the same as the external SD card in regards to what apps/folders I can put on it.

Is this all that the adoptive storage can do or have I messed up by exceeding the 16gb total?

(8gb internal + 8.63gb Adoptive = 16.63gb)

If I get this down to less than 16gb total will the adoptive storage automatically store newly installed apps as the same as internal storage?
[Sony Xperia M4 Aqua] daninguno:
With this method you lose your guarantee?

Do you need to unlock the bootoader?
[Sony Xperia M4 Aqua] velet:
No need to unlock bootloader. I don't see this causing warranty to be voided. I guess it'd be alright.
[Sony Xperia M4 Aqua] Roshan.m3:
When I type as a adb devices on command prompt it says "adb is not recognized as an internal or external command, operable problem or batch file." what can I do now
[Sony Xperia M4 Aqua] Joukko1990:
Same happens to me, only I'm from Austria :eek:
[Sony Xperia M4 Aqua] daninguno:
I have the partition but the SD part which should be used as internal storage is corrupted.

Anyone can help me?