LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2005, 03:24 AM   #1
Thinking
Member
 
Registered: Oct 2003
Posts: 249

Rep: Reputation: 30
prog for hard disk sector check?


anybody knows a command line prog for hard disk checks in linux?
it would be necessary if the prog only checks if it can read from every sector

i just need a simple and fast and more or less good tool to know if my HD is damaged

thx@ll
 
Old 12-05-2005, 08:58 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
goto the website of the hard disk Mfg........maxtor, IBM sites do offer HD tools you can download to do checkups of disks....these tools can/do fit on a floppy or you can burn to a cd-r ........
 
Old 12-05-2005, 09:40 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
Smile

Do this:

(1) Using an external USB or FireWire type drive, make an immediate backup copy of everything most-critical to you. rsync is very good for this. (Mind you, I'm not saying this because the disk test will put things in danger, but because you may not have done this in a long while...)

(2) Boot the computer from a LiveCD. You need to test a hard-disk while it is un-mounted.

(3) Disk-checking tools like e2fsck have a -c option which will cause the badblocks program to be run, and which will incorporate that information into the filesystem, i.e. by marking the bad sectors so they won't be used.

(4) Something very powerful that I only found about myself very recently .. thanks to this very forum .. is smartctl. It turns out that most IDE drives have on-board diagnostics which can be run. The smartd daemon can even run them periodically and e-mail you when there are problems. (You learn something new every day...)
 
Old 12-07-2005, 02:06 AM   #4
Thinking
Member
 
Registered: Oct 2003
Posts: 249

Original Poster
Rep: Reputation: 30
@sundialsvcs
smartctl seems a good idea
i'll have a look

@320mb
thx
 
Old 12-22-2005, 10:18 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Smartctl and badblocks are the two best tools out there to test harddisks under linux.
 
Old 12-22-2005, 04:09 PM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
fsck -c will do a block check of a partition.
 
  


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
how to check processor, ram and hard disk? jolly Linux - General 16 02-11-2014 05:05 PM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM
Add Hard disk for swap space with problems in boot sector rkes7 Linux - Hardware 1 01-25-2004 02:41 AM
how to check for bad sector nakkaya Linux - General 1 01-16-2003 07:24 PM
Hard disk failure-Sector ID not found eswarkumar Linux - General 1 01-02-2003 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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