Re: Bad blocks on IDE drive (newbie question)

From: Tim Judd (tjudd01_at_hotmail.com)
Date: 06/27/04


Date: Sun, 27 Jun 2004 15:45:08 -0600

Matt Bostock wrote:
> Hi,
>
> I'm using an old Pentium 200MHz for use as a development web server on
> my home network. I've installed OBSD with no problems. I have some
> experience with Linux OSes and found various commands to recognise bad
> blocks etc. I've search the web for equivalents for OBSD but found no
> definite or comprehendable answer (considering my lack of knowledge of
> OBSD).
>
> 1) How can I check for and mark bad blocks on IDE hard disks in OBSD?
> 2) Are bad blocks defined on formatted partitions, in the MBR, by the OS
> drivers, or elsewhere, or a combination? If a disk is formatted, does it
> lose the list of badblocks? And if its partitions are manipulated, does
> it lose the list? And is the list of bad blocks cross-platform (the disk
> used to be used by Windows95)?
>
> I can't afford to buy a new HDD right now so this is my only option.
>
> Many thanks,
> Matt :)
>
> PS Is there an FAQ for this group?

As I recall, the bad blocks are marked by the format process. FAT/FAT32
marks in it's File Allocation Table (hence, FAT) that sector xxxx is
bad. The MBR marks "Partition one starts here, ends here and is of this
filesystem." I doubt the OS has anything to do with it. I think the OS
asks to write a file to disk, and the Filesystem checks the FAT before
writing to a bad cluster.

I have absolutely NO CLUE how OBSD marks bad clusters/blocks/sectors.
I'd get a new drive to put OBSD on anyway, but you said you can't get
one now. OK, so get a used one from salvation army, go to
http://www.streetprices.com/ or the like for inexpensive devices. Don't
forget to check http://www.resellerratings.com/ to check their repitoire
before laying money down.

HTH



Relevant Pages

  • Bad blocks on IDE drive (newbie question)
    ... I'm using an old Pentium 200MHz for use as a development web server on ... I've installed OBSD with no problems. ... Are bad blocks defined on formatted partitions, in the MBR, by the OS ... And is the list of bad blocks cross-platform (the disk ...
    (comp.unix.bsd.openbsd.misc)
  • disk not recognized
    ... 96 MB memory and a 1.2 GB disk and CD. ... obsd cd is booted ok and asks a few questions about keyboard/language ... But if I don't boot from the CD but from the harddisk, a nice linux ... what I want to achieve is format the disk under obsd and install obsd ...
    (comp.unix.bsd.openbsd.misc)