Re: disk bad block checking post-install / ext2

From: Jules (julesrichardsonuk_at_remove.this.yahoo.co.uk)
Date: 01/11/05


Date: Tue, 11 Jan 2005 21:36:47 +0000

On Tue, 11 Jan 2005 08:06:13 -0800, prg wrote:

>
> Jules wrote:
>> Hmm,
>>
>> does a utility exist to check a (SCSI) disk for bad blocks after
>> installation?
>>
>> It seems that badblocks is designed to run at filesystem creation
> time
>> only (and really designed to be called by the relevant mkfs utility).
>>
>> One of the 18GB SCSI drives in my home fileserver (ext2 filesystem)
> is
>> starting to throw up the occasional disk error on the OS drive, and
>> although I have a spare I can use I'd rather check other options
> first...
>>
>> So,
>>
>> a) does anything exist to run a disk check whilst maintaining
> filesystem
>> integrity,
>
> As others noted, $ man badblocks -- _very_ carefully.
>
> Also, check if you have smartmontools on your distro. $ man smartd

Ahh, yes I do! Hmm, that looks particularly useful, I'll definitely give
that a go (hopefully the SCSI drives I'm using support it!).

I've found that my spare 18GB drive that I have on the shelf is the exact
same model as the failing one, so in theory that makes life very easy;
a simple dd from the failing drive to the new one should be all I need
rather than messing around with doing an OS install and copying data
across...

> Check if you can get a disk diagnostic/repair utility from the maker:
> http://www.duxcw.com/faq/hd/diag.htm

Is it worth it though? Presumably if a drive's developing bad blocks it's
due to wear / contamination and will only get worse? In other words, it's
just better to throw the drive out and replace it...

> As noted, you only have so much spare disk space for remapping. And
> the re-mapping is only available on first write -- it the hd can't
> _read_ the block with data it will _not_ re-map.

Wow - that's a useful bit of info; I didn't know that. I'd assumed it'd
remap on reads or writes (In my experience with IDE disks - which I've
seen cause a few problems - they silently corrupt on reads a long time
before they start giving write errors)

> Badblocks is best run at fs creation time, but is handy afterwards also.
> But to use it you must _know_ what you're doing _and_ generate a table
> that the fs can read/use to avoid badblock marked blocks.

As said in another response, I did do that 6 months ago and it threw up no
errors then. I'll have to check airflow in the server case too; maybe
I've got a heat-related problem that's killed this particular drive...

cheers!

Jules



Relevant Pages

  • Re: Need help to reanimate an AT&T AT&T 3B1/7300 UNIX-PC
    ... only one of the drives could be internal. ... replace the hard disk controller IC with a later model. ... As you can see on the pictures I own a expansion box too, ... But I can’t boot because I have no boot and installation disk now. ...
    (comp.sys.3b1)
  • Re: 137 GB barrier
    ... capacity of large-capacity hard drives, i.e., drives having a capacity ... the remaining disk space will *not* be recognized by the XP ... If, on the other hand, the XP OS installation disk ... that this will be a second partition on the disk. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Can you reduce bloated Windows Folder to increase disk space on La
    ... Installed Windows XP Home Edition SP1 from disk, ... Restore Point created and System files backed up in installation ... Highlight one of your drives and click on ...
    (microsoft.public.windowsxp.newusers)
  • Re: Possible outage
    ... installation disks that came with that computer, ... leaving the current disk unchanged. ... effort on sound as they do on video, ... If I boot up with both drives ...
    (soc.retirement)
  • Re: Disk partitioning size
    ... Your Installation Specialist ... Disk Read Error Press Ctl+Alt+Del to Restart ... large drives and none of them are failing because of problems ... XP installations on large hard drives filed to near capacity ...
    (microsoft.public.windowsxp.general)