How to make the discard option effective on the root filesystem

Solution Verified - Updated -


  • Even though discard mount option is added in fstab, it does not apply for the root partition.
 /                       xfs     defaults,discard        0 0
 /boot                   xfs     defaults,discard        0 0

 /dev/mapper/mpathb2 on / type xfs (rw,relatime,attr2,inode64,noquota)
 /dev/mapper/mpathb1 on /boot type xfs (rw,relatime,attr2,discard,inode64,noquota)
  • Not able to set discard on ( / ) root filesystem
  • How to use discard with root filesystem


  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content