LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File Vanished... eh?? Weird! (https://www.linuxquestions.org/questions/linux-newbie-8/file-vanished-eh-weird-831333/)

helptonewbie 09-10-2010 04:16 AM

File Vanished... eh?? Weird!
 
Hi All,

I've not seen this before, very odd... Any ideas?

Code:

ls -ali logs/
ls: cannot access logs/file.2010-09-01.log: No such file or directory
total 288
1230636 drwxr-xr-x  2 auser buser  4096 2010-09-10 09:48 .
1228801 drwxr-xr-x 12 auser buser  4096 2010-09-09 16:08 ..
1230638 -rw-r--r--  1 auser buser  7174 2010-08-04 14:26 file.2010-08-04.log
1230456 -?????????  ? ?        ?            ?                ? file.2010-09-01.log
1230464 -rw-r--r--  1 auser buser  10038 2010-09-09 17:01 file.2010-09-09.log
1230459 -rw-r--r--  1 auser buser  22590 2010-09-10 09:51 file.2010-09-10.log

Thanks for any help,
Regards,
M

druuna 09-10-2010 04:35 AM

Hi,

Looks like the file is corrupt or the underlying file-system might be having problems.

I'm not sure if your distro checks the file system every time it boots (probably not, it is done periodically). The following command forces a file-system check on the next (re)boot (as root user): touch /forcefsck

Reboot your machine.

If all went well your file-system will be checked and (hopefully) automatically repaired.

If the /forcefsck file is still present after you boot, remove it (as root): rm /forcefsck

Hope this helps.


All times are GMT -5. The time now is 05:23 PM.