[Android Software/Hacking General [Developers Only]] ronaldocoyle:
ok that fixed the error but system isn't rw yet.

spes:/data/local/tmp/systemrw_1.32 # ./systemrw.sh size=15

--------------------------------------------------

| 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: Custom size detected: 15 MB

systemrw: Initiating procedure...

systemrw: Device is in Android mode. Ignoring

systemrw: Current device: Xiaomi Redmi Note 11

systemrw: Current Android version: 11

systemrw: Current SELinux status: Permissive

systemrw: Current slot is: 1

systemrw: Your super partition is located at: /dev/block/sda9

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

17825792+0 records in

17825792+0 records out

9126805504 bytes (8.5 G) copied, 98.553376 s, 88 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_b.img in bytes: 3067813888

systemrw: Current size of system_b.img in MB: 2925

systemrw: Current size of system_b.img in 512-byte sectors: 5991824

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 936222 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/system_b.img is now 936222 (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 772751 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/system_b.img is now 772751 (4k) blocks long.

systemrw: Custom size of system_b.img in bytes: 3180916736

systemrw: Custom size of system_b.img in MB: 3033

systemrw: Custom size of system_b.img in 512-byte sectors: 6212728

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 776591 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/system_b.img is now 776591 (4k) blocks long.

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

systemrw: Current size of system_ext_b.img in bytes: 513929216

systemrw: Current size of system_ext_b.img in MB: 490

systemrw: Current size of system_ext_b.img in 512-byte sectors: 1003768

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 156838 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_b.img is now 156838 (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 125480 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_b.img is now 125480 (4k) blocks long.

systemrw: Custom size of system_ext_b.img in bytes: 529694720

systemrw: Custom size of system_ext_b.img in MB: 505

systemrw: Custom size of system_ext_b.img in 512-byte sectors: 1034560

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 129320 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/system_ext_b.img is now 129320 (4k) blocks long.

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

systemrw: Current size of product_b.img in bytes: 1544888320

systemrw: Current size of product_b.img in MB: 1473

systemrw: Current size of product_b.img in 512-byte sectors: 3017360

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 471462 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/product_b.img is now 471462 (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 381281 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/product_b.img is now 381281 (4k) blocks long.

systemrw: Custom size of product_b.img in bytes: 1577455616

systemrw: Custom size of product_b.img in MB: 1504

systemrw: Custom size of product_b.img in 512-byte sectors: 3080968

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 385121 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/product_b.img is now 385121 (4k) blocks long.

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

systemrw: Current size of vendor_b.img in bytes: 1279520768

systemrw: Current size of vendor_b.img in MB: 1220

systemrw: Current size of vendor_b.img in 512-byte sectors: 2499064

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 390478 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/vendor_b.img is now 390478 (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 337634 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/vendor_b.img is now 337634 (4k) blocks long.

systemrw: Custom size of vendor_b.img in bytes: 1398677504

systemrw: Custom size of vendor_b.img in MB: 1333

systemrw: Custom size of vendor_b.img in 512-byte sectors: 2731792

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 341474 (4k) blocks.

The filesystem on /data/local/tmp/systemrw_1.32/img/vendor_b.img is now 341474 (4k) blocks long.

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

systemrw: Current size of system_b-cow.img in bytes: 2718564352

systemrw: Current size of system_b-cow.img in MB: 2592

systemrw: Current size of system_b-cow.img in 512-byte sectors: 5309696

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

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

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

spes:/data/local/tmp/systemrw_1.32 # cd

spes:/ # mount -o remount,rw /

'/dev/block/dm-0' is read-only

spes:/ #