Overview
Developed by Tools-cx-app, Magic Mount-rs (v4.1.12) is a standalone implementation of Magisk’s Magic Mount systemless mounting logic written in Rust (id=magic_mount_rs, metamodule=1).
While KernelSU and APatch provide kernel-level root and namespace isolation, they delegate systemless module filesystem mounting to a user-selected metamodule. Magic Mount-rs acts as that metamodule, handling module installation layout normalization (metainstall.sh), early-boot mounting (metamount.sh), and cleanup (metauninstall.sh).
Technical Architecture & How It Works
Rust-Powered Metamodule Engine
Magic Mount-rs coordinates module overlays cleanly during early Android boot:
- Verified Extraction (
customize.sh+verify.sh): Checks for an active KernelSU or APatch environment, selects the matchingmagic_mount_rsbinary (arm64-v8a,armeabi-v7a,x86_64, orriscv64), and verifies package integrity against.sha256digests. - Partition Symlink Normalization (
metainstall.sh): ExportsKSU_HAS_METAMODULE="true"(KSU_METAMODULE="mmrs"), handles self-mounting blocklisted modules by markingskip_mount, and normalizes/system/{vendor,product,system_ext}paths when/system/$partis a symlink. - Boot Mounting (
metamount.sh): Invokes the native Rust binary and calls/data/adb/ksud kernel notify-module-mountedupon success so KernelSU/APatch track mounted state accurately. - WebUI & Soft Reboot Helper: Includes
webroot/for GUI configuration andemulated-soft-reboot.shfor faster iteration.
Installation & Setup
- Ensure your device runs KernelSU or APatch with metamodule support (and remove any competing metamodule first).
- Download
magic_mount_rs-4.1.12-959-universal.zipfromTools-cx-app/meta-magic_mount-rs. - Flash the module in your root manager.
- Reboot your device.
Configuration & Usage
Default settings live in /data/adb/magic_mount/config.toml (with mountsource = "APatch" when initialized from config_apatch.toml):
mountsource = "KSU"
umount = false
partitions = []
extra_mount = []
mountsource: Mount source label ("KSU"or"APatch").umount: Controls whether mounts should be unmounted for non-root target apps.partitions&extra_mount: Arrays specifying additional partitions (such asmi_extormy_stock) and custom mount entries.
Troubleshooting & Common Issues
- Unsupported Platform Abort: If
customize.shprints! unsupported root platform, ensure you are flashing inside KernelSU or APatch rather than Magisk or a custom recovery. - Mount Failures: Check that custom rule paths in
/data/adb/magic_mount/customare valid absolute paths without relative..segments.
Frequently Asked Questions
Why is a metamodule required for KernelSU and APatch?
Unlike Magisk which builds Magic Mount into its init binary, modern KernelSU and APatch architectures delegate module filesystem mounting to a dedicated metamodule, letting users choose between OverlayFS and Magic Mount.
Does Magic Mount-rs work on Magisk?
Note that Magisk ships its own built-in Magic Mount engine, and meta-magic_mount-rs's customize.sh explicitly checks for KernelSU ($KSU) or APatch ($APATCH) during installation.
How do custom bind rules work?
Rules placed under /data/adb/magic_mount/custom allow directives such as ignoring specific module paths or binding individual files without packaging a separate module.