LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-05-2007, 07:34 AM   #1
bdimych
LQ Newbie
 
Registered: May 2007
Posts: 6

Rep: Reputation: 0
What is the safest fs type for unwatched 24/7 file storage device


Hi All

I making video surveillance recorder from my old pc and have had problems with whole file system after some unknown hw crash (http://www.linuxquestions.org/questi....php?t=551468).

Therefore I decided to ask this question.
-what is the safest fs type? Speed does not matter - main function just to capture and store a/v files, main requirement is reliability after unexpected on/off
-what hdparm and mount options will supply best reliability? I'm newbe but read about linux fs-s and think about 1-turn off write buffering, 2-increase count of the backup superblocks

Please advise.

I moved from win to lin just half a year ago. It may be foolish but crash looked like autodefrag in windows - after some time of iactivity hdd began hard working and after this crash occured. That is last question - Is there in linux (kernel or may be distrib specific) some default automatic low level filesystem jobs like defrag in windows and if yes - is it possible to turn they off?

Sorry for my poor english.
 
Old 05-05-2007, 09:16 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by bdimych
Hi All

I making video surveillance recorder from my old pc and have had problems with whole file system after some unknown hw crash (http://www.linuxquestions.org/questi....php?t=551468).

Therefore I decided to ask this question.
-what is the safest fs type? Speed does not matter - main function just to capture and store a/v files, main requirement is reliability after unexpected on/off
-what hdparm and mount options will supply best reliability? I'm newbe but read about linux fs-s and think about 1-turn off write buffering, 2-increase count of the backup superblocks

Please advise.
Your problem may have been more to do with old hardware than filesystems... one makes old drives more reliable with RAID ... and this would probably have saved you some greif in your crash.

Journalling file systems are the most reliable in unexpected shutdowns - this is what they are for. So your choice of ext3 was actually sane in this regard.
Quote:
I moved from win to lin just half a year ago. It may be foolish but crash looked like autodefrag in windows - after some time of iactivity hdd began hard working and after this crash occured. That is last question - Is there in linux (kernel or may be distrib specific) some default automatic low level filesystem jobs like defrag in windows and if yes - is it possible to turn they off?

Sorry for my poor english.
There is no equivalent to defrag in linux ... this is because linux doesn't need it.
http://www.salmar.com/pipermail/wftl...ch/000603.html

It sounds like you had a power out, and when the OS rebooted, it ran a file system check... discovered a great deal of bad blocks and attempted to fix them. Hence, a great deal of disk activity and corrupt data.
 
Old 05-05-2007, 09:25 AM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If power loss is the issue, I would invest in a UPS. Make sure to get one that can interact with your OS. If the machine is allowed to shutdown properly it should eliminate a lot of the problem. Other than that, look at Raid 1(much more expensive than UPS).
 
Old 05-05-2007, 10:15 AM   #4
bdimych
LQ Newbie
 
Registered: May 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
It sounds like you had a power out, and when the OS rebooted, it ran a file system check... discovered a great deal of bad blocks and attempted to fix them. Hence, a great deal of disk activity and corrupt data.
No, most likely. I turn on comp and just get out of it and walk around about hour. I noticed hdd activity and not right after turn on. When I set down again I saw no hdd activity and login prompt (absolutely as usual) and would print login but could not. And what after - see http://www.linuxquestions.org/questi...d.php?t=551468

May be important info. For capture and record video I setup well known program "Motion". B.o. old comp (PII-266) it can take almost whole CPU when compressing video. How ext3 behave when low CPU?

I understand and agree that UPS is the right way, but for this device UPS unwanted. Now I may upgrade and tune only software.
 
Old 05-05-2007, 10:36 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
bd

If I am understanding you correctly you cannot make any hardware changes to the system. Is that correct? If it is, I cannot see any way to prevent what has happened from happening again.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect storage device by checking mounted file system to Linux syseeker Programming 4 02-06-2006 10:14 AM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 03:52 AM
/dev (file type: socket device?) blackzone Linux - Networking 1 08-10-2004 04:15 AM
USB mass storage device file system shariqali Linux - Hardware 1 02-19-2004 10:31 AM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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