• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Sony Xperia X - Installation stuck on wiping partition

Scheduled Pinned Locked Moved Sony Xperia X (F5121 & F5122)
19 Posts 5 Posters 1.5k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MrT10001 @Badunifil
      last edited by MrT10001 6 Apr 2023, 20:01 4 Jun 2023, 20:00

      @Badunifil In the main menu of TWRP:
      TWRP_3.7.0_menu_screenshot.jpg

      Advanced Wipe choose repair or change file system -image is example - tick DATA only.
      TWRP advanced wipe.jpg

      Change file system:

      5repaircahngefilesystem.jpg

      Xiaomi Redmi Note 7.... And more...
      I have too many devices...

      B 1 Reply Last reply 4 Jun 2023, 22:12 Reply Quote 1
      • B Offline
        Badunifil @MrT10001
        last edited by 4 Jun 2023, 22:12

        @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.

        image.jpg

        M M 2 Replies Last reply 4 Jun 2023, 22:26 Reply Quote 0
        • M Offline
          Moem @Badunifil
          last edited by 4 Jun 2023, 22:26

          @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.

          Is currently using an Op5t
          Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mario.CH @Badunifil
            last edited by 5 Jun 2023, 19:43

            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 :man_climbing: :winking_face:

            📱 Oneplus Nord N100 UT20.40 (OTA5); then Xperia X (since 2020) at last UT 20.04(OTA5), now out of service due to defective camera
            🐎 When you realize you are riding a dead horse, get off!
            My languages skill: 🇨🇭🇦🇹 🇩🇪, and only orally: 🇬🇧 🇹🇭

            1 Reply Last reply Reply Quote 0
            • B Offline
              Badunifil
              last edited by 4 Jul 2023, 00:49

              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.
              de24d490-c2c6-49f3-9603-e663dc571144-image.png

              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.

              M M 2 Replies Last reply 4 Jul 2023, 16:53 Reply Quote 0
              • M Offline
                MrT10001 @Badunifil
                last edited by 4 Jul 2023, 16:53

                @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.

                Xiaomi Redmi Note 7.... And more...
                I have too many devices...

                B 1 Reply Last reply 9 Jul 2023, 22:36 Reply Quote 0
                • M Offline
                  Mario.CH @Badunifil
                  last edited by 4 Jul 2023, 19:39

                  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:

                  https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/flash-tool/useful-key-combinations/

                  Good luck. 🍀

                  Greeting Mario

                  📱 Oneplus Nord N100 UT20.40 (OTA5); then Xperia X (since 2020) at last UT 20.04(OTA5), now out of service due to defective camera
                  🐎 When you realize you are riding a dead horse, get off!
                  My languages skill: 🇨🇭🇦🇹 🇩🇪, and only orally: 🇬🇧 🇹🇭

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Badunifil @MrT10001
                    last edited by 9 Jul 2023, 22:36

                    @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.

                    M 1 Reply Last reply 10 Jul 2023, 04:14 Reply Quote 0
                    • M Offline
                      MrT10001 @Badunifil
                      last edited by 10 Jul 2023, 04:14

                      @Badunifil The bootloader is unlocked as you have booted into TWRP, leave it in fastboot and run the UT installer.

                      Xiaomi Redmi Note 7.... And more...
                      I have too many devices...

                      B 1 Reply Last reply 10 Jul 2023, 16:58 Reply Quote 0
                      • B Offline
                        Badunifil @MrT10001
                        last edited by 10 Jul 2023, 16:58

                        @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.

                        M 1 Reply Last reply 10 Jul 2023, 17:05 Reply Quote 0
                        • M Offline
                          MrT10001 @Badunifil
                          last edited by 10 Jul 2023, 17:05

                          @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.

                          Xiaomi Redmi Note 7.... And more...
                          I have too many devices...

                          B 1 Reply Last reply 26 Jul 2023, 18:37 Reply Quote 0
                          • B Offline
                            Badunifil @MrT10001
                            last edited by 26 Jul 2023, 18:37

                            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.

                            M 1 Reply Last reply 26 Jul 2023, 19:23 Reply Quote 2
                            • M Offline
                              Mario.CH @Badunifil
                              last edited by 26 Jul 2023, 19:23

                              Hi @Badunifil,

                              I'm glad you made it after all. :clapping_hands_light_skin_tone:
                              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 :winking_face:

                              📱 Oneplus Nord N100 UT20.40 (OTA5); then Xperia X (since 2020) at last UT 20.04(OTA5), now out of service due to defective camera
                              🐎 When you realize you are riding a dead horse, get off!
                              My languages skill: 🇨🇭🇦🇹 🇩🇪, and only orally: 🇬🇧 🇹🇭

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post