Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-05-2005, 03:24 AM   #1
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

Old 12-05-2005, 08:58 AM   #2
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
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,450
Blog Entries: 4

Rep: Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915

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
Registered: Oct 2003
Posts: 249

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

Old 12-22-2005, 10:18 AM   #5
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

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

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


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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration