E2MMPSTATUS(8)

๐Ÿ’… E2MMPSTATUS โ€” bestie's guide to checking MMP status (section 8, system manager's manual energy)

okay so picture this: you're about to mount an ext4 file system and you just need to know if it's already living its best life on some other node. that's literally what e2mmpstatus is for, bestie. it's the vibe check for Multiple-Mount Protection. ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

e2mmpstatus [-i] <filesystem>

๐ŸŒธ OPTIONS ๐ŸŒธ

  • -i โ€” instead of doing the whole check thing, it just prints out the MMP information. like, show me the receipts, don't judge me. ๐Ÿ‘‘

๐Ÿ’– DESCRIPTION ๐Ÿ’–

e2mmpstatus is what you use to check the Multiple-Mount Protection (MMP) status of an ext4 file system that has the mmp feature enabled. no cap.

and the filesystem you hand it? so flexible of it, honestly. it can be:

  • a device name, e.g. /dev/hdc1, /dev/sdb2
  • an ext4 file system label, like LABEL=root
  • or a UUID, for example UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd

by default, e2mmpstatus checks whether it's safe to mount the file system โ€” like, without taking the risk of mounting it more than once. main character safety energy. ๐Ÿซถ


๐Ÿงš what even is MMP though

MMP (multiple-mount protection) is a feature that adds protection against the file system being modified simultaneously by more than one node. it's giving "please, one at a time, we're not doing a group project." ๐Ÿ˜ญ

it is NOT safe to mount a file system when one of the following conditions is true: 1. e2fsck is running on the file system. 2. the file system is in use by another node. 3. The MMP block is corrupted or cannot be read for some reason.

also heads up: 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. so yeah, it might be standing there staring at the block like ๐Ÿ‘€ โ€” depends entirely on how chatty the other node is.


๐Ÿ”ฅ EXIT CODE ๐Ÿ”ฅ

the exit code returned by e2mmpstatus is:

  • 0 โ€” when it is safe to mount the file system โœ… slay
  • 1 โ€” when the MMP block shows the file system is in use on another node and it is NOT safe to mount the file system ๐Ÿ’€ do not
  • 2 โ€” if some other failure occurred that prevents the check from properly detecting the current MMP status ๐Ÿ™ˆ mystery behaviour, not iconic

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

dumpe2fs(8), e2fsck(8), fstab(5), fsck(8),


this has been E2fsprogs version 1.47.4, March 2025 โ€” ty for coming to my ted talk, go check your MMP block before you mount anything, ily, bye ๐Ÿ’œโœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from