yashsingh1/xdaforums huggingface dataset:
[Sony Xperia S, Acro S, Ion] luptatorul:
Hello! I am experiencing a little problem. I followed the steps, reflashed the rom and my storage looks something like this:

View attachment 3268940

View attachment 3268941

There should be more space, but as you can see, that's not happening. What did I do wrong? I am on uCyan 12 b04 ROM

Edit: I think I figured it out. When I created the 8GB partition, I wrote +8192, not +8192M. Trying again now

Edit2: Nope. Still having this problem.

After a third try, it seems like it worked. I don't know what I did differently, but I'm glad it worked. Thanks guys!!!
[Sony Xperia S, Acro S, Ion] gameputra:
For people who cannot get their device recognized in recovery or unable to update driver:

1. Download and install android SDK

Install the Google USB Driver Packager using the Android SDK manager.

2. Install fastboot drivers

This is the standard android_winusb.inf-file, with a few lines of code added to enable Fastboot to support Sony & Sony Ericsson devices. Replace the original android_winusb.inf-file with the downloaded file in the usb_driver folder, located in the Android SDK > extras > google folder on your computer.

3. On your device, turn on USB debugging .

4. Reboot into recovery and connect to PC using USB.

5. If asked for a driver, point to the usb_driver folder where you placed the android_winusb.inf-file, and select the Android Boot loader Interface-file.

else

6. Goto device manager and look for devices with yellow exclamation mark. It'll usually say "Unknown Device" or "Xperia S" under "Other Devices"

7. Right click on and Update Driver -> Select Browse my computer for driver software -> Select Let me pick from a list of device drivers -> Select ADB Interface -> Select ADB Testing Interface
[Sony Xperia S, Acro S, Ion] mirhl:
Repartition phone without ADB

So here we are!

After almost a year with broken USB i back upped everything via AirDroid and I proceeded to increase data partition.

Just to be sure, first of all I copied the zip of a rom in /tmp folder with built-in file manager (you never know how far you can mess up things)

Then I went on.

Unmount every partition from mount menu.

Next open terminal command

echo p | fdisk /dev/block/mmcblk0

This will print your actual partition table.

Take note of the start sector of partition 14

Let's call that XXXXX, and the amount of megabytes you want to assign to data partition YYYY

echo -e "d\n15\nd\n14\nn\n[I]XXXXX[/I]\n+[I]YYYY[/I]M\np\nq" | fdisk /dev/block/mmcblk0

Now take note of the

end

sector of partition 14.

Done? Increase that number by 1 and let's call it ZZZZZZ

echo -e "d\n15\nd\n14\nn\n[I]XXXXX[/I]\n+[I]YYYY[/I]M\nn\n[I]ZZZZZZ[/I]\n\nt\n15\nc\nw" | fdisk /dev/block/mmcblk0

Enjoy!

System partition is not touched at all, and if you feel bold you can flash aforementioned rom in /tmp straightaway

EDIT: feel free to check the follow up!

Random stuff:

Remember that > at the end of a command is going to redirect CLI output to a file, for example /sdcard/fdisk.txt

cat is a kind of text viewer from terminal

and really thanks to superuser.com guys
[Sony Xperia S, Acro S, Ion] ibtihaaz:
Finally

Having posted here before on page 26 .. i am very glad that i managed to do this data partition increase Today after reading all the post from that page till now .. lots of ideas came up since then

Thanks to [MENTION=5225941]vishals16[/MENTION] and [MENTION=4251816]gameputra[/MENTION] posts ... i was able to clear the conflict between drivers and GOT recognized in twrp and carry on with the data increase ... was not easy but if you really put your mind to it any1 can do it and i took the opportunity to f2fs the partition at the same time and start from scratch with a clean install of ucyan 12.1 and so far so good .. no need to worry about the small data partition any more ...fantastic ..

THANKS TO THE OP FOR THIS THREAD
[Sony Xperia S, Acro S, Ion] cknro:
I read through all the thread to know if i could increase my partition size after migrating to f2fs :))) im so glad the last post at least made it clear that i can do it no problem. gonna edit the post later to say if i succeded.

edit. done in 30 min. nice tutorial. thank you :D
[Sony Xperia S, Acro S, Ion] nageswarswain:
i am not so good on terminal commands and in adb commands....i am very nervous...is thre any safe way to do this stuff like Samsung Glaxy S2 (Just flash some zip files and you r done)?if i do something wrong then what is the most damage it may cause for the phone? sorry for my bad english
[Sony Xperia S, Acro S, Ion] mirhl:
Those are not adb commands (= from pc).

Those are required only if you wanted to perform this operation just with phone.

Most damage you could depends by your mistakes then. You could just forgot to create a partition, or you could delete the whole partition table (even if you'd probably need more than a single mistake for this)

Anyway, even in worst case flashing stock rom will fix everything.

Spoiler content hidden.
[Sony Xperia S, Acro S, Ion] dttung80:
It's run good, but I lost my IMEI and baseband,

Then i use Flashtool to flash stock rom and recover my IMEI.

Then flash Cyanogen ROM.

Done !

Thanks a lot.
[Sony Xperia S, Acro S, Ion] Mirhawk:
This process would not affect the baseband/IMEI, since all You are doing is altering the partition table. Must have messed up in some different way.
[Sony Xperia S, Acro S, Ion] dttung80:
Yes, i dont know how I lost the partition from 8 to 15. So I must re-partition from 7 to 15 manual. It s ok but lost Imei.

I use Flashtool to back to stock to recover IMEI, and re do the tasks on thread and have success.

I want to give the the information and the solution for any one who (may be) lost IMEI no need to worried. :)
[Sony Xperia S, Acro S, Ion] lightdecent:
GGuys need Help.

after doing all steps, i pushed rom and gapps as well..

but now when i am trying to flash rom, it is saying unable to mount data. ANy solutions? please.

Just to tell you, i got error that re reading partition table failed. kernel still uses old tables after step 10.

Please help :(
[Sony Xperia S, Acro S, Ion] ajayzone2:
I am Not able to Install Stock Rom Plz Help

Saying Unknown Device
[Sony Xperia S, Acro S, Ion] nageswarswain:
first you have to know wheather your pc is detecting your device or not...to do that first

1. open flashtool.

2. power off your phone

3. connect the usb cable to pc (dont connect to phone)

4. Now hold down the Volume down key (dont release the key) and connect your usb cable to phone...

5. Now look towards the flashtool on pc and see whats its saying....if it you have all the drivers installed before the it will say Xperia s connected in flash mode otherwise it will say driver not installed (then you have to install the drivers again from driver folder in flashtool).

6. if pc recognizes the phone in flash mode then you can flash the stock rom...

hope it will help you
[Sony Xperia S, Acro S, Ion] dttung80:
U wanna mount data, pls try S Doom Kernel (cwm 6 recovery).

Twrp recovery is good for mount / format SD card, but not good for data / system.

---------- Post added at 04:10 AM ---------- Previous post was at 03:57 AM ----------

I think miss important guide that need split step 5 - download n install sony driver first to recognize the device flash mode. If not, the step No4 will be corrupt.
[Sony Xperia S, Acro S, Ion] lightdecent:
guys i am having problem,

the process of data partition failed coz i unmounted using adb which leads to fail i guess.

now i am trying to install stock rom but the process is getting failed and i am unable yo flash stock rom.

it says

ERROR - ERR_SEVERITY="MAJOR";ERR_CODE="0009";ERR_DYNAMIC="Block verification failed";

any solution please ?
[Sony Xperia S, Acro S, Ion] mirhl:
http://xdaforums.com/showthread.php?t=1621332
[Sony Xperia S, Acro S, Ion] lightdecent:
thanx mirhl. i installed stock rom now. ya it was problm of rom and redownloading solved it. Thanx a lot.

now another problm.

its giving error in recovery twrp

" kernel does not have support for reading selinux contexts "
[Sony Xperia S, Acro S, Ion] mirhl:
First fastboot the kernel of this rom nAOSP or uCyan
[Sony Xperia S, Acro S, Ion] lightdecent:
which rom bro ? can u please tell me kernel name or link ?
[Sony Xperia S, Acro S, Ion] PunchUp:
Inside the ROM zip, you'll find boot.img. Flash that using FlashTool. Then enter recovery and flash the ROM
[Sony Xperia S, Acro S, Ion] lightdecent:
i sorted out and reflashed stock.

done whole procedure of repartition again and again failed to repartition. same error kernel using old partition.

i unmounted everything using twrp mount option but still same result.

shud i try terminal command ?

and while using terminal, first step is unmount everything.

will i be able to start terminal command as i unmounted everything?

coz terminal command start from phone menu.
[Sony Xperia S, Acro S, Ion] airwolf1544:
Yeah.. i have it done :) :good:

Now i have place to activate ART :)

Thx for your tutorial..
[Sony Xperia S, Acro S, Ion] satyawan0307:
will increasing data partition of my xperia s will solve my mobile lagging problem while multitasking :confused:
[Sony Xperia S, Acro S, Ion] airwolf1544:
I don't think that.

Gesendet von meinem Xperia S mit Tapatalk
[Sony Xperia S, Acro S, Ion] Painting:
Hello.

Can some one please explain this to me:

I've installed TWRP, then what?

I boot into fastboot or normal boot ?

I'm using windows 8

Thanks
[Sony Xperia S, Acro S, Ion] airwolf1544:
Boot to twrp. Now you can use the adb command. (A tool from the Android SDK)

Gesendet von meinem Xperia S mit Tapatalk
[Sony Xperia S, Acro S, Ion] nisu4717:
How can I increase system partition
[Sony Xperia S, Acro S, Ion] not anonymous:
I don't really understand this.A video tutorial would help.
[Sony Xperia S, Acro S, Ion] Painting:
Thank you.

Still I got the msg "adb was unexpected at this time" each time!

I even tried it on Win7!

:(
[Sony Xperia S, Acro S, Ion] m1st3r1:
deleting the /system partition (number 12/13, the one that has ~1 gB) then creating the same way you do for data. well, it's just my thought. why do u want to increase /system partition anyway? i havent seen any rom that take more than 800 mB (with full gapps) for xs.

it's really easy, only time consuming. if you're afraid u done something wrong, just make sure you have flashtool and ftf file (stock rom for xs) ready, it will reset the partition (i messed up my first try :D )

it's a possibility that u have put adb.exe (and other files) in folder that has spaces. try remove the spaces. and it's recommended to put your ~/platform-tool/ folder in path (google how to do it, and remember not to make any spaces).
[Sony Xperia S, Acro S, Ion] nisu4717:
I was just trying a zip port HTC one mini ROM using galaxy user's guide.but that 1 is 1GB.That's y m asking
[Sony Xperia S, Acro S, Ion] not anonymous:
will try it soon! may the good luck be with me lol
[Sony Xperia S, Acro S, Ion] SetiroN:
Has anybody tried to partition the whole thing as /data and then create an /sdcard sym link like it's done on nexus devices? Any contraindications to that?
[Sony Xperia S, Acro S, Ion] Envious_Data:
if i brick my device i should be able to flash a ftf and restore my device status right? or does faliour of this just hardware brick your device

because im wiling to try this with Z2 and S but with the corresponding data partition blocknames
[Sony Xperia S, Acro S, Ion] Apology11:
if something goes wrong and you miss a patition after the error, you probably won´t be able to flash a rom. But you should be able to flash a boot.img still, which means you should at least be able to access recovery.
[Sony Xperia S, Acro S, Ion] Envious_Data:
well that atleast lets me know i can reinstall the ext4 partition from a ftf file, the only problem i see is on Z2, im not sure if the internal sd is merged and limited or merged

its merged with my internal storage and ive never been able to pass 500mb of apps because i ran out of device space in total
[Sony Xperia S, Acro S, Ion] nisu4717:
With the same way u can increase system partition theoretical. May be this can help to get envo os for xperia z2
[Sony Xperia S, Acro S, Ion] Envious_Data:
envi-os for z2 installs to internal or external sd depening on your choice, of course i havnt finished it

anyway i think ill mess around with this if i can figure out if z2 has a dedicated data partition ill definatly do this with z2, for now ill have to wait to get a phone, as i do not have a xperia s or z2 (i dont even have a spare phone lol)
[Sony Xperia S, Acro S, Ion] kamald73:
i boot into TWRP, but from PC when i type adb shell it reply error: device not found.

please help

---------- Post added at 04:17 PM ---------- Previous post was at 03:27 PM ----------

Edit: nevermind, after reinstall my adb driver, adb shell works, and now continue trying to increase data partition.
[Sony Xperia S, Acro S, Ion] bamboohao:
Is this warning message normal? I got this even after the second trial...and i have to reflash ftf to recover the phone, not sure which step i did wrong...
[Sony Xperia S, Acro S, Ion] SystemR89:
I really appreciate this! Thank you very much dape16!

I not tried it, there are some contraindications: sdcard partition should be a fat partition, your system during boot-up expect a one partition. Probably you can do a thing like this but you to modify also some config files.

Fastboot SHOULD be accessible also with a totally wrong partition table. So an hard-brick is hard to achieve!

Maybe you are trying to repartition without booting in recovery mode? Or maybe you have /data or /sdcard partition mounted?
[Sony Xperia S, Acro S, Ion] PunchUp:
I had the same error, but I really don't remember how I worked it out. Should've written down somewhere

The only hint I can give you is that I hadn't followed one of the steps properly. Read the tutorial again carefully
[Sony Xperia S, Acro S, Ion] Mirhawk:
I would recommend doing this procedure on a Lollipop based firmware, as most have done it. Also, unmounting everything from phone won't affect the adb on PC. But un mount everything from TWRP menu, as the some partitions remain mounted even after running commands.
[Sony Xperia S, Acro S, Ion] PunchUp:
I don't think Lollipop has anything to do with it. I messed up once and had to reflash stock ROM. And this procedure worked fine from stock JB
[Sony Xperia S, Acro S, Ion] Mirhawk:
Agree to that, but I had done that on Lollipop ROM when I had run out of storage, so just a suggestion according to what I did. Good to know it works on Stock JB too.
[Sony Xperia S, Acro S, Ion] lightdecent:
tried with terminal command..

and still failed.

Looks like i have to give up now. :(
[Sony Xperia S, Acro S, Ion] mirhl:
You reinstalled stock rom. Ok.

Did you root and installed latest TWRP on fota partition?

Then, fastboot, say nAOSP kernel and try either the procedure in the OP or mine
[Sony Xperia S, Acro S, Ion] lightdecent:
i used latest available twrp on my phone.

and used Doom Kernel.
[Sony Xperia S, Acro S, Ion] mirhl:
Try the ones I said
[Sony Xperia S, Acro S, Ion] ajayzone2:
How To Install TWRP On Fota Partition ?
[Sony Xperia S, Acro S, Ion] mirhl:
https://twrp.me/devices/sonyxperias.html
[Sony Xperia S, Acro S, Ion] shamsul007:
Just did this. Increased Data size to about 6gb.

Spent an hour panicking because TWRP was reading /sd and /data as 0gb.

Realized I just forgot to format these partitions through adb shell.

Thanks for the guide!
[Sony Xperia S, Acro S, Ion] nageswarswain:
deleted
[Sony Xperia S, Acro S, Ion] nageswarswain:
Deleted
[Sony Xperia S, Acro S, Ion] nageswarswain:
is this process will be performed by terminal emulator app or in TWRP Terminal command...in TWRP Terminal command i can find the way to write the codes you given...When i am selecting terminal command in twrp its showing "Browse to Starting Folder" plz answer
[Sony Xperia S, Acro S, Ion] nageswarswain:
[MENTION=4900593]mirhl[/MENTION] Thanx to you i followed your steps and successfully repartition my data.....Sorry for the above noob questions...i was just too hurry to do that..then i read all the posts and tried to understand....then successfully did that..Thanx again to all of you for being so kind to answer our problems...

Can i restore a backup that i have saved on my pc before repartition?

restored successfully my rom backup twrp
[Sony Xperia S, Acro S, Ion] mirhl:
Sure, I don't see why you couldn't.
[Sony Xperia S, Acro S, Ion] mpulock:
Hi.

Can I use stock JB ROM and keep the increased partition at the same time on my Xperia S. Each time I flash the Stock .ftf, the partition is restored to 2 GB. Right now, I am in Stock JB 6.2.B.1.96, and managed to install TWRP recovery.

If I increase my data partition, eventually I have to format my sd card and push new ROM.zip, so that I can flash it. But, the stock Rom comes with only .ftf. How can I push .ftf to sd card and flash it with TWRP? I don't want other stock based ROMs or Stock ROM with root and busybox intalled: http://xdaforums.com/showthread.php?t=2417655

I want to use pure stock ROM with a increased 8 GB data storage. Is this possible? Anyone using like this?
[Sony Xperia S, Acro S, Ion] nageswarswain:
Although i have not tried this,you can try and see whats happening...

1st take backup of your stock rom by twrp and copy that backup to pc.

Then repartition and after repartition flash any rom (5.1 rom ) other than stock by sending zip file to sd card...after that you can install twrp to fota partition.then copy the Backed up stock rom from pc to sd card and restore it...

Let us know wheater it worked or not?
[Sony Xperia S, Acro S, Ion] mpulock:
Thanks for the tip. I had it in my mind as 'Plan- C'. It's too much hassle, I wish any of you guys here can come up with a 'Plan-A or B' . If there is no other way, I'll go your way then. :good:
[Sony Xperia S, Acro S, Ion] darknessmc:
Yes

1- wipe data factory reset from recovery or format data, cache and Dalvik cache.

2- open flashtool and check only system and kernel. Don't check data and cach or anything
[Sony Xperia S, Acro S, Ion] mpulock:
Okay, I did that, doesn't work. Phone memory goes back to 2 GB. Please, check my attached image. I did it how you told. Let me know if it's not correct.
[Sony Xperia S, Acro S, Ion] mirhl:
I guess the problem is that partition-image.sin

And.. it seems you have inverted ticks.
[Sony Xperia S, Acro S, Ion] mpulock:
Yes, May be it's the partition-image.sin that caused the problem,

And, I didn't get what you said as 'Inverted ticks'. I was told to check only 'system' and 'kernel', and uncheck 'data', 'cache'. I did same like that. Not the other way. :)
[Sony Xperia S, Acro S, Ion] darknessmc:
Yes you inverted ticks (my mistake)

In "wipe" don't check anything

In "exclude" check everything except "system and kernel"
[Sony Xperia S, Acro S, Ion] mpulock:
No problem. It was my mistake too. I misunderstood. :o

I'll do it again. Thanks. :highfive:
[Sony Xperia S, Acro S, Ion] BLu-RaymOn:
Huge Thank, very useful :laugh:
[Sony Xperia S, Acro S, Ion] pejman97:
Could anyone please tell me how can I exactly do this step. The words "First cylinder" and "Last Cylinder"makes me confused. I'm new comer. Thanks for helping
[Sony Xperia S, Acro S, Ion] patrol-cz:
Its all about terminology. In classical rotary disks, the data are organized in structures called Cylinders/Heads/Sectors.. When partitionihng the disk, Heads and Sectors are obviously omitted, and the partition boundaries are made between cylinders. So, a partition has a "First cylinder", which normally must be the number of last cylinder of preceding partition +1, and "Last cylinder"., where it ends and there is either end of the physical medium (so it's the last cylinder on the disk) or a next partition may be placed (and its First cylinder will be this Last cylinder +1). If you would enter the number of the First cylinder being less or equal the Last cylinder of the preceding partition, they would overlap, which would lead to a data corruption. fdisk will not allow you to do it. If you will enter the number of First cylinder as greater than Last cylinder of preceding partition +1, you'll create an empty (unused) space on the disk, which you obviously don't want but because it will not cause any problems, fdisk will allow it.

With regards,

Pavel
[Sony Xperia S, Acro S, Ion] Diverti:
Not worked

When i tried this, it's not work.. I got this:

[IMG="error"]http://i.imgur.com/ugR45Ng.jpg[/IMG]

Now the 14-15 partitions are there..but in twrp i can't mt them, and can't wipe them.. how to fix it? :(

Do i need a reflash?

I tried it:

[IMG="error 2"]http://i.imgur.com/oRorpgn.jpg[/IMG]

Can anyone post me a .ftf if yes ?

Thanks for the reply!!
[Sony Xperia S, Acro S, Ion] mirhl:
[MENTION=5315089]Diverti[/MENTION]

You have to first unmount every partition
[Sony Xperia S, Acro S, Ion] Diverti:
Yeah i did that, from twrp, but now, i can only mount System and Cache..

I uncheck Cache, than i tried this, now i didn't get that error message, when i use p, it shows those partitions, but i can't mount them anywhere...(ADB, TWRP) so now?

When i try to wipe in twrp:

E:Unable to wipe '/data' --unknow file system 'auto'
E:Unable to wipe '/data'
Updating partition details
E:Unable to mount '/data'
..done
E:Unable to mount storage.

---------- Post added at 06:08 PM ---------- Previous post was at 05:17 PM ----------

http://xdaforums.com/showpost.php?p=59132685&postcount=274

This post helped me, now i try to flash the rom :D

---------- Post added at 07:00 PM ---------- Previous post was at 06:08 PM ----------

Rom flashed succesfully, thanks for this tutorial :)
[Sony Xperia S, Acro S, Ion] Laura158:
i have Increased data partition up to 8GB, migrated filesystem to F2FS & installed nAOSPRom v25b. But my phone have problem with internal storage, it's avaible only 500MB, my phone haven't enough space to install new apps or update. How to solve this problem? Thanks!
[Sony Xperia S, Acro S, Ion] mpranay25:
i am stuck in step no. 12 Push your ROM and gapps

Code:

(PC) adb push myrom.zip /sdcard/

(PC) adb push gapps.zip /sdcard/

i dont know how to push rom and gapps into sdcard....

anyone tell me how to do that.....it will b a great help
[Sony Xperia S, Acro S, Ion] ivanasecas01:
In your pc , write

adb push (the name of you ROM) for example

adb push nAosprom.zip/sdcard

And with you gapps , the same

adb push tkgapps.zip/sdcard...

Enviado desde mi Xperia S mediante Tapatalk
[Sony Xperia S, Acro S, Ion] YuriBasescu:
awesome!
[Sony Xperia S, Acro S, Ion] h4xw4r:
hi, i have tried many times but i got same error

in step "10 Write changes to partition table"

{

The partition table has been altered.

Calling ioctl() to re-read partition table

fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy

}

any help
[Sony Xperia S, Acro S, Ion] mirhl:
Unmount partitions.
[Sony Xperia S, Acro S, Ion] h4xw4r:
thanks bro i will try that

starting from stock this time
[Sony Xperia S, Acro S, Ion] ajayzone2:
How To Do it Without PC ?
[Sony Xperia S, Acro S, Ion] mirhl:
http://xdaforums.com/xperia-s/s-development/tutorial-increase-data-partition-t2821058/post60540140
[Sony Xperia S, Acro S, Ion] prohibeat:
Changing partition table and filesystem to F2FS took me less than eating a bowl of cornflakes. Thanks for sharing your wisdom.
[Sony Xperia S, Acro S, Ion] ajayzone2:
open terminal command From TWRP or What ?
[Sony Xperia S, Acro S, Ion] nageswarswain:
You can do it by twrp or by terminal emulator app
[Sony Xperia S, Acro S, Ion] ajayzone2:
I want 8gb Data Partition What Would i Do ?
[Sony Xperia S, Acro S, Ion] prohibeat:
Instructions are on the first page of this thread. There are explanations and tips on other pages. If they are not clear enough for you probably should not do it.