[Moto G Stylus 5G] Atlas667:
Hey, thanks for your work.

I have a fresh root on my devie and ill go through the process at the same time as i write this.

I have downloaded extracted and copied systemrw_1.32 into /data/local/tmp.

Therefore i now have /data/local/tmp/systemrw_1.32 and i make systemrw.sh executable

I run the command for detecting my super partition:

denver:/data/local/tmp # ls -l /dev/block/by-name/super
lrwxrwxrwx 1 root root 16 1970-05-08 11:21 /dev/block/by-name/super -> /dev/block/sde24

Then i run the shared blocks detect commands i get this.

denver:/data/local/tmp # for a in /dev/block/dm-*; do tune2fs -l $a | grep -e "feat" -e "vol"; done
Filesystem volume name: /
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem volume name: system_ext
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem volume name: vendor
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem volume name: product
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem volume name: /
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize shared_blocks
Filesystem volume name: system_ext
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize shared_blocks
Filesystem volume name: vendor
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize shared_blocks
Filesystem volume name: product
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize shared_blocks
tune2fs: Bad magic number in super-block while trying to open /dev/block/dm-8
Filesystem volume name: <none>
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize shared_blocks

I go into the /data/local/tmp/systemrw_1.32

And i run ./systemrw.sh which produces:

denver:/data/local/tmp/systemrw_1.32 # ./systemrw.sh
--------------------------------------------------
| SystemRW v1.32 automated script by lebigmac |
| @xda ©2021 Big thank you to @Kolibass @Brepro1 |
|@munjeni @AndyYan @gabrielfrias @YOisuPU @bynarie |
| without your help this would not be possible! |
--------------------------------------------------

systemrw: Initiating procedure...

systemrw: Device is in Android mode. Ignoring
systemrw: Current device: motorola
systemrw: Current Android version: 11
systemrw: Current SELinux status: Permissive
systemrw: Current slot is: 1
systemrw: Your super partition is located at: /dev/block/sde24
systemrw: / is read-only
systemrw: /product is read-only
systemrw: /vendor is read-only
systemrw: Adjusting permissions...
systemrw: Attempting to disable dm-verity and verification...
verification is already disabled on slot with suffix _b.
verity is already disabled on slot with suffix _b.
systemrw: Dumping super partition to: /data/local/tmp/systemrw_1.32/img/super_original.bin
systemrw: Please wait patiently...

27262976+0 records in
27262976+0 records out
13958643712 bytes (13 G) copied, 83.699237 s, 159 M/s

systemrw: Successfully dumped super partition to: /data/local/tmp/systemrw_1.32/img/super_original.bin
systemrw: Unpacking embedded partitions from /data/local/tmp/systemrw_1.32/img/super_original.bin
systemrw: Nested partitions were successfully extracted from super

systemrw: Current size of system_a.img in bytes: 896122880
systemrw: Current size of system_a.img in MB: 854
systemrw: Current size of system_a.img in 512-byte sectors: 1750240

systemrw: NO 'shared_blocks feature' detected @ system_a.img

systemrw: Shrinking size of system_a.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system_a.img to 202516 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system_a.img is now 202516 (4k) blocks long.

=================================================

systemrw: Current size of system_ext_a.img in bytes: 666558464
systemrw: Current size of system_ext_a.img in MB: 635
systemrw: Current size of system_ext_a.img in 512-byte sectors: 1301872

systemrw: NO 'shared_blocks feature' detected @ system_ext_a.img

systemrw: Shrinking size of system_ext_a.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_a.img to 145668 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_a.img is now 145668 (4k) blocks long.

=================================================

systemrw: Current size of vendor_a.img in bytes: 896487424
systemrw: Current size of vendor_a.img in MB: 854
systemrw: Current size of vendor_a.img in 512-byte sectors: 1750952

systemrw: NO 'shared_blocks feature' detected @ vendor_a.img

systemrw: Shrinking size of vendor_a.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/vendor_a.img to 207489 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/vendor_a.img is now 207489 (4k) blocks long.

=================================================

systemrw: Current size of product_a.img in bytes: 3711655936
systemrw: Current size of product_a.img in MB: 3539
systemrw: Current size of product_a.img in 512-byte sectors: 7249328

systemrw: NO 'shared_blocks feature' detected @ product_a.img

systemrw: Shrinking size of product_a.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/product_a.img to 901908 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/product_a.img is now 901908 (4k) blocks long.

=================================================

systemrw: Current size of system_b.img in bytes: 896122880
systemrw: Current size of system_b.img in MB: 854
systemrw: Current size of system_b.img in 512-byte sectors: 1750240

systemrw: 'shared_blocks feature' detected @ system_b.img

systemrw: Increasing filesystem size of system_b.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system_b.img to 273475 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system_b.img is now 273475 (4k) blocks long.

systemrw: Removing 'shared_blocks feature' of system_b.img...
e2fsck 1.45.4 (23-Sep-2019)
systemrw: Read-only lock of system_b.img successfully removed

systemrw: Shrinking size of system_b.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system_b.img to 230418 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system_b.img is now 230418 (4k) blocks long.

=================================================

systemrw: Current size of system_ext_b.img in bytes: 666583040
systemrw: Current size of system_ext_b.img in MB: 635
systemrw: Current size of system_ext_b.img in 512-byte sectors: 1301920

systemrw: 'shared_blocks feature' detected @ system_ext_b.img

systemrw: Increasing filesystem size of system_ext_b.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_b.img to 203425 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_b.img is now 203425 (4k) blocks long.

systemrw: Removing 'shared_blocks feature' of system_ext_b.img...
e2fsck 1.45.4 (23-Sep-2019)
systemrw: Read-only lock of system_ext_b.img successfully removed

systemrw: Shrinking size of system_ext_b.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_b.img to 164146 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_b.img is now 164146 (4k) blocks long.

=================================================

systemrw: Current size of vendor_b.img in bytes: 896487424
systemrw: Current size of vendor_b.img in MB: 854
systemrw: Current size of vendor_b.img in 512-byte sectors: 1750952

systemrw: 'shared_blocks feature' detected @ vendor_b.img

systemrw: Increasing filesystem size of vendor_b.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/vendor_b.img to 273586 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/vendor_b.img is now 273586 (4k) blocks long.

systemrw: Removing 'shared_blocks feature' of vendor_b.img...
e2fsck 1.45.4 (23-Sep-2019)
systemrw: Read-only lock of vendor_b.img successfully removed

systemrw: Shrinking size of vendor_b.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/vendor_b.img to 220492 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/vendor_b.img is now 220492 (4k) blocks long.

=================================================

systemrw: Current size of product_b.img in bytes: 3711660032
systemrw: Current size of product_b.img in MB: 3539
systemrw: Current size of product_b.img in 512-byte sectors: 7249336

systemrw: 'shared_blocks feature' detected @ product_b.img

systemrw: Increasing filesystem size of product_b.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/product_b.img to 1132708 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/product_b.img is now 1132708 (4k) blocks long.

systemrw: Removing 'shared_blocks feature' of product_b.img...
e2fsck 1.45.4 (23-Sep-2019)
systemrw: Read-only lock of product_b.img successfully removed

systemrw: Shrinking size of product_b.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/product_b.img to 924153 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/product_b.img is now 924153 (4k) blocks long.

=================================================

systemrw: Joining all extracted images back into one single super image...
systemrw: Please wait and ignore the invalid sparse warnings...

Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic

systemrw: Successfully created patched super image @
systemrw: /data/local/tmp/systemrw_1.32/img/super_fixed.bin

systemrw: Congratulations! Your image(s) should now have R/W capability
systemrw: Please reboot into bootloader and flash the file(s) manually

denver:/data/local/tmp/systemrw_1.32 #

After that, i copy super_fixed.bin to my computer, boot my phone into recovery and use fastboot flash super to flash:

Sending sparse 'super' 1/16 (769727 KB) OKAY [ 25.722s]
Writing 'super' OKAY [ 0.103s]
Sending sparse 'super' 2/16 (762769 KB) OKAY [ 26.191s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 3/16 (754767 KB) OKAY [ 27.851s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 4/16 (723716 KB) OKAY [ 23.787s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 5/16 (769724 KB) OKAY [ 27.542s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 6/16 (769726 KB) OKAY [ 25.579s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 7/16 (769725 KB) OKAY [ 24.952s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 8/16 (759887 KB) OKAY [ 24.984s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 9/16 (706722 KB) OKAY [ 22.790s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 10/16 (739235 KB) OKAY [ 24.188s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 11/16 (750459 KB) OKAY [ 24.374s]
Writing 'super' OKAY [ 0.016s]
Sending sparse 'super' 12/16 (768332 KB) OKAY [ 25.115s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 13/16 (769724 KB) OKAY [ 25.250s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 14/16 (769724 KB) OKAY [ 24.980s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 15/16 (676812 KB) OKAY [ 22.618s]
Writing 'super' OKAY [ 0.000s]
Sending sparse 'super' 16/16 (668353 KB) OKAY [ 22.105s]
Writing 'super' OKAY [ 0.000s]
Finished. Total time: 487.440s

Now i am in a recovery boot loop.

Ive tried flashing vbmeta and super from my original rom files, but it wont boot normally.

The only way to get it to boot is to reflash the whole stock rom. And im back to square one.