e2mmpstatus - Check MMP status of an ext4 file system
| Use Case | Command | Description |
|---|---|---|
| Check if a device is safe to mount | e2mmpstatus /dev/sda1 |
Exits 0 if safe, 1 if in use by another node |
| Print raw MMP information | e2mmpstatus -i /dev/sda1 |
Displays MMP block details without checking safety |
| Check by UUID | e2mmpstatus UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd |
Same as device path, using filesystem UUID |
| Check by label | e2mmpstatus LABEL=root |
Same as device path, using filesystem label |
e2mmpstatus [-i] <file system>
🖨️ prints out the MMP information rather than check it.
e2mmpstatus is used to check Multiple-Mount Protection (MMP) status of an ext4 file system with the mmp feature enabled. The specified file system can be a device name (e.g. /dev/hdc1, /dev/sdb2), or an ext4 file system label or UUID, for example UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root. By default, the e2mmpstatus program checks whether it is safe to mount the file system without taking the risk of mounting it more than once.
MMP (multiple-mount protection) is a feature that adds protection against the file system being modified simultaneously by more than one node. It is NOT safe to mount a file system when one of the following conditions is true:
The e2mmpstatus program might wait for some time to see whether the MMP block is being updated by any node during this period. The time taken depends on how frequently the MMP block is being written by the other node.
The exit code returned by e2mmpstatus is:
0 ✅ safe to mount the file system1 ❌ MMP block indicates the file system is in use on another node and it is NOT safe to mount2 ⚠️ some other failure occurred that prevents the check from properly detecting the current MMP statusGenerated by phpman v4.9.25-25-g40dbf62 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-16 12:57 @2600:1f28:365:80b0:8802:8bb4:3873:328e
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format