On 12/11/18 2:32 PM, Luciano ES wrote: > I needed to restore something from my backups, an external hard disk > that is kept separately, always disconnected until I really need it. > > But the file system refused to be mounted: "structure needs cleaning," > it said. > > I googled and didn't find much hope about it. I followed what little > advice I found: I ran xfs_repair and it didn't work. So I ran it > again with -L and it worked, but the software itself warned me that > some files could not be recovered. I'll never know which ones. > > I always liked XFS and thought those dreaded days of file system > corruption and lost files were far behind. So my only question is: > Why does that happen? The disk is not even used 99% of the time. > How does an XFS file system go belly up just like that? There is no way for us to know. You didn't provide nearly enough information to even hazard a guess. But ok fine, I'll hazard a wild guess anyway: your external drive had a corrupt log because the enclosure didn't honor a cache flush issued by the filesystem after some previous mount. -Eric