How to recover a lost or corrupted /etc/mtab file?

Solution Unverified - Updated -

Issue

  • The /etc/mtab file has become corrupt or deleted and needs to be restored for mount commands to work again.
  • How to recover /etc/mtab file which was mistakenly edited but does not hold the correct data now?
  • How to reset /etc/mtab file to reflect the current mount information.

Environment

  • Redhat Enterprise Linux 4,5,6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.