RISCOS.com

www.riscos.com Technical Support:
RISC OS 3 User Guide

 

RISC OS 3.7 User Guide


Appendix G: Removing a disc defect


This appendix shows you how to map out a defect in your hard disc. You can still use your hard disc without using the part of the disc that contains the defect.

What is a defect?

If you are using your hard disc and see an error message such as;

    Disc error 08 at :4/0001040

then you have found a disc defect.

You might also find a disc defect if you are Verifying your disc.

Removing a defect

Assuming that you see an error message such as;

*nbsp;   Disc error 08 at :4/0001040

write it down. The last number is the disc address. At the command line type *Defect, the disc name and the last part of the disc address.

    *Defect HardDisc4 1040 If this section of disc is in use you will see a message such as;

    .myfile1 has defect at offset 800

.myfile2 must be moved

Try to copy these files to another part of the disc (into another directory) and delete the originals. The affected part of the disc is now unallocated.

At the command line type the *Defect command again.

    *Defect HardDisc4 1040

The affected part of the disc is now made inaccessible.

Technical Details

*Defect reports what object contains a defect, or (if none) marks the defective part of the disc so it will no longer be used.

Syntax -     *Defect <disc_spec> <disc_addr>

Parameters;

Use

*Defect reports what object contains a defect, or (if none) marks the defective part of the disc so it will no longer be used. *Defect is typically used after a disc error has been reported, and the *Verify command has confirmed that the disc has a physical defect, and given its disc address.

If the defect is in an unallocated part of the disc, *Defect will render that part of the disc inaccessible by altering the 'map' of the disc.

If the defect is in an allocated part of the disc, *Defect tells you what object contains the defect, and the offset of the defect within the object. This may enable you to retrieve most of the information held within the object, using suitable software. You must then delete the object from the defective disc. *Defect may also tell you that some other objects must be moved: you should copy these to another disc, and then delete them from the defective disc. Once you have removed all the objects that the *Defect command listed, there is no longer anything allocated to the defective part of the disc; so you can repeat the *Defect command to make it inaccessible.

Sometimes the disc will be too badly damaged for you to successfully delete objects listed by the *Defect command. In such cases the damage cannot be repaired, and you must restore the objects from a recent backup.


RISC OS 3.7 User Guide - 20 JAN 1997

This edition Copyright © 3QD Developments Ltd 2015
Last Edit: Tue,03 Nov 2015