[Sony Xperia S, Acro S, Ion] tanatorn.b57:
Hi dude! We have the same problem I guess you are a newbie like me (Im 1st time for this)

I tried to many times and finally I solved it :laugh:

Your problem may starting from

fdisk /dev/block/mmcblk0
[COLOR="Red"]Command (m for help): p
Command (m for help): d
Partition number (1-15): 15
Command (m for help): d
Partition number (1-15): 14
Command (m for help): n
First Cylender (769-954240, default 769): 49247
Last cylinder or +size or +sizeM or +sizeK (49247-954240, default 954240): 954240[/COLOR]

Did you typing all the red characters? If YES your problem will solve soon!

Follow me (*Im staring with RE-FLASH )

1. Open Minimal ADB and Fastboot and type below commands;

fastboot devices

(Hit enter button on your keyboard)

fastboot flash boot recovery.img

(Hit enter button on your keyboard)

fastboot reboot

(Hit enter button on your keyboard, Now your phone will restart in TWRP recovery)

2. REPARTITIONING STARTS:

• In TWRP GoTo Mount -> uncheck everything (system,data,cache etc)

• In PC in Minimal ADB and fastboot type below;

adb shell

fdisk -l /dev/block/mmcblk0

Now You'll see some information-table, just copy everything and keep safe. It'll help you.

NOW CONCENTRATE ON LAST TWO ROWS IN THAT INFO-TABLE

[COLOR="RoyalBlue"]/dev/block/mmcblk0p14 49247 261695 7000024 83 Linux
/dev/block/mmcblk0p15 261696 954240 22161424 83 Linux[/COLOR]

(Values for your phone may differ)

NOW type below command; (make sure VALUES IN SAME COLOR MATCHES ACCORDING TO YOURS)

Red meant to : Command Promt GUI

Just typing for a blue CHARACTERS

[COLOR="royalblue"]fdisk /dev/block/mmcblk0[/COLOR]
[COLOR="Red"]Command (m for help):[/COLOR][COLOR="RoyalBlue"] p[/COLOR]
[COLOR="red"]Command (m for help):[/COLOR] [COLOR="royalblue"]d[/COLOR]
[COLOR="red"]Partition number (1-15):[/COLOR] [COLOR="royalblue"]15[/COLOR]
[COLOR="red"]Command (m for help):[/COLOR] [COLOR="royalblue"]d[/COLOR]
[COLOR="red"]Partition number (1-15):[/COLOR] [COLOR="royalblue"]14[/COLOR]
[COLOR="red"]Command (m for help):[/COLOR] [COLOR="royalblue"]n[/COLOR]
[COLOR="red"]First Cylender (769-954240, default 769):[/COLOR] [COLOR="royalblue"]42945[/COLOR]
[COLOR="red"]Last cylinder or +size or +sizeM or +sizeK (49247-954240, default 954240):[/COLOR] [COLOR="royalblue"]477120[/COLOR]

[COLOR="red"]Command (m for help):[/COLOR] [COLOR="RoyalBlue"]t[/COLOR]
[COLOR="red"]Partition number (1-14):[/COLOR] [COLOR="royalblue"]14[/COLOR]
[COLOR="red"]Hex code (type L to list codes):[/COLOR] [COLOR="royalblue"]83[/COLOR]

[COLOR="red"]Command (m for help):[/COLOR] [COLOR="royalblue"]w[/COLOR]
[COLOR="red"]The partition table has been altered.
Calling ioctl() to re-read partition table[/COLOR]

YOU'll SEE A ERROR, JUST IGNORE IT
Once partition is Done. Just reboot device. JUST REBOOT!

If you see 0MB or any wrong value for data after the reboot, try to format data (Wipe/Format Data).

In Extreme case, convert data to ext4 and convert back to f2fs. It'll hopefully work for you.

DONE!

----------Flashing nAOSP ROM 6.0----------

Copy the Downloaded nAOSP.zip AND OpenGapps.zip in Memory Card

IN TWRP:

Install

Select nAOSP.zip

Add more Zips (IMP)

Select OpenGapps.zip (IMP)

Swipe to Change

(after it's done)

Clear Cache and Dalvic Cache

Reboot

DONE!

(For the first time it can take a long to boot-up. So just don't worry and sit back!)

If you Found Above Post Helpful, There's a Thumbs UP Button Below, Don't Forget To Click It.

Thanks for : hitman-xda

HOPE YOU CAN SOLVED YOUR PROBLEM! ♥