Re: How to handle the bad sectors on the hard disk?



Thanks for the advice.



2007/5/30, Douglas Allan Tutty <dtutty@xxxxxxxxxxxxx>:
On Wed, May 30, 2007 at 07:08:25AM -0600, Ninenineone Efx wrote:
> Programs freeze sometimes complaining i/o error, access failure on
> specific sectors.
> My hard disk begins to have bad sectors. It's 10-year old computer.
>
> Is there any tools that make user/kernel programs stop writing data on
> bad sectors?
>
> I feel like I gonna need a new system soon.

I think that it has been more than 10 years since hard drives started
automatically mapping bad blocks to spare blocks; when they start
showing bad blocks they've run out of spares. Its probably time to find
a new hard drive.

That said, yes you can keep the filesystem from writing on bad blocks by
running a fsck on the filesysem while its unmounted, and select the
appropriate badblocks option. Use the -f option to force a check even
though the filesystem is marked as clean.

For e2fsck its -c -c (to use a non-distructive read-write test)

Not all filesystems support badblocks (e.g. JFS) but rely on the hard
drive to handle them transparently (see above).

The hard drive and the computer are only related by a cable and some
screws. If the computer does everything you need and is reliable, it
may only need a new hard drive.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: How to handle the bad sectors on the hard disk?
    ... My hard disk begins to have bad sectors. ... Is there any tools that make user/kernel programs stop writing data on ... I think that it has been more than 10 years since hard drives started ... yes you can keep the filesystem from writing on bad blocks by ...
    (Debian-User)
  • Re: Folder xxx is entirely unreadable. Folder entry removed.
    ... It found 7 bad sectors. ... Then I went to Disk Management (in Windows) / Error Checking / Search ... My feeling about hard drives is if they fail any physical tests (which ... notebook hard drive yourself. ...
    (microsoft.public.windowsxp.general)
  • Re: CHKDSK results
    ... Hard drives are cheap enough that it doesn't pay to try to repair them. ... spare sectors which are mapped in as bad sectors are found. ... A disk check has been scheduled. ... CHKDSK is verifying file data... ...
    (microsoft.public.windowsxp.general)
  • Re: Re[2]: Defragmentation needed with FreeBSD ...
    ... multiple CDs less of a performance. ... Some people use external USB hard drives. ... >> To unsubscribe, send any mail to ... > Do You Yahoo!? ...
    (freebsd-questions)
  • Re: Apples quality and customer service: Not the problem. Neglecting backups is the problem...
    ... If you don't make a backup you get what you deserve. ... All hard drives fail. ... volume to erase, click on the Erase tab, then the Security ... Because bad sectors don't always fail the first ...
    (comp.sys.mac.advocacy)