Can't install any Customs Roms - Error 255 in TWRP - Moto G5 Questions & Answers

Any ideas? I've tried TWRP 3.1.1.0 and 3.2.1.0 but it just reports back "updater process ended with error 255" and terminates?
Please help.

junglebungle said:
Any ideas? I've tried TWRP 3.1.1.0 and 3.2.1.0 but it just reports back "updater process ended with error 255" and terminates?
Please help.
Click to expand...
Click to collapse
You are using the 32bit twrp to try and install a 64bit rom
My official twrp does not support 64bit roms - if you read the faqs in my twrp thread you would know this
Read the instructions in the 64bit rom thread & use the unofficial 64bit twrp
https://androidfilehost.com/?w=files&flid=236353
Note - I do not support the unofficial 64bit twrp as I did not build it

TheFixItMan said:
You are using the 32bit twrp to try and install a 64bit rom
My official twrp does not support 64bit roms - if you read the faqs in my twrp thread you would know this
Read the instructions in the 64bit rom thread & use the unofficial 64bit twrp
https://androidfilehost.com/?w=files&flid=236353
Note - I do not support the unofficial 64bit twrp as I did not build it
Click to expand...
Click to collapse
Yeah I fixed it now, thanks anyway.

Hi all,
when i use the 64 bit version i cant see any folders other than root folders. So i cant find the zips to flash. Any thoughts please?

grwalker said:
Hi all,
when i use the 64 bit version i cant see any folders other than root folders. So i cant find the zips to flash. Any thoughts please?
Click to expand...
Click to collapse
Select internal storage and it will show all folders in internal memory.

Thanks.
I did that. I see the root folders but nothing in internal storage. And the size of internal storage shows as 0MB
See attachement
Thanks

grwalker said:
Thanks.
I did that. I see the root folders but nothing in internal storage. And the size of internal storage shows as 0MB
See attachement
Thanks
Click to expand...
Click to collapse
Scroll down
Select storage folder
Select something like emulated then 0
If you don't see emulated than 0 or the folder is empty then internal storage isn't mounted - check the mount section of twrp or try using a different twrp
To check external storage it's the same as above but you select emulated then the folder with the sdcard hex value as its name which is different with every sdcard

TheFixItMan said:
Scroll down
Select storage folder
Select something like emulated then 0
If you don't see emulated than 0 or the folder is empty then internal storage isn't mounted - check the mount section of twrp or try using a different twrp
To check external storage it's the same as above but you select emulated then the folder with the sdcard hex value as its name which is different with every sdcard
Click to expand...
Click to collapse
Thanks for the post.
Unfortunately no luck. I cant see anything in the storage folder.
I have tried to mount internal storage also with no luck. Internal storage shows as 0MB
I have tried all 64 bit versions of twrp from the link in this post (https://androidfilehost.com/?w=files&flid=236353)
See attached

grwalker said:
Thanks for the post.
Unfortunately no luck. I cant see anything in the storage folder.
I have tried to mount internal storage also with no luck. Internal storage shows as 0MB
I have tried all 64 bit versions of twrp from the link in this post (https://androidfilehost.com/?w=files&flid=236353)
See attached
Click to expand...
Click to collapse
Looking at your phone it doesn't look like a moto g5
It looks more like a g5 plus or g5s
What is your device xt name eg xt1676 - if it's not a moto g5 codename cedric you are in the wrong device forum and using the wrong twrp

TheFixItMan said:
Looking at your phone it doesn't look like a moto g5
It looks more like a g5 plus or g5s
What is your device xt name eg xt1676 - if it's not a moto g5 codename cedric you are in the wrong device forum and using the wrong twrp
Click to expand...
Click to collapse
Yes it is a G5. Here's a photo from bootloader
FYI... when i flash 32bit TWRP i can see internal storage. But, of course, i cant flash custom roms from there because they are 64bit. Tried with lineage and Res remix. Error255 results

grwalker said:
Yes it is a G5. Here's a photo from bootloader
FYI... when i flash 32bit TWRP i can see internal storage. But, of course, i cant flash custom roms from there because they are 64bit. Tried with lineage and Res remix. Error255 results
Click to expand...
Click to collapse
Try this twrp
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
If you can't mount internal storage your only option might be to format it
This will delete everything in the internal user data - pictures music documents etc - backup first!
Wipe - format data (option on the right)
Restart back to recovery
If it's not mountable wipe advanced wipe data and internal storage
Note if you didn't decrypt data (if asked) when launching twrp you need to format data anyway to remove encryption in order to be able to mount it
Also some 64bit twrp don't support encryption so it might not even ask for decrypt - the one I posted above should support encryption but you still need to format data if flashing a new rom

TheFixItMan said:
Try this twrp
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
If you can't mount internal storage your only option might be to format it
This will delete everything in the internal user data - pictures music documents etc - backup first!
Wipe - format data (option on the right)
Restart back to recovery
If it's not mountable wipe advanced wipe data and internal storage
Note if you didn't decrypt data (if asked) when launching twrp you need to format data anyway to remove encryption in order to be able to mount it
Also some 64bit twrp don't support encryption so it might not even ask for decrypt - the one I posted above should support encryption but you still need to format data if flashing a new rom
Click to expand...
Click to collapse
Thanks, those steps worked.
Interesting on first install i didnt get a question about decrypting.
After reformat the only folder i saw in /sdcard was TWRP. So i dropped the rom and gapps zips in there. No problem flashing from there
Thanks for the help

grwalker said:
Thanks, those steps worked.
Interesting on first install i didnt get a question about decrypting.
After reformat the only folder i saw in /sdcard was TWRP. So i dropped the rom and gapps zips in there. No problem flashing from there
Thanks for the help
Click to expand...
Click to collapse
Unless you set a lock screen pin and enabled encryption you won't
64bit twrp has encryption issues - I think the one I provided allows you to decrypt data on 64bit roms if you do encrypt it (depending on rom)
I don't have this device anymore so I only built the 32bit official twrp when I had it
Also you won't have any other files/folder in internal storage until you boot android for the first time which is why you only had the twrp folder there

grwalker said:
Thanks for the post.
Unfortunately no luck. I cant see anything in the storage folder.
I have tried to mount internal storage also with no luck. Internal storage shows as 0MB
I have tried all 64 bit versions of twrp from the link in this post (https://androidfilehost.com/?w=files&flid=236353)
See attached
Click to expand...
Click to collapse
You device is encrypted, so you need to format the device to gain access to the internal storage, so format the device.
Format<format<yes.
Take a back up of internal storage, so you don't lose Data.

Hello.
After reading, I did a hard reset to bootloader (buttons) and then just plugged USB and flashed your twrp-64 with fastboot; clean install and
Thanks a lot, sir.

trefix said:
Hello.
After reading, I did a hard reset to bootloader (buttons) and then just plugged USB and flashed your twrp-64 with fastboot; clean install and
Thanks a lot, sir.
Click to expand...
Click to collapse
Official twrp now supports 64bit roms
You need version twrp-3.4.0-1-cedric.img
https://dl.twrp.me/cedric/

TheFixItMan said:
You are using the 32bit twrp to try and install a 64bit rom
My official twrp does not support 64bit roms - if you read the faqs in my twrp thread you would know this
Read the instructions in the 64bit rom thread & use the unofficial 64bit twrp
https://androidfilehost.com/?w=files&flid=236353
Note - I do not support the unofficial 64bit twrp as I did not build it
Click to expand...
Click to collapse
how can i install twrp 64bit if I am stuck because of error 255?

Neorex111 said:
how can i install twrp 64bit if I am stuck because of error 255?
Click to expand...
Click to collapse
Flash the latest official twrp via fastboot
[Official] [5th April 2021] TWRP 3.5.2_9-0 Moto G5 [Cedric] [32/64bit Roms]
Official TWRP For Moto G5 Cedric Post 1 - Instructions Post 2 - FAQs For full details and notes see Official TWRP for Cedric Site For TWRP news change logs etc see TWRP Official Site Instructions For non rooted and rooted phones...
forum.xda-developers.com

i have the same issue, but i don't know how to install twrp-64 since my OS is wiped with ni backup (a small child got ahold of the phone in twrp recovery mode). how do i do this? install a 32-bit os and then download the twrp-64?

SumoNoob said:
i have the same issue, but i don't know how to install twrp-64 since my OS is wiped with ni backup (a small child got ahold of the phone in twrp recovery mode). how do i do this? install a 32-bit os and then download the twrp-64?
Click to expand...
Click to collapse
Read the instructions on the official twrp thread on how to flash twrp
Just enter bootloader/fastboot mode and flash the latest official twrp
[Official] [5th April 2021] TWRP 3.5.2_9-0 Moto G5 [Cedric] [32/64bit Roms]
Official TWRP For Moto G5 Cedric Post 1 - Instructions Post 2 - FAQs For full details and notes see Official TWRP for Cedric Site For TWRP news change logs etc see TWRP Official Site Instructions For non rooted and rooted phones...
forum.xda-developers.com

Related

install rom without sdcard?

my F240 G Pro doesn't recognize any sdcard.
i want to install a custom rom and i'm rooted,
how can i install without an sdcard? i have CWM recovery.:good:
If you can do ADB side load in your recovery try that.
shayx said:
my F240 G Pro doesn't recognize any sdcard.
i want to install a custom rom and i'm rooted,
how can i install without an sdcard? i have CWM recovery.:good:
Click to expand...
Click to collapse
Copy ROM and GAPPS to your internal storage and flash them just like you would if they were on an external SD card.
i've found an ADB sideload guide but my device is not recognized in recovery mod (CWM)
it appears in device manager as LG E980 without driver.
i've installed latest usb drivers for the G PRO from lg site, but it doesn't help much.
I do have access to the internal storage in recovery mode,
but if i wipe the system doesn't it wipe all the data including the zip files?
what should i wipe without losing the internal storage data?
thank you all for helping. :good:
shayx said:
i've found an ADB sideload guide but my device is not recognized in recovery mod (CWM)
it appears in device manager as LG E980 without driver.
i've installed latest usb drivers for the G PRO from lg site, but it doesn't help much.
I do have access to the internal storage in recovery mode,
but if i wipe the system doesn't it wipe all the data including the zip files?
what should i wipe without losing the internal storage data?
thank you all for helping. :good:
Click to expand...
Click to collapse
I'm not sure about CWM, it's been a long time since I used it. But with TWRP I always format system, data and cache and I never do lose my items in my download folders, or any other folder in which I have anything stored. /Data and /System are ROM only related and do not affect your stored files when you format them, at least not with TWRP, and I'm pretty certain, not with CWM either.
thanks guys. I've managed to install from internal storage.
but i have a different problem now,
i've installed CM 10.2 and now i don't have sound, other than that the rom works great.
is there a fix? my model is F240 korean.
Try this thread http://forum.xda-developers.com/showthread.php?t=2786566 it is a kernel to run CM11 based ROMs on the F240. You will need to install a custom recovery first which I'm pretty sure can be done with freegee.

[Q] Bricked Ascend P6-U06

Hello there,
I made the mistake of wiping the internal storage using TWRP.
I am unable to enter recovery mode with the button hold options (tried all variations). The only way I was able to get into TWRP was adb reboot recovery. adb connection is now gone and the phone is stuck at the boot screen.
I can get a fastboot connection and the bootloader is unlocked. So I flashed the boot partition with a stock boot.img and the recovery partition with a stock recovery.img (even though I can't enter the recovery partition).
the phone never gets past the boot logo. Is there a way to directly flash a system.img vie fastboot, so that the device can be used? I am kind of stuck here.. read several threads for the past 2-3 hours, tried to reinstall TWRP as recovery but cant boot into it, etc.
I downloaded the B510.zip and was wondering if there is a way to burn an .img out of that and flash the system partition. But maybe that doesn't make sense at all.
Any help is greatly appreciated
update
Alright then, I managed to boot into TWRP!! a previous version worked.
it shows: Custom storage (498MB), Internal Storage (0MB), External Storage (0MB)
i am now proceding to install the zipped 510 rom from huawei. unfortunately i must have lost my microSD so i am lefti with sideload and otg.
sideload doesn't work because i can't find my device with adb. only fastboot seems to work, i dont know the reason but i understand its normal for my situation.
i only have an unpowered otg cable. from what i read that won't work, but I'm giving it a try and currently load the zip on a usb flashdrive.
do i understand correctly that the overall storage just appears to be 498MB? my partition table must be fairly messed up if that is the case. are there other partitions not shown by TWRP?
what do you recommend besides/instead of getting a microsd?
kind regards
update #2
I managed to mount the internal storage as mtp and copied the zip into the pictures folder, because i had no writing permission for the parent dir.
i tried to install, but the first time i got an error that cache could not be mounted. i cleared the dalvik cache and retried.
this time i had another error message as you can see in the screenshot.
adb still does not work, so sideload is not an option. i can also mount the custom partition but it is just under 500mb while the rom zip is 7xx mb
any help would be greatly appreciated
Resolved
I managed to solve it. Installed the paranoid android rom from the pictures dir. it was under 500mb and worked fine.
eyevector said:
I managed to mount the internal storage as mtp and copied the zip into the pictures folder, because i had no writing permission for the parent dir.
i tried to install, but the first time i got an error that cache could not be mounted. i cleared the dalvik cache and retried.
this time i had another error message as you can see in the screenshot.
adb still does not work, so sideload is not an option. i can also mount the custom partition but it is just under 500mb while the rom zip is 7xx mb
any help would be greatly appreciated
Click to expand...
Click to collapse
You cant install Huawei Firmware with TWRP! Only Repacked / Custom Roms.
thank you
RabbidZ said:
You cant install Huawei Firmware with TWRP! Only Repacked / Custom Roms.
Click to expand...
Click to collapse
so that is the reason why the paranoidandroid worked in the end.
cheers

[Q] Odd TWRP Issue

Hi all. I am a serious noob to certain rooting stuff so sorry if this post sounds weird. I have a HTC one M8 rooted with Cyanogenmod. Its a great phone, but one thing i noticed after making a nandroid backup of my CM rom was that apparently in recovery mode my TWRP install, and restore does not see zip files. I later found out that TWRP is defaulting on the install and recover screens to my root folder which has none of my backups. Essentially, I can't get into the traditional internal storage folder which has all my zip files and downloads. Is there any way I can get around it and access my traditional internal storage again? I should note that there is nothing really wrong with the phone, I can boot into it and it works fine. I simply cannot access my traditional storage though in recovery.
ElloM8 said:
Hi all. I am a serious noob to certain rooting stuff so sorry if this post sounds weird. I have a HTC one M8 rooted with Cyanogenmod. Its a great phone, but one thing i noticed after making a nandroid backup of my CM rom was that apparently in recovery mode my TWRP install, and restore does not see zip files. I later found out that TWRP is defaulting on the install and recover screens to my root folder which has none of my backups. Essentially, I can't get into the traditional internal storage folder which has all my zip files and downloads. Is there any way I can get around it and access my traditional internal storage again? I should note that there is nothing really wrong with the phone, I can boot into it and it works fi
ne. I simply cannot access my traditional storage though in recovery.
Click to expand...
Click to collapse
Wait. Are you using TWRP to try to restore a CWM backup? You can't do that. They are non-compatible.
EDIT: sorry I misread what you posted. You can direct TWRP to either internal or external sd by cliucking wher it says "storage: internal/external" at the top when you are in recovery.
thanks but..
thanks but the issue is twrp says my internal storage is 0mb. I will double check, but i should note that i am not having a deleted OS issue that other people with 0mb storage problems have. My phone is fine its just the storage that acts works ok TWRP recovery
ElloM8 said:
thanks but the issue is twrp says my internal storage is 0mb. I will double check, but i should note that i am not having a deleted OS issue that other people with 0mb storage problems have. My phone is fine its just the storage that acts works ok TWRP recovery
Click to expand...
Click to collapse
TWRP has some bug where it can't mount internal storage. Try to re-install TWRP, and the latest version, and see if that helps.
Its seems your right about TWRP having a bug as I just went into recovery and I could freely access all the internal storage files and see all my backups.

Root Guide for 7.0?

Hello,
I have attempted to install twrp - (newest available version for ether) and it installs and boots, but twrp does not see the internal storage. I can't install SU because I can't see the storage.
Does anyone have a root guide for 7.0 on the ether? Or any idea what I am doing wrong?
I have searched and can't seem to find any discussion regarding root for the 7.0 release.
tweaked said:
Hello,
I have attempted to install twrp - (newest available version for ether) and it installs and boots, but twrp does not see the internal storage. I can't install SU because I can't see the storage.
Does anyone have a root guide for 7.0 on the ether? Or any idea what I am doing wrong?
I have searched and can't seem to find any discussion regarding root for the 7.0 release.
Click to expand...
Click to collapse
It doesn't see internal because it's ENCRYPTED. You need to format data then sideload either SuperSu or Magisk. Note: this will wipe internal storage and reset the device. The root method for 6.0 is literally the same for 7.0 on the Robin.
Flashing SuperSu or Magisk will disable the forced encryption. The reason you have to format data is to reset the partition and remove the encryption on the partition.

TWRP Unable to mount Data HELP!

When i flashed Stock Rom 8.0 to my phone it boot normal. Then i flash TWRP made for my device. Downloaded supersu and going to flash it but then in the end it says Unable to unmount or mount i forgot sorry!I see that my internal storage is 0MB in TWRP but its not! So it seems like TWRP didnt encrypt my data or what? I flashed stock again cuz i got bootloop after that! Than flashed TWRP again and Internal storage is 0MB! HELP!
You have to format (not wipe) /data in TWRP then it will work, although you will lose all data. TWRP can't mount Samsung encrypted partitions.
makeyourself said:
You have to format (not wipe) /data in TWRP then it will work, although you will lose all data. TWRP can't mount Samsung encrypted partitions.
Click to expand...
Click to collapse
Lol It working Thanks you! one more issue! I flashed super su and no verity no encrypt and when reboot i have Super Su installed! Okay so now if i want to flash something again i need to format again ? Cuz now i get same errors! Anyway thanks you so much i have rooted samsung galaxy a5 2017 8.0 Now!
gogo9211 said:
When i flashed Stock Rom 8.0 to my phone it boot normal. Then i flash TWRP made for my device. Downloaded supersu and going to flash it but then in the end it says Unable to unmount or mount i forgot sorry!I see that my internal storage is 0MB in TWRP but its not! So it seems like TWRP didnt encrypt my data or what? I flashed stock again cuz i got bootloop after that! Than flashed TWRP again and Internal storage is 0MB! HELP!
Click to expand...
Click to collapse
until twrp 3.2.1-0 I think I did not have full support for samsung 8.0, I used twrp 3.2.2-0, and the /data is getting decrypted even after reboot.
caiquess95 said:
until twrp 3.2.1-0 I think I did not have full support for samsung 8.0, I used twrp 3.2.2-0, and the /data is getting decrypted even after reboot.
Click to expand...
Click to collapse
Really? Your internal doesn't show 0MB and you can backup data partition with TWRP? I didn't think it was TWRP related... that would be awesome.
What did you do? Only format data or did you flash anything?
gogo9211 said:
Lol It working Thanks you! one more issue! I flashed super su and no verity no encrypt and when reboot i have Super Su installed! Okay so now if i want to flash something again i need to format again ? Cuz now i get same errors! Anyway thanks you so much i have rooted samsung galaxy a5 2017 8.0 Now!
Click to expand...
Click to collapse
I think you had same issue as mine
Check this out
https://forum.xda-developers.com/samsung-a-series-2017/help/root-issues-oreo-t3800852
makeyourself said:
You have to format (not wipe) /data in TWRP then it will work, although you will lose all data. TWRP can't mount Samsung encrypted partitions.
Click to expand...
Click to collapse
I've tried this "solution" several times and the error come back ever...
How to fix this DEFINITIVELY???
[TOOL][SCRIPT][A520X|A720X] Repartition tool for treble support
UPDATE repartitioner v1.2: Google Drive | Androidfilehost (Will resize your partitions and patch recovery) RecoveryPatcher: Google Drive | Androidfilehost (Will ONLY patch your recovery for treble support) Changelog Removed TWRP version check...
forum.xda-developers.com
If you have a5/a7 2017 you can edit this script to reformatting your data partition! (if you don't know how edit it can be very dangerous to your phone)

Categories

Resources