LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2006, 06:02 PM   #1
LzW-x
Member
 
Registered: Jun 2006
Distribution: SuSe
Posts: 66

Rep: Reputation: 15
SuSe 10 - I lost all my files! (hlp plz)


I noticed there was a download folder in my home folder so I had been storing gigabytes of stuff there and now it is all gone!!! There were 2 linux DVD iso's, a bunch of RPM's and a few GZ files all perfectly sorted in neat directory hierarchy.

Last thing I remember doing in the folder was yester day I downloaded an NNTP news reader called TRN and then I extracted it to ~/apps folder and tried to install it but failed.

The very last thing I did last night before turning the computer off was browse around in windows folder of the ntfs partition and see what EXE files would run in wine...

Today I turn on the computer and all of my downloads are just GONE!!! This is terrible, what will I do?

I tried running file system check programs... fsck, reiserfsck but they would not work because it said /dev/sda3 was mounted read/write! SO I rebooted SuSe Failsafe which logs into run level 3 command prompt and tried again but still same problem!

When I compare the freespace and used space against the volume size, it seems that the data really is gone? There should be far less free space if it were still there!

I noticed that some XP files run under wine have the ability to effect the home/desktop folder. After playing around with wine, I noticed there was a "My Breifcase" folder on the desktop! Did wine/xp wipe out all of my downloads?
 
Old 06-12-2006, 06:11 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Can you post the output of these?
Code:
mount
df -h
If sda3 is your /home partition then you should be able to safely log in as root (not su), unmount it and then run fsck on it. If it's your root partition then you'll need a live CD of some description, perhaps the Suse CD has a rescue function that could help. We'll be able to help more once we know your partition layout
 
Old 06-12-2006, 08:25 PM   #3
LzW-x
Member
 
Registered: Jun 2006
Distribution: SuSe
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
linux:/home/lzw # mount
/dev/sda3 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda1 on /windows/C type ntfs (rw,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8)
/dev/sdb1 on /windows/D type ntfs (ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8)
usbfs on /proc/bus/usb type usbfs (rw)
linux:/home/lzw #
Quote:
linux:/home/lzw # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 21G 13G 8.3G 60% /
tmpfs 506M 0 506M 0% /dev/shm
/dev/sda1 13G 6.5G 6.5G 51% /windows/C
/dev/sdb1 699G 698G 922M 100% /windows/D
linux:/home/lzw #
Thanks for helping me figure this out!

dev/sda is 36gb 10,000 sata drive! they were small expensive drives that were so suppose to be real fast!

dev/sdb is a raid 5 volume on a 3ware sata controller.
 
Old 06-12-2006, 11:38 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Okay, so are you getting any other filesystem weirdness or did the files just vanish? You'll need a live CD or your Suse CD to run reiserfsck because the partition cannot be mounted. I'd try this as well, don't post the output just read over it and see if anything looks like an error:
Code:
cat /var/log/messages | grep -i reiser
If everything aside from the missing files seems fine and you don't see any errors during fsck or in your log then I'd say you're stuffed. This is the reason I don't use reiserfs, I've seen a few stories like this and I like to keep my data safe
 
Old 06-13-2006, 12:53 AM   #5
LzW-x
Member
 
Registered: Jun 2006
Distribution: SuSe
Posts: 66

Original Poster
Rep: Reputation: 15
Yep, I have about 150 errors in that messages log!

- is_tree_node: does not match
- search_by_key: invalid format
- reiserfs_update_sd: i/o failure

Just cut some short snippets out of the long lines but they all repeat over and over like that for about 150 lines! So it's off I go to download a live CD! I'll do some reading and pick one from this list I suppose:

http://www.frozentech.com/content/livecd.php

Thanks for the help again... If nothing ever went wrong, how would I learn any thing? I've learned some new commands already and I'm about to have my first live linux adventure!
 
Old 06-13-2006, 10:18 PM   #6
LzW-x
Member
 
Registered: Jun 2006
Distribution: SuSe
Posts: 66

Original Poster
Rep: Reputation: 15
I finally decided on a live cd... I went with Slax KillBill Edition! It boots to a command prompt and after you login, you can run KDE with the startx command! I liked the CD overall but did not like that KDE said the screen was 85hz and I'm sure it was not!

The recovery process was slow but seems to have recovered all of the data I wanted plus tons more!!! All of it is in a lost and found folder in sort of randomly named subfolders! I found the missing DVD iso's but still have much to sort through!

reiserfsck /dev/sdb3

That command declared the file system good! So I figure those errors from the log were already fixed on subsequent suse boots!

reiserfsck --rebuild-tree -S /dev/sdb3

That command seems to have done the recovery in a long process that recovered thousands of items and permanantly removed other items that could not be recovered... (much older stuff like browser cache files I assume because I did some some fairly old cache files succesfully recovered!)

Conclusion

Data recovery under linux is a newbie attainable goal... With a little advice from LinuxQuestions.org of course!
 
Old 06-13-2006, 10:28 PM   #7
nlinecomputers
Member
 
Registered: Aug 2005
Location: Midland, TX
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 15
For what it is worth you could have run both those commands from the rescue mode of your Suse Install disk. The disk is bootable to a command line prompt.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 audio out sources..... plz hlp chunkeydelight Linux - General 1 04-22-2006 10:56 PM
Window Decoration - hlp plz Oxyacetylene Linux - Software 7 12-08-2004 06:26 PM
The Fourth and Final Step... Plz Hlp kaz4u2dig Linux - Newbie 4 05-05-2004 12:22 AM
Audio being a payne...Plz hlp! aero_77 Linux - General 2 07-23-2003 08:40 AM
Audio being a payne...Plz hlp! aero_77 Linux - Hardware 1 07-23-2003 02:45 AM


All times are GMT -5. The time now is 05:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration