LinuxQuestions.org
Visit Jeremy's Blog.
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 07-18-2009, 07:01 AM   #1
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Rep: Reputation: 31
Testing the integrity and checking the data on a hard drive


Is there a way, a command, or a program that can be used to test the integrity and/or to check the data on an external hard drive?
 
Old 07-18-2009, 07:05 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Each filesystem has it's own fsck program that can be used to examine the volume for any corruption or filesystem errors.

But to actually check that the data contained on the drive is valid, you would need to compare it to a known good copy of the files. fsck can tell you if the filessystem is corrupted, but it can't tell you if the files themselves are faithful to the original versions they were copied from.
 
Old 07-18-2009, 10:26 AM   #3
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
Thank you for the reply.

So a filesystem check will be able to tell me if the files on the drive are at least readable?
 
Old 07-20-2009, 12:33 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
If there's a question as to whether or not the files on the external drive will be readable, I'd think that the simplest thing to do would be to just mount that drive and then attempt to access the files. Is there a particular reason that would create doubt as to whether the files would be accessible?
 
Old 07-21-2009, 02:33 PM   #5
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by J.W. View Post
If there's a question as to whether or not the files on the external drive will be readable, I'd think that the simplest thing to do would be to just mount that drive and then attempt to access the files.
I'm trying to find something a little more automated because I have over 5,000 files on the drive. They're all jpegs; I'm a photographer.

Quote:
Is there a particular reason that would create doubt as to whether the files would be accessible?
Not really. I take good care of the drive, and everything seems to be working fine with it. I'm just paranoid.
 
Old 07-21-2009, 04:45 PM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
OK, allow me to split my comment into two parts. First, in terms of data integrity, IMHO it normally shouldn't be necessary to manually perform frequent file system check ("fsck") operations unless you start to experience erratic system behavior (eg, the partition won't mount, error messages are being generated, etc) or otherwise suspect that something is seriously misbehaving with that drive. If you're using Ubuntu, your disks most likely were formatted as ext3, which is a journaling file system. At the risk of telling you something you already know, journalled file systems (like ext3) are pretty resistant to corruption, even in a bad scenario such as a power failure. (That is not to say that ext3 partitions are immune to data corruption, but ordinarily, and even in the event of a crash or unclean shutdown, ext3 partitions are usually very stable. In my own experience, over the years my machines have experienced a number of crashes and/or power failures, and luckily for me none of them produced any serious side effects or data loss. I'm sure it'll happen sooner or later, but so far I've been lucky)

Second, and given that your drive is performing as expected, you might also consider burning your important files to a DVD, just for additional peace of mind. Obviously hard drives can and do fail, inevitably at the worst possible time, and although it's a cliche a good set of backups can be invaluable. Personally, every couple of weeks I copy my important data to a DVD, and you might consider doing the same if you aren't already. As a photographer, I suppose it might be useful to have your portfolio be easily portable, and if your files are commercially valuable you could also store that DVD backup in a safe deposit box, etc.

Overall, if the main concern is just to avoid any large scale data loss, make backups
 
  


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
file integrity checking software??? dsids Linux - Newbie 2 08-21-2006 07:49 AM
A little help with checking the hard drive. mrmcctt Linux - Hardware 3 03-11-2005 11:58 AM
Checking integrity of a system gamehack Linux - Security 1 05-27-2004 03:26 PM
Checking cable integrity Worstje Linux - Networking 1 05-22-2004 05:47 PM
Checking Hard Drive Space Crashed_Again Linux - Newbie 2 01-18-2003 10:10 PM


All times are GMT -5. The time now is 06:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration