RE: another hard disk broken or xfs problems?

From: Stephen Satchell (list_at_satchell.net)
Date: 02/28/04

  • Next message: johnny zhao: "Re: udp packet loss even with large socket buffer"
    To: Michael Joy <mdj00b@acu.edu>
    Date:	Sat, 28 Feb 2004 13:43:06 -0800
    
    

    On Wed, 2004-02-25 at 15:10, Michael Joy wrote:
    > One thing I've run into recently is that Hitachi drives come from the
    > factory with bad sectors out of the box. If you run a full format on the
    > drive checking for bad sectors the first time you use the drive, it will
    > occasionally find an error, the format will die, and the next time you
    > format nothing will be found.
    >
    > It's a symptom of Hitachi not properly QC'ing their drives by fully
    > formatting them several times. The problem can reoccur over the first few
    > days until the drive finds all the questionable bad sectors and reallocates
    > backup sectors to cover for it.

    It's not just Hitachi drives, either. I just purchased a NEW (not
    reburbed) Maxtor 80-GB drive to replace a Fujitsu that finally reached
    end of life, and found that I had to zero the drive before it would mkfs
    properly. The command I used to make this happen is:

       dd if=/dev/zero of=/dev/hdb bs=1M

    I'm used to doing this because I've discovered that the refurb drives my
    employer has been buying have been needing zeroing before use. I know
    that's not as good as using a worst-case pattern specific to the drive,
    but it's good enough to get the known bad sectors remapped at the start,
    then let the drive discover other bad sectors as it goes. To that end,
    the systems under my control run a weekly CRON job that looks something
    like this:

      /bin/nice -n 15 /bin/dd if=/dev/hda of=/dev/null bs=128k
      /bin/nice -n 15 /bin/dd if=/dev/hdc of=/dev/null bs=128k
      /bin/nice -n 15 /bin/dd if=/dev/sda of=/dev/null bs=128k

    This ensures that all sectors are readable, regardless of file system
    state, and relocates and reassigns those sectors that can be read in any
    way.

    I also have started installing smartmontools into all my systems, and
    configuring them to e-mail me when a critical parameter changes -- I'm
    getting tired of coming in to work and discovering that a hard drive has
    finally bit the big one. (It doesn't help prevent a crisis, because a
    thrown head is such a catastropic event, but it does help with
    end-of-life discovery, so a disk change can be scheduled.)

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: johnny zhao: "Re: udp packet loss even with large socket buffer"

    Relevant Pages

    • Re: Event ID 11 - please help
      ... a ton of drives. ... > two more SATA WD 120 GB drives connected to the Promise controller ... > Offset Length Sectors ... > Type Indicator Partition Partition ...
      (microsoft.public.windowsxp.hardware)
    • Re: Hard Disk Failure
      ... Does the HDD's OEM diagnostic tool see the full size of the HDD, ... Do you see anything in Disk Management that relates to the 160GB HDD, ... tool on the drives and this is the result. ... Sectors per Cluster: 8 ...
      (microsoft.public.windowsxp.hardware)
    • Cant Move/Backup WinXP
      ... I'm wanting to backup my WinXP partition, ... PartitionMagic finds "bad sectors" ... (Modern drives automatically ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: sbp2port.sys, IEEE 1394 port driver
      ... The commands are vendor commands and should be allowed to be ... and that PIO data transfers are in integer numbers of sectors. ... > finished that can format SmartMedia correctly as the SSFDC requires. ... > manufacturer's name and model number of some hard drives in a USB 2.0 ...
      (microsoft.public.development.device.drivers)
    • Re: Can I resell XP computers in my consignment shop without COA?
      ... for bad sectors on a hard drive. ... All I can tell you is that a full format does not write zeros to the ... long gone days of MFM hard drives, that was eons ago, and it has nothing ...
      (microsoft.public.windowsxp.general)