LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 11-20-2003, 12:25 PM   #1
praefex
Member
 
Registered: Dec 2002
Posts: 32

Rep: Reputation: 15
How do I run diagnostics on a hard drive?


Hey everyone,

I have a suspicion one of my hard drives is going bad... (mysql tables keep corrupting) so I want to run something similar to a scandisk to see if the drives have any bad sectors. Does anything come with Redhat 9 that can do this? Any suggestions on what I can use to achieve this?

Thanks,
Praefex
 
Old 11-20-2003, 12:29 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
I suggest downloading a drive diagnostic utility from the manufacturer of the drive. I know both Maxtor and WD have them for their drives. It seems to be the best way to be sure if it is going to fail or not.
 
Old 11-20-2003, 03:55 PM   #3
kacheng
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Unfortunately I forgot where I found this little tidbit, but it seems to be the Linux equivalent to Scandisk...


Quote:
Using e2fsck
You should use this when checking an ext2 or ext3 filesystem. These 2 methods automatically save the bad blocks found into the filesystem so that those parts of the hard drive are no longer used.

Read-only method: e2fsck -c -C /dev/hda1 ---OR--- e2fsck -c -C -y /dev/hda1 (This answers yes to all questions, so it is sure to finish by itself.)

Non-destructive read/write method: e2fsck -c -c -C /dev/hda1 ---OR--- e2fsck -c -c -C -y /dev/hda1 (This answers yes to all questions, so it is sure to finish by itself.)
Note: Filesystem must NOT be mounted. You therefore have to use a rescue cd if you need to check the root filesystem. I recommend this cd: http://rescuecd.sourceforge.net/
 
Old 11-21-2003, 05:32 AM   #4
DirtDart
Member
 
Registered: Nov 2003
Distribution: Mandrake 10.1/Solaris 10 (sparc)
Posts: 96

Rep: Reputation: 15
Like Pcghost said, get the drive diag disk from the manufacturer.

You'll make a bootable floppy with their utility, boot off of it, and it will do a bunch of checks on your drive.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Setting up one hard drive to run XP and linux- how do you do it? Cripple Linux - Newbie 1 10-23-2005 09:30 PM
Run Debian From Remote/Networked Hard Drive? firefly2442 Debian 1 07-23-2004 04:35 PM
Can I run the swap partition on th second hard drive? dwhswebhosting Linux - Software 2 06-03-2004 05:33 PM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM


All times are GMT -5. The time now is 04:43 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
Open Source Consulting | Domain Registration