How do I check for bad blocks on my hard drive?

How do I check for bad blocks on my hard drive?

Post by Ronal » Thu, 28 Jun 2001 22:52:16



How do I check for bad blocks on my hard drive?  It looks like I'm getting
corrupted data, but I can't find the reason.
Please Help,
Ron
 
 
 

How do I check for bad blocks on my hard drive?

Post by Christer Pal » Thu, 28 Jun 2001 23:57:11



> How do I check for bad blocks on my hard drive?  It looks like I'm getting
> corrupted data, but I can't find the reason.

Hi!
First of all, any strictly corrupt data read from disk is very unlikely
to be the consequence of a hardware failure. The data on the disk is ECC
protected, and a media defect would most likely result in a relocation
or an I/O error - not corrupt data.

If you still think you have a hardware problem, check the error log
and/or use the media certification in diag.

--
Christer Palm

 
 
 

How do I check for bad blocks on my hard drive?

Post by Christer Pal » Thu, 28 Jun 2001 23:59:00




> > How do I check for bad blocks on my hard drive?  It looks like I'm getting
> > corrupted data, but I can't find the reason.

Oh, and don't forget to fsck your filesystem. A corrupt filesystem
structure could possibly end up with data corruption.

--
Christer Palm

 
 
 

How do I check for bad blocks on my hard drive?

Post by Ronald Coat » Fri, 29 Jun 2001 02:50:56


Thank You!
Ronald



> > How do I check for bad blocks on my hard drive?  It looks like I'm
getting
> > corrupted data, but I can't find the reason.

> Hi!
> First of all, any strictly corrupt data read from disk is very unlikely
> to be the consequence of a hardware failure. The data on the disk is ECC
> protected, and a media defect would most likely result in a relocation
> or an I/O error - not corrupt data.

> If you still think you have a hardware problem, check the error log
> and/or use the media certification in diag.

> --
> Christer Palm

 
 
 

How do I check for bad blocks on my hard drive?

Post by Simon Marches » Wed, 01 Aug 2001 01:00:03


diag can certify disks - run from CD if in rootvg. Why do you think you're
getting corrupted data? That information might help isolate the problem.

> How do I check for bad blocks on my hard drive?  It looks like I'm getting
> corrupted data, but I can't find the reason.
> Please Help,
> Ron

 
 
 

1. frequency of dup/bad blocks on hard drive

fsck is able to find stuff like this on a _daily_ basis:

Duplicate blocks found... invoking duplicate block passes.
Pass 1B: Rescan for duplicate/bad blocks
Duplicate/bad block(s) in inode 26677: 132634 132635 132636 132637
132638 132639 132640 132641 132642
Duplicate/bad block(s) in inode 26680: 132634 132635 132636 132637
132638 132639 132640 132641 132642
Pass 1C: Scan directories for inodes with dup blocks.
Pass 1D: Reconciling duplicate blocks
(There are 2 inodes containing duplicate/bad blocks.)

File /var/log/cron (inode #26680, mod time Thu Mar 19 11:01:00 1998)
  has 9 duplicate block(s), shared with 1 file(s):
        /var/log/secure (inode #26677, mod time Thu Mar 19 10:58:33
1998)
Clone duplicate/bad blocks<y>? yes

File /var/log/secure (inode #26677, mod time Thu Mar 19 10:58:33 1998)
  has 9 duplicate block(s), shared with 1 file(s):
        /var/log/cron (inode #26680, mod time Thu Mar 19 11:01:00 1998)
Duplicated blocks already reassigned or cloned.

How do I know this? I have a PC that "freezes up" every now and then. At
reboot, fsck finds stuff like this. So, periodically I've been running
fsck to see what it can find and well, here it is. This happens on 6 new
Dell PII 266's that we have. Any ideas?
Here is some hdparm info if that helps.

crchi9eb:/home/shanec% /sbin/hdparm /dev/hda

/dev/hda:
 multcount    =  0 (off)
 I/O support  =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 1023/64/63, sectors = 4124736, start = 0
crchi9eb:/home/shanec% /sbin/hdparm -i /dev/hda

/dev/hda:

 Model=QUANTUM FIREBALL ST2.1A, FwRev=A0F.0900, SerialNo=15272076
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=4092/16/63, TrkSize=32256, SectSize=512, ECCbytes=4
 BuffType=3(DualPortCache), BuffSize=81kB, MaxMultSect=16, MultSect=off
 DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=2(fast)
 CurCHS=4092/16/63, CurSects=4124736, LBA=yes, LBAsects=4124736
 tDMA={min:120,rec:120}, DMA modes: sword0 sword1 sword2 mword0 mword1
mword2
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4

2. USB ServSwitch for Sun Type 6 Keyboards

3. bad blocks on hard drive

4. Newbie Install - Can't mount error

5. hard drive w/bad blocks

6. Turn logs off

7. Hard Drive Bad Blocks

8. I don't want ip-up redirection.

9. Finding out if there are bad blocks in the bad blocks list

10. How do you add a bad block to e2fs bad block list?

11. Does Inode with bad node inevitably mean a bad hard drive?

12. Does disklabel not like my hard drive, or is drive bad?

13. Check my Linux Server bad block