yashsingh1/xdaforums huggingface dataset:
[Sony Xperia S, Acro S, Ion] vishals16:
Okay. Well, that is strange. From what I remember, it shows up in the device manager for a small amount of time. Anyway, that is a problem.

You were able to do that, right? Or did you do it with linux live image?
[Sony Xperia S, Acro S, Ion] PunchUp:
Linux is my primary OS. I just tried it on Windows yesterday to help him out but no luck.
[Sony Xperia S, Acro S, Ion] GjorgiDxc:
yup. i boot into recovery, connect the phone and when i write the command adb shell and the error shows up. also when the phone is booted up it's recognized by adb, only in recovery i have this problem
[Sony Xperia S, Acro S, Ion] PunchUp:
Many people are having that problem :p Read the conversation
[Sony Xperia S, Acro S, Ion] lks72:
Sorry i need an info..

at point 11 wipe data and sd card means to do wipe from trwp on phone?

at point 12 push your rom and gapps, means that i have to write "myrom.zip" or the namefile.zip of rom and gapps..? than with fastboot i have to flash again rom and gapps? only boot image? or .zip are to flash direcly from trwp.. this part i don't understand well..thanks for help

Oh, by the way, i need to do this after flashing lollipop testo 8 i think.. not now that i have jb.. if i understand well, flashing stock rom will erase data partition increse...
[Sony Xperia S, Acro S, Ion] PunchUp:
- Yea wipe it from TWRP recovery.

- Obviously you have to write the name of the zip file present on your PC

- You don't have to flash boot image. Flashing the ROM zip will take care of it

- And yes flashing stock ROM will reset the default partition values
[Sony Xperia S, Acro S, Ion] GjorgiDxc:
Can someone provide me with the stock ftf, cuz i messed something and now my sdcard is not recognized and i've searched the internet and the stock ftf for xperia s is nowhere to be found pls help guyss
[Sony Xperia S, Acro S, Ion] StarChaserX:
If you are facing the Encryption Unsuccesful, it probably means you are not writing the Partition Table correctly.

I faced the issue and when I retraced my steps, the Cache partition was still mounted and hence adb fdisk did not write the modified partition table.

With block 14 and 15 are already deleted, you dont have a /data and /sdcard.

check if you have any partition mounted when you are done with all the steps (before the final W command)
[Sony Xperia S, Acro S, Ion] MarioPhantom:
Ty

10. Write changes to partition table

Command (m for help): ←[6nw
w
The partition table has been altered.
Calling ioctl() to re-read partition table
fdisk: WARNING: rereading partition table failed, kernel still uses old table: D
evice or resource busy

ty . after 2 bootloop , I can do it now my partition increased to 8 GB .
[Sony Xperia S, Acro S, Ion] GjorgiDxc:
So, i tried to repartition my Xperia S and all went well i installed a rom and gapps, and after i rebooted the phone went off and it doesn't turn on anymore, i tried charging it but after 12 hours of charging the red led is on again, there are no vibrations i can't power it on, can't do a hard reset (holding power button and volume up key) also can't connect to PC, when I connect it via USB the red led goes on again, i tried to connect it in fastboot/flashboot but it's the same thing again the red led goes on like it's charging

PLS HELP. IS THERE ANYTHING I CAN DO TO BRING BACK TO LIFE MY XPERIA S?
[Sony Xperia S, Acro S, Ion] PunchUp:
That's really weird. Hope you can recover it :(
[Sony Xperia S, Acro S, Ion] StarChaserX:
Try holding power button and both volume up+down buttons simultaneously. You should get a single vibration in around 3 sec and three vibrations after around 5 secs. If you are getting this, then the phone is not bricked and you can boot in FastBoot mode.
[Sony Xperia S, Acro S, Ion] GjorgiDxc:
there are no vibrations whatsoever, i was holding the buttons for 2 mins
[Sony Xperia S, Acro S, Ion] StarChaserX:
Doesn't sound good. I doubt that flashing the ROM and this issue interrelated events, as it sounds more like a hardware failure. Which ROM did you flash by the way.

I had a soft brick issue which looked more or less like this issue, when I erroneously flashed the kernel of another Xperia phone to my nozomi. It went pretty dead, but I could get the vibrations of hard reset and managed to connect it in Fastboot. It was not even showing Sony Logo at that time, so I thought it might help you too.

Wish you recover from this!
[Sony Xperia S, Acro S, Ion] GjorgiDxc:
yup, i too think that it's a hardware problem just thought of asking on xda for help cuz it's the firt time that this happened, for info i flashed pure AOSP lollipop by billchen1977, i had no problems using the rom the last couple of weeks and than this happend.
[Sony Xperia S, Acro S, Ion] lks72:
why if i type in adb shell "umount / sdcard" it says "can't umount sdcard invalid argument"?

before soemone says to unmount everything exept sdcard from twrp.. it works? how can i do this? and after i proceed in adb shell (from PC)?

Thanks for help!
[Sony Xperia S, Acro S, Ion] PunchUp:
Just unmount it from TWRP and proceed with the other steps
[Sony Xperia S, Acro S, Ion] lks72:
hi, i tried again and i had this warning: Calling ioctl() to re-read partition table

fdisk: WARNING: rereading partition table failed, kernel still uses old table: D

evice or resource busy

after doing all again i've found that last partition (15) has win / fat issue and not linux system like others, and maybe this is the problem.. but i don't know how to solve.. before after installing stock rom, phone formatted sd card and all come back to normal,, but now i don't now how to proceed..or if this is normal if i have to format again in lollipop rom (and how to do it).. this is what i see from adb shell after doing procedure:

Device Boot Start End Blocks Id System

/dev/block/mmcblk0p1 1 65 2048 f0 Linux/PA-RISC b

oot

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2 * 65 81 512 4d Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3 129 768 20480 48 Unknown

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4 769 954240 30511104 5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5 785 800 512 46 Unknown

/dev/block/mmcblk0p6 833 928 3072 4a Unknown

/dev/block/mmcblk0p7 961 1056 3072 4b Unknown

/dev/block/mmcblk0p8 1089 1184 3072 58 Unknown

/dev/block/mmcblk0p9 1217 1376 5120 70 Unknown

/dev/block/mmcblk0p10 1409 1664 8192 83 Linux

/dev/block/mmcblk0p11 1665 2176 16384 f0 Linux/PA-RISC b

oot

/dev/block/mmcblk0p12 2177 34944 1048576 83 Linux

/dev/block/mmcblk0p13 34945 42944 256000 83 Linux

/dev/block/mmcblk0p14 42945 261695 7000024 83 Linux

/dev/block/mmcblk0p15 261696 954240 22161432 c Win95 FAT32 (LB

A)
[Sony Xperia S, Acro S, Ion] StarChaserX:
If you are using TWRP, just check if some partition is still mounted. I got this error (and the partition table was not written) and when I checked (in TWRP), the 'Cache' was still shows as Mounted. I unmounted Cache and the problem was solved.

May be there is something still mounted and because of that adb is not able to rewrite the Partition Table.

Hope it helps.
[Sony Xperia S, Acro S, Ion] satyawan0307:
how to unmount sdcard in twrp .where is that option.i can nly see is mount option in twrp :rolleyes:
[Sony Xperia S, Acro S, Ion] PunchUp:
Common sense.. Just uncheck it to unmount.
[Sony Xperia S, Acro S, Ion] zZprofessZz:
hidden Sdcard partition

If you have done all the thing right but still cant see sdcard partition on your devices just go to setting > storage > format sdcard. You will see the partition again
[Sony Xperia S, Acro S, Ion] salva87:
Hi, this works with lollipop too?

If i want to upgrade a custom rom. What should i wipe (and what i shouldnt)

Thx!!
[Sony Xperia S, Acro S, Ion] SRS_Sony:
I will try this tuto but my device is did find to adb command, i boot in recovery and my device is not install on my pc so thank for your help and sorry for my english
[Sony Xperia S, Acro S, Ion] MoreYummy:
Where to install TWRP recovery, what is the full name of it?
[Sony Xperia S, Acro S, Ion] CharlyBrok:
You have to find TWRP for Ion. You should first learn how to flash another rom. I think carbon rom embedd TWRP. Once you'll have modified partitions you have to flash a rom...
[Sony Xperia S, Acro S, Ion] mpulock:
Can anyone elaborate 'Step 7 - Create new data partition' , what should i write in cmd?

(ADB SHELL/fdisk) n

(First cylinder) -> you have to indicate the same start cylinder of partition 14 read in step 6 (What should I write here?)

(Last cylinder) -> +8192M (this will create a 8gB partition)

Thank you.
[Sony Xperia S, Acro S, Ion] vishals16:
After deleting the partitions 14 and 15. Creating a new partition. Write the start cylinder+1 of partition 13 as the start cylinder of the new partition. Then follow the process.
[Sony Xperia S, Acro S, Ion] mpulock:
Okay, after flashing both ROM and gapps , when I reboot the phone, It gives 'Encryption Unsuccessful- Reset Phone' every time. I saw back pages, and tried both ways as mentioned:

1. in cmd: (ADB SHELL) umount /sdcard [Step 3]

and,

2. in TWRP, unmount everything except sdcard

But, both time same message occurs. What should I do? I've followed each step and put same value as others. Don't know, why is happening? Can you help me, guys?

Thank you.

At last, third time everything goes perfactly. No probem now. Thanks.
[Sony Xperia S, Acro S, Ion] CharlyBrok:
You have to wipe data & sdcard before rebooting
[Sony Xperia S, Acro S, Ion] mirhl:
Does current rom (aka system partition) get compromised?

Could you still boot without flashing anything else after this?
[Sony Xperia S, Acro S, Ion] vishals16:
Yeah, it gets compromised. Actually in the process the data partition is first deleted and then recreated with different size. You will have to flash the rom again.
[Sony Xperia S, Acro S, Ion] satyawan0307:
step 11 ("wipe" data and sdcard to format your new partitions)is to do from twrp?

during step 12((PC) adb push myrom.zip /sdcard/

(PC) adb push gapps.zip /sdcard/) is there any need to assign the directory of rom in pc or just write the commands given in tutorial or i need to save the rom in c drive?
[Sony Xperia S, Acro S, Ion] vishals16:
If you want to use the commands to push as given in the tutorial, save the rom in the platform tools folder and assign them the same names. And yes wipe both in twrp. Hope this helps :)
[Sony Xperia S, Acro S, Ion] mirhl:
So I lose personal data and settings..

Why this should have anything to do with /system?
[Sony Xperia S, Acro S, Ion] vishals16:
I think deleting the partition will mess up everything you have on it. That is what I think. I'm not sure.
[Sony Xperia S, Acro S, Ion] satyawan0307:
in step 12 i.e.pushing rom i get this error :cannot stat 'myrom.zip':no such file or directory

what shd i do i have placed my rom in same directory as that of adb i.e.in platform tool folder

after completion of 10th step i also got this error ;-

fdisk: WARNING: rereading partition table failed, kernel still uses old table: D

evice or resource busy

and then i closed the cmd window and started the step 12 and got above error

plzzz help :crying:
[Sony Xperia S, Acro S, Ion] vishals16:
Start the process again. In step 2, instead of unmounting by command, unmount in twrp by unchecking everything in twrp. :)
[Sony Xperia S, Acro S, Ion] satyawan0307:
and what about pushing the rom update :confused:
[Sony Xperia S, Acro S, Ion] vishals16:
Did you change the filename to myrom? Because it says no such file exists.

Anyway, use it as given in tutorial

adb push filename.zip /sdcard/
[Sony Xperia S, Acro S, Ion] satyawan0307:
i did the procedure again and got the same thing :-fdisk: WARNING: rereading partition table failed, kernel still uses old table: D

evice or resource busy

then i tried to push the rom and it got something written a long on cmd then when i tried to flash the rom in twrp it shows internal sdcard 0 mb and no rom in sdcard :( whats going on :crying:
[Sony Xperia S, Acro S, Ion] satyawan0307:
this is the 3rd time i tried the procedure again same error comes after (ADB SHELL/fdisk) w

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

is it fine to get this error as i searched on net most of the answer is it is fine to have the error

2) when i try to flash rom it shows internal storage as 0mb and flashing fails :crying:

tell me what shd i do ?
[Sony Xperia S, Acro S, Ion] CharlyBrok:
You should wipe data & sdcard from TWRP. I had to do the fdisk & wipe steps 3 or 4 times...
[Sony Xperia S, Acro S, Ion] vishals16:
It is not able to save the partition table. Yes, it is a standard error. I faced it when I was trying to do the same. But the thing was that the sdcard was not properly unmounted. And it was resolved the way I said. You can also check that the same error has been discussed several times on the thread itself.
[Sony Xperia S, Acro S, Ion] satyawan0307:
finally all work perfectly i downloaded latest adk tool and install latest twrp 2.8.0.1 and tried everything as given on first post even unmounting through adb only and everything worked i have 8 gb partition and flashed pure AOSP test 10 and enjoying sweet taste of loolipop :fingers-crossed:
[Sony Xperia S, Acro S, Ion] Celsim1988:
Hi, I have a problem with the process of the increasing data partition, the same problem of the User Lunatiic, I followed all the steps , checked before starting the process of fdisk if the sdcard was unmounted, but at the end of the process by entering the w command, came this warning attached , so I can not format the SD or data partitions, what can I do?
[Sony Xperia S, Acro S, Ion] vishals16:
In step 3, try unmounting in TWRP by unchecking the sdcard. It will work then
[Sony Xperia S, Acro S, Ion] Celsim1988:
I tried, but still the same error :crying:
[Sony Xperia S, Acro S, Ion] vishals16:
Okay. What version of TWRP are you on?
[Sony Xperia S, Acro S, Ion] Celsim1988:
TWRP 2.8.0.1
[Sony Xperia S, Acro S, Ion] vishals16:
It should work then. You could try uninstalling and reinstalling the adb drivers. It could help. Well, I am not sure why this is happening. I think someone else also face the same problem. Search the thread. It might help :)
[Sony Xperia S, Acro S, Ion] Celsim1988:
I tried again following a instruction in the original thread, which to unmount the sdcard just uncheck the sdcard and date in the mount options in TWRP, but does not work again ...
[Sony Xperia S, Acro S, Ion] vishals16:
After unmounting the sdcard in twrp, don't press back. Stay on the page and continue with the process. Try doing it this way.
[Sony Xperia S, Acro S, Ion] gsmith413:
pls confirm...........

i am looking forward to do this partition thing..(waiting for nAOSP b16 build by mickbart)

I have read all the 9 pages ....and have come across various issues...but i am still confused whether the solutions given are working or not

so any senior member PLEASE CONFIRM..that the steps given in the first post are correct or not?

if not can anyone re-write the tutorials with necessary additions and pls. separate the commands from the explanations.

thanks everyone for help.
[Sony Xperia S, Acro S, Ion] yageysh:
HElP

My Xperia S is detected in Bootloader but is not detecting in CWM. I disables Driver Signing and Installed Flashtools drives also. Please Help.
[Sony Xperia S, Acro S, Ion] mirhl:
You need adb drivers in recovery
[Sony Xperia S, Acro S, Ion] aqibkhan:
Unable to mount/sdcard

i follow the step but i gussed ididnt did it properly. when i first flash the room after the boot animation there was a error "encryption unsucessfull" i click on data reset but nothing happen. when i boot in to the recovery try to wipe date there was a error msg "E: unable to mount/data, E: unable to mount/sdcard. after trying many thing and googling for many hour i am able to mount data and my phone booted up perfectly but i cannot see my internal sdcard in storage and i am still not able to mount sd card through recovery.

i follow the step again through ADB to see the data partition table there it is not showing partition no 15. i have attached the screen shot of that
[Sony Xperia S, Acro S, Ion] vishals16:
Start and stop cylinder of partition 14 are messed up. Start the process again. Delete the partition 14 and recreate both partitions 14 and 15 as given in the tutorial.

(Remember to unmount the sdcard from the twrp which is step 3 in tutorial.)

If you are able to save the partitions successfully after resizing, you can format the sdcard and data partitions. You can then transfer the rom and flash it.

:)
[Sony Xperia S, Acro S, Ion] aqibkhan:
Thanks man it work. sucessfullt partioned table and flash the room
[Sony Xperia S, Acro S, Ion] jobo93:
Deleted...
[Sony Xperia S, Acro S, Ion] cheyyun2015:
Could anyone help me to install and boot TWRP
[Sony Xperia S, Acro S, Ion] Salvien:
I have problem when I'm installing CWM :

"remote object "data/local/tmp/cwm-install.log" does not exist

What i doing wrong ?

Okey, i repaired this :3
[Sony Xperia S, Acro S, Ion] cheyyun2015:
Terminal Emulator : u0_a83@nozomi:/ $ su

root@nozomi:/ # dd if=/sdcard/fotakernel.img of=/dev/block/mmcblk0p11

dd: /sdcard/fotakernel.img: No such file or directory

1|root@nozomi:/ #

I do not know , help me please
[Sony Xperia S, Acro S, Ion] vishals16:
Did you change the twrp recovery filename to fotakernel.img (img being the extension)?

Check it properly
[Sony Xperia S, Acro S, Ion] vishals16:
Change the filename to fotakernel.img
[Sony Xperia S, Acro S, Ion] cheyyun2015:
I renamed fotakernel.img already
[Sony Xperia S, Acro S, Ion] cheyyun2015:
This is file
[Sony Xperia S, Acro S, Ion] vishals16:
Place it in the root of sdcard. I see it is in the downloads folder

I mean the root of internal storage.
[Sony Xperia S, Acro S, Ion] cheyyun2015:
I don't know next command
[Sony Xperia S, Acro S, Ion] vishals16:
There is no next command. You have successfully installed twrp recovery. Reboot and press the volume up button when led flashes.
[Sony Xperia S, Acro S, Ion] cheyyun2015:
If I want to increase data partition , what should I do next step ?
[Sony Xperia S, Acro S, Ion] vishals16:
Reboot in recovery, Connect device to the computer and follow the tutorial
[Sony Xperia S, Acro S, Ion] cheyyun2015:
I do not know why do not have device attached
[Sony Xperia S, Acro S, Ion] vishals16:
You have not installed the adb drivers. Install all the drivers present in C:/flashtool/drivers. Then check the device manager if xperia s shows up when you are in recovery
[Sony Xperia S, Acro S, Ion] cheyyun2015:
FlashTool Xperia Driver : what driver should I take to install ? xperia SL driver ...
[Sony Xperia S, Acro S, Ion] vishals16:
Try selecting all the drivers which have xperia sl in them (I am not sure about Xperia SL, Sorry)
[Sony Xperia S, Acro S, Ion] cheyyun2015:
Installing became to fail . I think that xperia sl driver
[Sony Xperia S, Acro S, Ion] cheyyun2015:
Now device still can not attach
[Sony Xperia S, Acro S, Ion] mirhl:
[MENTION=6453057]cheyyun2015[/MENTION]

Open windows device manager and manually install them
[Sony Xperia S, Acro S, Ion] cheyyun2015:
Could you please help me when I push ROM I have gotten some problems like this :
[Sony Xperia S, Acro S, Ion] mirhl:
Perhaps you should separate the input folder from the output folder
[Sony Xperia S, Acro S, Ion] Nikosvaio:
I thing my ADB is not working properly.

Guys, i am following the instructions step by step but at step 6 it stucks asking me to put the partition number. I insert d then 15 then d then 14 but it keeps asking me to do that. It doesn't remove the partitions as it is suposed to. Command n, which is next and should create new partition is not responding unless i write something it doesn't understand and give me back ''m for help''. Any ideas?

NEVERMIND. Solved it!
[Sony Xperia S, Acro S, Ion] Laura158:
Nice TUT but difficult for me, could anyone make video TUT

Thanks :)
[Sony Xperia S, Acro S, Ion] MoreYummy:
Does it work on windows?

And can i modify the sony xperia ION?
[Sony Xperia S, Acro S, Ion] Mirhawk:
Those are adb commands, so they will work on Windows as well as Linux. You can probably modify ION's partition too, just check which partition is which in ION.
[Sony Xperia S, Acro S, Ion] rayhikki:
Thank you for your guide :D

I've adb shell via CWM(use kelnel S_DooMLoRD_AdvStkKernel_FW-96_v3.elf on .B.1.96.ftf) instead of TWRP.

And use "adb" from Flashtool lib (C:\Flashtool\x10flasher_lib) (on Windows)

Now I can revive my old XS to working better than before :3

PS. sorry for my English >.<!
[Sony Xperia S, Acro S, Ion] sonypro:
help please

in step 7 what exactly should i do? and what does "you have to indicate the same start cylinder of partition 14 read in step 6" mean? i pinted n and this first cylinder thingy appeard what should i print next please help asap

---------- Post added at 07:35 PM ---------- Previous post was at 07:23 PM ----------

nvm i got it
[Sony Xperia S, Acro S, Ion] sonypro:
can you please tell me how did you mount sdcard? i can't do it from twrp
[Sony Xperia S, Acro S, Ion] capuleto125:
i need help

hey

how are you

when I write the code umout/sdcard in the terminal I get an erro you can see in the picture below.

thisI made while the phone was running on android.

when I start in TWRP - says insufficient permissions
[Sony Xperia S, Acro S, Ion] Mirhawk:
Directly unmount sdcard from TWRP menu instead of doing adb via command.
[Sony Xperia S, Acro S, Ion] Sumit_S:
Any way to change partition size without a PC

well, the problem I am facing right now is that the USB on my device has malfunctioned and hence haven't been able it to connect it to PC for past 2-3 months. After upgrading to Android lollipop I am facing memory issues a lot even after moving apps to SD card, hence would like to be able to re-partition the disk.

That's why I wanted to know if there is any possibility to perform this task without a computer?
[Sony Xperia S, Acro S, Ion] luigi0824:
hey guy! what do you think I'm doing wrong? please see the attachments
[Sony Xperia S, Acro S, Ion] vishals16:
Unmount sdcard through twrp in step 3 instead of doing it through command. Goto mount and untick everything. Then proceed with the process. Then you will be able to save the new partition table.
[Sony Xperia S, Acro S, Ion] luigi0824:
BTW, I'm using cwm because my PC wont recognize my phone booted in twrp and cwm is the only working one. OK I'll try what have you said, maybe tomorrow.
[Sony Xperia S, Acro S, Ion] luigi0824:
adb push issue

I can't do adb push! always gives me adb:not found!
[Sony Xperia S, Acro S, Ion] mirhl:
I'm in the same situation.

I believe it should be possible inside TWRP. Just make sure to not compromise system partition contemporary
[Sony Xperia S, Acro S, Ion] Sumit_S:
Bricked my phone, need some support

While trying to perform the mentioned steps, I got the below error at step 10 of writing partition data

The partition table has been altered.
Calling ioctl() to re-read partition table
fdisk: WARNING: rereading partition table failed, kernel still uses old table: D
evice or resource busy
~ # ←[6n

I tried to repeat the process and couldn't find partition 14 and partition 15, so I tried to flash the stock rom through flashtool. While flashing through flashttool, I got the error "failed to install kernel.sin" and flashing was aborted. I tried 2-3 times and got the same error.

Then I tried to reboot into recovery, I was able to get into recovery once after 5-6 attempts, but now my phone is stuck. Nothing happens if I hold power button only. Sometimes I get 1 vibration when I try to soft reset by holding power and volume_up button. Neither I'm able to connect in flash mode by pressing the volume_down button. All I get is red light constantly on when I put the phone on charging or connect it with PC while trying to connect in flash mode.

Any possible help is much appreciated.

Thank You!!!