LinuxQuestions.org
Visit Jeremy's Blog.
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-15-2004, 04:06 AM   #1
herjoc
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0
lost files


Hello everybody.

I have a big problem on my SuSE 9.0 system.
After a crash I lost several files and folders.
There are all kind of files missing: videos, images, etc

I did a fsck, no success:-(


I would appreciate any help.


Thx
 
Old 11-15-2004, 04:12 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
What filesystem are you using? (ReiserFS, ext3, etc. If you don't know this, look in /etc/fstab)

Also, take a look in your /lost+found folder; it may have recovered some files in there (the filenames will be wrong though).

The major piece of advice I would give you is don't save anything to that partition if you can avoid it; it's likely that you've messed up your directory structure, so you may end up making the lost files unrecoverable if you save over them.

There are several ways to recover files, but they really do depend on the filesystem.
 
Old 11-15-2004, 10:32 AM   #3
herjoc
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

my filesystem is reiserfs.

After I ran fsck, there is a folder lost+found, but there is only one file in it and I lost far more.
 
Old 11-16-2004, 02:58 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
You could try doing
Code:
fsck.reiserfs --rebuild-tree
BUT:
If possible, take a backup of the entire partition using
Code:
bzip2 < /dev/partitiondevice > backup.bz2
(with the broken filesystem unmounted). There's a slim chance that rebuilding the tree could cause further problems, and this way you can always go back to the old partition. This step will take some time.

Only ever run fsck on an unmounted filesystem.

Also, do not interrupt fsck with the --rebuild-tree option, or you will damage the partiton.

I hope that helps,

— Robert J. Lee
 
Old 11-17-2004, 04:38 AM   #5
herjoc
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

thanks for the advice.

But I already did this. Unfortunately with no success.

Is there any other possibility?

Thx
 
Old 11-24-2004, 01:08 PM   #6
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
If --rebuild-tree didn't work, then you've lost the leaf nodes for the files.
All is not quite lost, as you could do
Code:
fsck.reiserfs --rebuild-tree --scan-whole-partition
which will scan the entire surface of the disk for anything that looks like data.

This is an expert option, but if you've got a backup of the partition then I don't think it could do much harm.
 
Old 09-29-2005, 09:28 PM   #7
giovannicuriel
LQ Newbie
 
Registered: Mar 2004
Distribution: Red Hat
Posts: 2

Rep: Reputation: 0
Hi! I had such problem...

I had a problem with my harddrive and I used "fsck.reiserfs --rebuild-tree". But, after this command, there were tons of files and folders in lost+found (I think this is my entire file tree). But the names of the files and folders are something like 100200_377281. Supposing that this thing (100200_377281) is a folder, I think that it belongs to a folder called ???_100200. Is this corret? And, if it is, is there any tool that reconstruct the entire tree back (only the structure)?


Thanks a lot,

Giovanni
 
  


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
Lost files gauge73 Linux - General 1 07-18-2005 03:57 PM
Lost files? ParadiseNZ Linux - Software 2 04-19-2005 10:11 PM
lost files fremath Linux - Newbie 4 10-05-2004 09:58 AM
lost files when mv ewlnxnewB Linux - Newbie 3 11-20-2003 03:14 PM
lost files still there... acid_kewpie Linux - General 1 08-07-2001 07:54 PM

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

All times are GMT -5. The time now is 10:11 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