Linux – Unable to mount device on Linux (XFS)

bootcentos-5linuxmountxfs

I am unable to mount a device on my server due to error when mounting, the device is type XFS. The mount command returns message: "mount: structure needs cleaning"

I've tried using xfs_check and it just returns a message saying that there are entries in the log that need relaying and that you need to run xfs_repair -L where "-L" option deletes the log file but might/will result in data loss/corruption.

Does anyone know if you can access/mount the drive without repairing, or anyway to minimise data loss?

Best Answer

no, you have to repair it first before it will allow it for you to mount.

however, it is a good idea to save your partition or device with dd or ddrescure to an image file, before you do the repair, if you are concerned about data loss.

Related Question