Can I recover lost data from a filesystem?

Solution Verified - Updated -


  • Red Hat Enterprise Linux (any version)


There is a request that is effectively asking for a data recovery service. Example requests can be:

  • I have accidentally used mkfs on a device and I need the old filesystem back.
  • How to restore data after mkfs
  • I have accidentally deleted files, but I need them.


  • This type of operation is not supported by Red Hat Technical Support. In this case there is no malfunction to troubleshoot. Therefore, according to the Scope of Coverage this operation is out of scope for Red Hat Technical Support. There are two ways to proceed in such a case:

    • Request for professional data recovery from some specialised agency/company. In this case the device that contains the deleted/lost data has to remain intact, as any write operation could result in overwriting the lost data. It is probably preferable to unmount and disconnect the device, if possible.

    • Restore data from backup.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.