Sony Xperia X - Installation stuck on wiping partition
-
Other instruction here ... https://forum.xda-developers.com/t/rom-f5121-wip-ubuntu-touch-for-sony-xperia-x.3958100/
youtube here ... https://m.youtube.com/watch?v=lA7l9rcuDiQ
-
@Pingu said in Sony Xperia X - Installation stuck on wiping partition:
maybe you could try an older version of installer.
I would not do that, it offers no benefits.
-
Download and install TWRP recovery for the Xperia X - here in fastboot. You have to make sure the DATA partition is formatted to EXT4 or Ubuntu Touch won't work. (In the main menu choose WIPE, then advanced, tick the DATA partition box, and choose repair or change file system and select EXT4).
Once done, reboot to system (android) and set it up again. Then try again.
-
@MrT10001 said in Sony Xperia X - Installation stuck on wiping partition:
(In the main menu choose WIPE, then advanced, tick the DATA partition box, and choose repair or change file system and select EXT4).
Once done, reboot to system (android) and set it up again. Then try again.In the main menu of what? I was able to follow the steps for the Fastboot Install Method, and use the
adb devices
andfastboot flash recovery twrp.img
commands, which seemed to succeed, but that hasn't affected the behavior of the device.Just to be thorough, I downloaded the TWRP app via the Play Store, but there's no "WIPE" option in there either. What does TWRP even do, anyway?
-
@Badunifil In the main menu of TWRP:
Advanced Wipe choose repair or change file system -image is example - tick DATA only.
Change file system:
-
@MrT10001
Thank you very much for the screenshots and detailed explanation. However, the app I have installed on my Xperia does not look like that. I'm sure I installed the correct app.Pardon the low image quality, but taking a photo with my Nexus 5 was the simplest way.
-
@Badunifil said in Sony Xperia X - Installation stuck on wiping partition:
the app I have installed on my Xperia does not look like that. I'm sure I installed the correct app.
What you have there looks like the TWRP app, running on Android (or something Android-adjacent). That's not what you need.
What you need is the TWRP recovery, that can be booted separate from any OS. It's a different thing. I know because I made the same mistake. -
Hi @Badunifil,
For your info, please read in the following links:
https://twrp.me/sony/sonyxperiax.html
https://forum.xda-developers.com/t/ub-recovery-twrp-v3-7-0-for-xperia-x.3786431/
best regards
Mario
-
First of all, thank you all for your help. I would have replied sooner but I was injured near the start of June and my work has been very busy in the meantime so I have not been able to sit down and devote an afternoon to figuring this out.
@Moem said in Sony Xperia X - Installation stuck on wiping partition:
What you need is the TWRP recovery, that can be booted separate from any OS. It's a different thing. I know because I made the same mistake.
Yeah. Not my smartest moment.
@MrT10001 said in Sony Xperia X - Installation stuck on wiping partition:
Download and install TWRP recovery for the Xperia X - here in fastboot. You have to make sure the DATA partition is formatted to EXT4 or Ubuntu Touch won't work. (In the main menu choose WIPE, then advanced, tick the DATA partition box, and choose repair or change file system and select EXT4).
Once done, reboot to system (android) and set it up again. Then try again.
I understand what you meant in this post now. I haven't been able to get the fastboot instructions to work on Windows, so I have moved to my Linux PC (Devuan, which is non-systemd). I have followed the instructions you linked, and the twrp.img file seems to have deployed successfully to my device.
However, after running these commands and holding down the Volume Up button in order to remain in fastboot mode, I'm not sure what to do next.
- If I reboot the device via the command line, it boots to the normal Android OS (but will stay in fastboot mode with a blank screen if I hold down the Volume Up button).
- If I unplug the device and let it boot, it does the same (even if I'm holding down the Volume Up button).
I've read through all the links provided in this thread and I still feel like I'm missing something. Any help would be great.
-
@Badunifil Once you have installed TWRP you have to boot into recovery (which is TWRP), don't do fastboot reboot but look at the volume and power key combo to enter recovery. Power off first and then use the key combo to boot to recovery.
If it boots into Android, you need to reflash TWRP as it gets overwritten by Android recovery.
-
Hi @Badunifil,
Supplement to the quote from
@MrT10001 said in Sony Xperia X - Installation stuck on wiping partition:
Once you have installed TWRP you have to boot into recovery (which is TWRP), don't do fastboot reboot but look at the volume and power key combo to enter recovery. Power off first and then use the key combo to boot to recovery.
See also, the mentioned key combination, under the title <Recovery mode> in the following link:
Good luck.
Greeting Mario
-
@MrT10001
@Mario-CH
Thanks. I was able to boot into the TWRP interface, and I followed the instructions from earlier: Wipe > Advanced > check "Data" > Repair or Change File System > Change File System > EXT4. I swear that these are the only options I chose.After doing this and attempting to reboot into the Android OS to get the device ready for a UT installation, it is stuck in a boot loop. All I see now is a warning screen ("Your device has been unlocked and can't be trusted"), then the SONY splash screen, then a black screen. It repeats indefinitely.
I can still boot the device into the TWRP interface and into fastboot mode, so it's not totally scrambled, but I think I did something to the Android OS to make it unbootable.
-
@Badunifil The bootloader is unlocked as you have booted into TWRP, leave it in fastboot and run the UT installer.
-
@MrT10001
My Win10 PC does not recognize the device when it is in fastboot mode, so I booted into TWRP and got the installer to recognize it. I began the installation, and the installer rebooted the device into fastboot mode in order to erase the partition.It currently seems to be stuck doing that. I will give it time so that I can be sure what is happening, but I think I may be back at square one with a system partition that won't erase.
Alternatively, I may try setting up a Linux VM with something really compatible like Mint, and try using that to install via the command line.
-
@Badunifil You need to have the latest fastboot and ADB drivers installed. I would (and i say that as it has worked every time for me on Linux and Windows) install Android Studio. Once installed, run the installer again. The UT installer should work as it has it's own fastboot and ADB drivers, but I have found not all the time. Installing Android Studio resolved these issues I encountered.
-
I have solved the problem by using the UB Ports installer on a VM (Mint hosted on Devuan). Both my Devuan PC and the VM recognized the device during normal and fastboot modes with no trouble, and all I had to do was redirect the USB connection to the VM a few times as the device restarted during installation. My Xperia is now running Ubuntu Touch with zero problems.
If I ever do this in the future, I'll avoid the Windows version of the installer completely. I've used it twice now and both times it has been more hassle than using a Linux version on a compatibility-focused distro like Mint.
-
Hi @Badunifil,
I'm glad you made it after all.
The feeling of having made it gives you a closer connection to the new OS.
This might tempt you to donate if you like the UT operating system.
Does it or doesn't it?
Whatever, enjoy your new OS.Greetings Mario