Search code examples
linuxoperating-systemkernellsof

why file is not exist but lsof show this file not deleted


stat a linux regular file, target file is not exist. but lsof can found this file, and found a program opened this file. lsof show this file is normal.

I think this file must be deleted, but I cannot understand why lsof show this file is normal.


Solution

  • I used to have a problem like you, The directory where the files are located is mount another disk.Try to unmount the disk, maybe you can found your files. Or, the disk where your files located maybe unmount by force.