LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 11-22-2009, 02:03 AM   #1
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Rep: Reputation: 56
files removed themselves?


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?!
 
Old 11-22-2009, 04:13 AM   #2
Davno
Member
 
Registered: Mar 2004
Location: Montreal, Canada
Distribution: Linux MX 23 KDE "Libretto"
Posts: 213

Rep: Reputation: 25
Quote:
Originally Posted by dimm0k View Post
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.

Last edited by Davno; 11-22-2009 at 04:17 AM.
 
Old 11-22-2009, 09:35 AM   #3
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Original Poster
Rep: Reputation: 56
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!
 
Old 11-22-2009, 01:50 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
Old 11-23-2009, 12:32 AM   #5
Davno
Member
 
Registered: Mar 2004
Location: Montreal, Canada
Distribution: Linux MX 23 KDE "Libretto"
Posts: 213

Rep: Reputation: 25
Quote:
Originally Posted by dimm0k View Post
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!
Can you post your /etc/fstab
 
Old 11-23-2009, 01:50 AM   #6
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
or you typed for example rm -rf libsync *.bz2 .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to recover removed Files cverwey Linux - Newbie 6 08-12-2009 12:01 AM
How to get back removed files? sacoskun Linux - Newbie 19 01-23-2007 12:45 AM
removed files from /etc Spartan552 *BSD 8 11-08-2005 07:16 PM
Kernel files removed Zi5 Red Hat 44 05-06-2004 09:56 PM
Removed files-where have they gone!!!???? the_rydster Linux - General 2 11-13-2003 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration