[comp.os.minix] What does diskcheck do?

greg@mobius.Viewlogic.COM (Gregory Larkin) (10/03/90)

I am running V1.3 on my PC-AT and am trying to install
all of the OS and command sources on my HD so I can update
to V1.5.10.  While I was doing this I got an error message
like this:

Unrecoverable disk error device 3/6, block xxxx

I found a program called disk check and ran it on /dev/hd6.
This partition is 11200 blocks long.  A long time later, it
finished and it reported about 36 read errors like above.

I am assuming that these errors were due to bad sectors.  Does
diskcheck mark these sectors so that the controller doesn't try
to write them anymore?  If not, is there any way to do this?


Thanks for all help,
--
Greg Larkin (ASIC Engineer)
Viewlogic Systems, Inc. (The CAE Company)
293 Boston Post Road West       -------------------------------------
Marlboro, MA 01752              |"We've got captains not courageous,|
508 480 0881 x321               |captains tumbling into madness..." |
E-mail: greg@Viewlogic.COM      |Peter Garrett, Midnight Oil        |
                                -------------------------------------

woju@mist.UUCP (Wolfgang Jung) (10/06/90)

In <1990Oct3.085332@mobius.Viewlogic.COM>, Gregory Larkin writes:
}I found a program called disk check and ran it on /dev/hd6.
}This partition is 11200 blocks long.  A long time later, it
}finished and it reported about 36 read errors like above.
}
}I am assuming that these errors were due to bad sectors.  Does
}diskcheck mark these sectors so that the controller doesn't try
}to write them anymore?  If not, is there any way to do this?

NO, the command DISKCHECK just checks your disk and reports all bad sektors
found, on minix you have run the command badblocks to mark those blocks as
used und so the FS won't allocate them for FILES anymore...

If your controler manages badtrak reallocation (OMTI 552X does it) you
mark those tracks(you have to calculate them out off your PARTitiondata)
to be be reallocated to the end off your drive.. them the Controler
gets the block virtuel from the original tracks, but physically loads them
from the alternative rack assigned to that Track.

Your Partioning Software should manage this alternative Track assignment if
supported by YOUR HD Controler... Otherwise you have to collect them
with the badblocks command(my Informtion is, that badblocks only collects
up to 7 blocks) in your case you have to run it 6 times to collect all
36 bad blocks...

(the inforation from badblocks comes from the V1.1 ST Handbook of MINIX, 
but i think it has'nt jchanged much... otherwise correct me :-)

Bye
 
-- 
Bye,...
Don't trust your eyes. It's just an imagination of your brain !

woju@mist.UUCP(only subnet),
woju@image.in-berlin.de
woju@neon.in-berlin.de

(c) by Wolfgang Jung, Berlin (date look at header !!)