Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using kernel 2.6.31.6 under Slackware 13 and all was fine until a couple of hours ago when a bunch of files disappeared! I was removing certain files from this directory via command line successfully for a few when all of a sudden I was told whatever files I was trying to remove no longer existed. That prompted me to do a 'ls -al', which showed an empty directory!
These files are located on a ext3 partition, with ext4 specified in fstab, effectively giving me ext4 benefits. Anyone have any suggestions? I've tried r-linux and photorec to attempt and recover the lost files, but neither of those programs see anything that resembled the lost files.
I have double checked /var/log/messages and my command history to make sure I didn't accidentally type rm -rf. How can files just disappear?!
They don't.
Your saying that ls show you a empty directory, is this directory in your /home or may be was mounted and is not being mounted anymore for some reason, if so you would just be reading an empty mountpoint.
The directory itself was not a mount point, but it was a separate partition where I stored all my downloads. I was issuing commands like 'rm -rf libsync*.bz2' and 'rm -rf barry*.bz2' when all of a sudden 'ls -al *.bz2' said there were no files with that extension. There should have been at least one file with that extension!
For the sound of it, either another program was accesing the files concurrently and moved or erased them, OR the mount point was umounted for some odd reason, check the kernel log about this one just in case.
The directory itself was not a mount point, but it was a separate partition where I stored all my downloads. I was issuing commands like 'rm -rf libsync*.bz2' and 'rm -rf barry*.bz2' when all of a sudden 'ls -al *.bz2' said there were no files with that extension. There should have been at least one file with that extension!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.