LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-02-2005, 03:25 PM   #1
Blaumieser
Member
 
Registered: Sep 2003
Distribution: aptosid
Posts: 40
Blog Entries: 4

Rep: Reputation: 15
ext3 / samba power failure


Hi all,
I have run a file server (mdk 9.2) as a test. It has used samba to share a public directory with XPee and other linux clients and worked flawlessly with ext3. Then a "power failure" "occured" , the public subdirectory structure was not damaged, but all the files _in_ each directory were gone. (as far as I can tell, nothing happened to the system itself which was running on the very same hard disk) This is strange, isn't it? Is there something I should have done to prevent that? I thought ext3 doesn't "mind" a power failure ... or did samba cause this problem...?

Someone got an idea?

Regards
Blaumieser
 
Old 03-03-2005, 08:22 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, ext3 "minds" powerfailures a bit. The journal makes it possible to avoid filesystem corruption most of the time. But the only files that would be affected, if any, would be files that were being written to at the time of the powerfailure. Losing ALL your files is incredibly unlikely, though not impossible. Try running fsck with the option for journal recovery?
 
Old 03-03-2005, 08:23 AM   #3
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
you might want to check the 'lost+found' directory in the root of that particular mount point
 
Old 03-05-2005, 06:36 AM   #4
Blaumieser
Member
 
Registered: Sep 2003
Distribution: aptosid
Posts: 40

Original Poster
Blog Entries: 4

Rep: Reputation: 15
Hi again,
thanks for the hints. There wasn't even a lost+found directory. I performed a fsck and got a "no problems" answer. So I tried e2fsck -f /dev/hda1 and a lost+found directory was created but nothing was put into it. Furthermore, e2fsck didn't find anything suspicious. I'm not sure about your hint

"Try running fsck with the option for journal recovery"

When I "man fsck.ext3" I only find an option for using an external journal. Did I miss something there?

Greets
BM
 
  


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
Power Failure On AC power ONLY Gateway 5300 marti35 Linux - Laptop and Netbook 1 05-22-2005 10:14 AM
rc.local and power failure omnia Red Hat 2 01-04-2005 10:40 AM
help!, power failure, fsck lin00b Linux - Newbie 3 08-19-2004 05:48 AM
Ext2 to ext3 failure. Reil Willy Linux - General 7 03-17-2004 10:49 AM
Crash after power failure deesto *BSD 8 07-29-2003 01:11 PM

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

All times are GMT -5. The time now is 12:03 PM.

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