Results 1 to 4 of 4
Thread: Recovering files under ReiserFS
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
08-11-2004 #1
- Join Date
- Nov 2003
- Posts
- 17
Recovering files under ReiserFS
-
08-11-2004 #2
- Join Date
- Jul 2003
- Location
- Stockholm, Sweden
- Posts
- 1,296
It just so happens that I have been looking into this myself recently.
It depends on what you have done to the disk since the deleetion of the file. also if loss of the file was due to corruption of the partition then this is important.
If you have deleeted a file accidentaly you should umount that partiton _IMEDIATLY_ this should hopefully stop the data from being overwriten. Even if the wanted file was deleeted a long time ago it may still be possible to recover it (at least in part, depends on the type of file lost and the amount of use the fs has seen)
This is one method of looking for files on a damaged partition or for accidentaly deleeted files:
1. umount the partition as soon as possible - the partition should not be mounted when running this command.
2. Use grep to scan the disk contents, pipe the output to GNU/strings and then to a file.
Code:grep -20 -s 'name of file, or text from file' /dev/hda1 | strings > text.dump
There are other methods which can be used and please rememeber that you should make a backup of your filesystem before doing anything that may corrup things, I know of a few other possibilities which i will post about later.
What kind of data is it btw?
-
08-11-2004 #3
- Join Date
- Nov 2003
- Posts
- 17
10x, I'll try that. The data is around 50MB of images, which I've been storing for the past year or so. And while I do have a backup, it's around a month old, so that's why I wanted to see if there is any other way to recover the lost files.
-
08-11-2004 #4
- Join Date
- May 2003
- Location
- Greece / Athens
- Posts
- 1,169
i would suggest you to check for a script that makes automatically backup every 30 minutes of /home for example and saves the backup-file in a tarball..
Linux For Ever!