yashsingh1/xdaforums huggingface dataset:
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] pizzaboy192:
TWRP damages the OEM partition which it checks for OTA updates.

It's an easy fix though, if you have either full fastboot firmware for the version you're on (and it appears the Oreo fastboot firmware is the same for everyone), just use fastboot to re-flash the OEM partition. Then boot into stock recovery and ADB sideload the OTA. If you run into more errors you can view the log right there.

If you don't have the current firmware, but you do have fastboot for one step back, you might be able to flash that as well, but it gets a bit iffy since you need the previous OTA to repair the OEM partition too. The OTA can be flashed overtop of it's own firmware to repair stuff, which is nice
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] DavidXanatos:
to little to late: https://xdaforums.com/moto-g5s-plus/how-to/fixing-failed-otas-execution-twrp-t3866983

and i was asking for the info for a few weeks now: https://xdaforums.com/moto-g5s-plus/help/issue-installing-oreo-ota-fails-error-t3859585

Now as it stands it would have been enough to fix the oem partition, instead of flashing a full firmware image to the phone.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] marcdw:
I didn't offer a solution to fix the issue. Was sort of asking if your sdcard was FAT32 or exFAT and the possibility that if it is FAT32 that that might be the reason for the failure. But again you haven't yet offered any info on that.

Oh well. c'est la vie and all that.

LG G3 D851, LiquidRemix v9.1.3 Oreo ROM, microG (NoGapps), MultiROM, XDA Legacy
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] astroboye:
It was indeed FAT32 I tried NTFS, same issues and could't acess the sd card so I tried ExFAt and it works, so thank you [MENTION=6046143]marcdw[/MENTION]
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] marcdw:
That's good news! Thanks for clarifying. [emoji106]

Ugh. I guess when I decide to dump MultiROM and TWRP 3.1.1 and join the Pie party I'll have to reformat my card.

Strange how v3.2 backups to FAT32 don't work on the Moto or Axon 7 but do on the G3 (glad too since I run old ROMs that don't support exFAT).

Moto G5s Plus XT1806, MultiROM, XDA Legacy
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] pizzaboy192:
Fat32 has a maximum file size of 4096MB. The system partition on the G5S+ is that exact same size, and with file identifier information and other filesystem necessities it ends up going over that 4096MB max limit. There may be a way to split the file into multiple parts, but that's not something easily done. Enabling compression does not fix the issue either, so that isn't a way to bypass it. I would assume the G3 had a system partition smaller than 4GB (4096MB) and that allowed a full contiguous backup image to be pulled onto a FAT32 SD card without it going past the size limitations.

A possible solution would be to order a large SD card (128GB are under $30 now) and do a split partition, with ~6-8GB available as ext4 or exFAT to backup your system image, and use the rest as FAT32 and traditional storage.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] astroboye:
[MENTION=6046143]marcdw[/MENTION]

yep make a backup before of you r sd card, that's what i've done et then you put it back every files from the phone link to the pc after resinstall and it works, caus if you do it directly from the pc to sdcard it won't be redable from the phone :(
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] marcdw:
[MENTION=2956368]pizzaboy192[/MENTION], yes, I'm familiar with the filesystem limitations which is why I asked astroboye if he was using FAT32. Backing up system hasn't been a problem but data. Data backup could easily be 6 to 10GB or more on my main/primary ROM. TWRP 3.2.x on the G3 breaks everything up into smaller chunks as has/had been the norm. Backups are good whether to sdcard or flash drive, all FAT32.

The failures on the Axon 7 and Moto happen when backing up data, not system. TWRP 3.2 on those systems tries to create one huge file instead of breaking them up. When I first unlocked and rooted my Axon, running TWRP 3.2, I couldn't backup the stock ROM. Downgraded to 3.1.1, backed up the ROM, then went back to 3.2. I use Dual Boot Patcher on that device anyway so it handles the backups now. The Moto uses MultiROM-TWRP 3.1.1 where backing up is not an issue.

Just wondered why 3.2 changed things.

ZTE Axon 7 A2017U, Project New World, Multiboot, XDA Legacy
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] pizzaboy192:
On my G5S+, with a FAT32 SD card and TWRP 3.2.1-R20 my backup fails on full system image (it passes on just backup of /system but I need a full backup since I run rooted stock) It also completely backs up 15GB of data to my FAT32 SD card as well without a single issue. If I tell it to do system image and data, it fails right at the end of /system as it is preparing /data for backup. If I run just /data it backs up fine to my SD card.

I might suggest rechecking your logs to verify it fails on /data instead of /system during a backup.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] TheGreenDash:
Compatibility

Sorry but, i have a moto g5s plus xt1800, when i in fastboot, on some line says "sanders", i flash another twrp, but no response from the screen, boot into twrp but when i press nothing happens, this twrp will work for me? O
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] ainstushar:
Question

Hi there, I have installed r20 on my Moto G5s plus, and then I've installed the excellent pixel experience ROM (https://xdaforums.com/moto-g5s-plus/development/rom-pixel-experience-t3856824). I am now trying to install magisk 17.1 via zip file using this twrp, but I am running into an issue: I get an error message saying it can't mount /vendor. From googling, I've stumbled upon the fact that it can happen in twrp that is not-treble. Is there a way to fix it? Do I need to downgrade to twrp 16 for sanders?

Thanks!
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] jakson7474:
Use this twrp is the treble version

https://drive.google.com/file/d/1CIDGLaJMZaKC6S7UGOen1UUEvv9V_M62/view?usp=drivesdk
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] stegy200:
Super kernel. All what i want this Can do. All ROMs without problems. Thanks!
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] ainstushar:
Thanks!!!
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] neo_da_leo:
While install TWRP, getting error like Image not signed or corrupt

I tried this https://drive.google.com/file/d/1CIDGLaJMZaKC6S7UGOen1UUEvv9V_M62/view

need help
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] jakson7474:
this is normal because it is not stock recovery
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] chaostrodamis:
That twrp is good. Flash twrp in fastboot then enter command "fastboot reboot recovery". When inside twrp flash twrp again as an image from twrp itself. That will give you a permanent twrp.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] pizzaboy192:
Is your bootloader unlocked?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] pranavpmanoj:
Why is the r22 version not uploaded here?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] neo_da_leo:
Thanks, It worked

It was showing "Swipe to allow modifications for /system", then I swiped but Internal Storage is showing 0MB. I can't do anything.

Is it necessary to install magisk.?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] pranavpmanoj:
You'll have to format data to access it. Take a backup of everything and open TWRP>Wipe>Format Data> Type YES.

After completing the above step, go back and reboot to recovery. You should be able to view your internal storage now.

Magisk is necessary only if you need root.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Mixterix Se7en:
can I use this recovery to install the pixel experience oreo?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] marcdw:
You should never quote the whole OP like that. All you had to do was just post a question. [emoji6]

ZTE Axon 7 A2017U, /e/ v0.1 ROM, microG (NoGapps), Multiboot, XDA Legacy
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] tinyjackal0pe:
My stupid ass didn't read the directions, so TWRP runs OpenRecoveryScript, fails, and gets stuck in a bootloop. TWRP tells me that it fails to mount /data due to an invalid argument. Please, someone explain it like I'm five.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Aabdallah97:
error while flashing recovery

i keep getting (bootloader): image not signed or corrupt. What do?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] pizzaboy192:
Are you coming from stock? Stock is encrypted. You have to wipe data to decrypt, reboot TWRP, and then flash
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] tinyjackal0pe:
Thank you so much. I don't know why that decided to work this time, but it did.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] :
Update

Please update the TWRP version, now the latest is the 3.2.3-0
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Thebear j koss:
Why? This works just fine.

Sent from my PH-1 using Thebear Blue XDA Labs
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] gewe:
What is your source for this information? On the download page mentioned in the OP the most recent version is 3.2.1-r20.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Darshan0258:
Yeah but i am not able to flash magisk with this version on my moto g5s plus :(
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] VGisHere:
Magisk flashing with r22 version

On previous version of recovery, even my installation with magisk failed and then I switched to newer version of recovery.

I'm currently using TWRP version r22

This is Unofficial recovery is provided by Genetic Engineer.

And as of now, I haven't a single issue with any ROM/Magisk.

Just google for twrp Sanders treble new

You will get the link, try with this recovery.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Don DD:
Also, see this one:

[Unofficial] Fixed TWRP 3.2.1-r20 for stock ROM & OTA compatibility
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Matiasnck:
Hello, I have a problem a while ago when I try to install a rom using TWRP, I always get error 7, regardless of the rom. I eliminated the line of code they recommend and remains the same Any solution?

Excuse me English, I used the Google translator
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Stud12376:
Use this

https://drive.google.com/file/d/1lXG--4M_CCh_fWNFpwdR0bNagT2gFgOd/view?usp=drivesdk
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Matiasnck:
Thanks, but I still get error 7, specifically "Update process ended with error: 7 error installing zip file 'external_sd / ....'

Rom_ PixelExperience_ sanders-8.1.0-20181021-0605
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] marcdw:
Hmm, so the ROM zip is on the SD card? What happens if you copy it to internal storage instead. It may seem silly but there have been times when zips have failed to flash from external SD.

If it still doesn't flash (I take it the downloaded zip is good?) save the recovery log (via TWRP's Advanced section) and attach or link it so we can have a look. Maybe a screenshot of the error, too. BTW, TWRP supports screenshots just like in a ROM, with VolDn+Pwr buttons.

Zip file is not corrupt, you've removed the assert lines, and have the latest/current TWRP. Don't see why it won't flash.

ZTE Axon 7 A2017U, /e/ 0.5-n ROM, microG (NoGapps), Multiboot, XDA Legacy
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Matiasnck:
I still get the same error, I tried several different directories, I attached the recovery log.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] marcdw:
I'm not really sure what the cause is but your error is here...

Patching system image unconditionally...blockimg version is 4
maximum stash entries 0
creating stash /cache/recovery/2bdde8504898ccfcd2c59f20bb8c9c25f73bb524/
254492672 bytes free on /cache (0 needed)
erasing 630929 blocks
BLKDISCARD ioctl failed: Invalid argument
failed to execute command [erase 40,264846,294400,328777,359936,361544,392704,394285,425472,427013,458240,492034,523776,524802,556544,557570,589312,590338,622080,623106,654848,655874,687616,688642,720384,721410,753152,754178,785920,786946,818688,852482,884224,918018,949760,950786,982528,983554,1015296,1016322,1048576]
script aborted: E1001: Failed to update system image.
E1001: Failed to update system image.error: 1001
Updater process ended with ERROR: 7
Install took 0 second(s).

Folks have had this issue and posted similar lines in threads going back several years. Went through a lot but most didn't get helpful responses. Common thing seems to be filesystem related.

In your case I'm not sure. Don't know if you ever mentioned that your /data is f2fs and encrypted. An important detail.

After TWRP attempts various methods to decrypt, /data is now /dev/block/dm-0. A potential issue?

Possibly unrelated, did you have an SD card in phone at the time you tried to flash? If so, TWRP seems to think otherwise or something.

Unable to mount '/external_sd'
Actual block device: '', current file system: 'auto'
...
/external_sd | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB

Of all the posts I went through only one seemed to provide a solution, for that device anyway. If nothing else it may give an idea. Essentially, wiping and formatting.

https://xdaforums.com/showthread.php?p=73143552

Never used f2fs, encryption, nor ever had that particular Error 7 on any devices so I really don't know. Maybe some gurus can chime in on this one.

Moto G5S Plus XT1806, OmniROM, microG (NoGapps), MultiROM, XDA Legacy
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] piapemio:
I can't seem to install magisk. It says can't mount vendor.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Stud12376:
Use this twrp and click thanks if it helps
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] SathamHussainM:
Bro what about new TWRP 3.3.0 version for (Sanders) Moto G5s plus ???

It's available for (Potter) Moto g5 plus

But why not for Moto G5s plus ??
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] jayeshgupta91:
Unable to install magisk with this TWRP

i am having moto G5S plus (sanders)

i am not able to install twrp with magisk because its asking for latest version of twrp and yaa i have also install boot.img too so what can i do to install magisk..
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] peringa:
I cant install TWRP on my Moto G5s Plus

Anyone can help me?

fastboot flash recovery twrp-sanders-r20.img

target reported max download size of 534773760 bytes

sending 'recovery' (14638 KB)...

OKAY [ 0.323s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.133s]

finished. total time: 0.459s
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] gewe:
What exactly is the problem after this successful install? It ended with "OKAY" and "finished".

In this thread it is mentioned several times that you can ignore the "image not signed or corrupt" message. You did read that, didn't you? :confused:
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] tomcat-:
Hello,

I have unlocked succesfully the bootloader on my G5S plus and trying to install TWRP R20.

However when i do "fastboot flash recovery_ramdisk twrp-sanders-r20.img" (coming from 8.1 stock) i get the "cannot load twrp ***.img"

I have tried to rename the file with still the same issue.

The file is in the same folder as the adb.exe and fastboot.exe and not so sure what else i can try?

thansk for your help
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Don DD:
See these topics, too:

https://xdaforums.com/moto-g5s-plus/development/unofficial-fixed-twrp-3-2-1-r20-stock-t3869192

https://xdaforums.com/moto-g5s-plus/development/recovery-twrp-3-3-0-t3940378
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] WolfiFuur:
Need Help! Can't boot into recovery

Can't boot into recovery mode after trying to flash TWRP Sanders r20. Might need the r21 or newer.

Getting these outputs from PowerShell

PS A:\Documents\ROOT> fastboot devices

ZY322RJX3H fastboot

PS A:\Documents\ROOT> fastboot flash recovery recovery.img

(bootloader) is-logical:recovery: not found

Sending 'recovery' (18790 KB) OKAY [ 0.598s]

Writing 'recovery' (bootloader) Image not signed or corrupt

OKAY [ 0.122s]

Finished. Total time: 0.733s

PS A:\Documents\ROOT> fastboot reboot recovery

Rebooting into recovery FAILED (remote: 'Unknown command')

fastboot: error: Command failed

PS A:\Documents\ROOT> fastboot flash recovery recovery.img

(bootloader) is-logical:recovery: not found

Sending 'recovery' (18790 KB) OKAY [ 0.597s]

Writing 'recovery' (bootloader) Image not signed or corrupt

OKAY [ 0.120s]

Finished. Total time: 0.738s

PS A:\Documents\ROOT> fastboot flash recovery recovery.img

(bootloader) is-logical:recovery: not found

Sending 'recovery' (14638 KB) OKAY [ 0.504s]

Writing 'recovery' (bootloader) Image not signed or corrupt

OKAY [ 0.103s]

Finished. Total time: 0.631s

PS A:\Documents\ROOT> fastboot reboot recovery

Rebooting into recovery FAILED (remote: 'Unknown command')

fastboot: error: Command failed

PS A:\Documents\ROOT>

Also, I can not access the Telegram group, so a direct and working download link would be super!
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Vinay425003:
r22

https://androidfilehost.com/?w=files&flid=283120
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Brycearuuni:
After I ran the check all my modules disappeared from magisk and when I install they are gone upon reboot. Root works but I can't install modules.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
Updated to r9

Hi folks!

Updated to TWRP-3.1.1-r9 with following changes:

If you are running any old build or GeneticEnginer's Ported Recovery then i highly recommend you upgrading to this release!

Happy Flashing! ;)
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] oadam11:
:victory:
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Brycearuuni:
Is it okay to be flashing this with the twrp app? Its worked for me so far just wanted to make sure
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
Read OP again, I've mentioned how to upgrade from existing twrp itself. :)
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Aayush124:
Hey whenever I try to install twrp through command prompt it show an error saying that the image is either not sign or is corrupt. If have tried it several times and it's still show the same problem.plz help!!
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
Its just a warning, ignore it and boot to recovery after flashing it.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] gewe:
This solved my freezing backup problem! I just made a successfull complete backup.

:good::):good:
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] raychang:
I have an Moto G5S plus XT1806 with 32GB internal storage. I followed this guide and have successfully rooted my Moto G5S Plus by TWRP-3.1.1-r9 with Magisk 14.0. During the process, I used TWRP to back all partitions before flashing the Magisk and obtained a successful complete TWRP backup for about 7.8 GB and copied the backup to my PC before flashing Magisk. After the flashing the Magisk and the reboot to system, the TWRP's folder become empty (I don't know why). However I found out that after the rooting with stock ROM and before installing any additional applications, the remain free space of the 32GB internal storage becomes about only 5GB.

I didn't remember the remaining free space of the internal storage was before the rooting of the stock ROM, but I think it was way much more than 5GB. Could someone please tell me how much space the stock firmware/ROM occupy? I am not sure why the TWRP's backup of all partitions disappear after the rooting.

Should I try to restore the TRWP backup or use many fastboot of many files on the stock firmware/ROM to restore to the stock firmware/ROM?

My 32 GB of free internal space has only 5GB left even before I install additional apps.

Thanks.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] gewe:
Just out of curiousity: on my Moto X Play Magisk root + hide passed the Safetynet checks (stock kernel + ROM).

Why doesn't this work on the G5S Plus?

What does it take for a kernel to pass Safetynet, and how can I tell which alternative kernels have it?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Loccy:
I remember reading somewhere that there is a bug in some Motorola kernels that breaks certain kind of directory mounting which Magisk modules and Magisk hide require. Evidently the Moto X has this fixed but the Moto G5S+ doesn't. So no Magisk hide = no SafetyNet.

I think you can safely assume any custom kernel will have the fix, particularly if it's been upstreamed. It's just a shame that the one kernel that's been released on XDA for our device is buried in a thread about TWRP...
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Loccy:
It doesn't matter what kernel is on TWRP r9 - the issue is the kernel on the rom you're running. When you reboot from TWRP into your (stock?) rom then Motorola's kernel fires up with the mounting bug and Magisk is hobbled. A custom kernel on TWRP makes no difference.

If you flash GeneticEngineer's kernel (someone linked it a couple of posts back) then you'll find Magisk hide works just fine (I'm running it myself on top of stock).
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] raychang:
I have the same problem of backing up system image using this twrp r9 with stock ROM.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
Your twrp backup is being stored in /data/media l, thats why it isnt visible in userdata.

You dont need to backup all partitions, just system, boot, efs is enough.

Backup of all partitions goes above 10+gb in size.

Choose wisely. :)

Here's the explanation ?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Az Biker:
* * * REMINDER * * *

Let's keep the comments on topic, and about developing this recovery, NOT about your opinion of the dev or contributors.

That stuff belongs elsewhere, not in the development thread.

Thank you.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Phazmos:
I've successfully backed up and restored octo and aex so far. Never ran stock long enough too make it worth the time to bu. Oops - read that wrong - never backed up any imgs. No need to really.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Ae3NerdGod:
if an ota comes, i wanna be able to just restore a backup from the sdcard. stock runs pretty good. got more options with gravitybox and xposed than i do with the custom roms availible so far

---------- Post added at 02:26 AM ---------- Previous post was at 02:17 AM ----------

all due respect, its called xda- DEVELOPERS isnt it? where else would we talk about the manner in which they develop? from the general feel of the rest of your site you want people who build and progress development; that, to me is what this site promotes. when a developer acts like a jerk, what am i supposed to do open a thread in q&a? that seems even more ridiculous and off-topic than just plain warning fellow thread readers of his potential attitude like i did.

perhaps there should be a "developers" rating in the real life review section