CN1155963C - Method for recovering damaged storage capacity by using reserved capacity - Google Patents
Method for recovering damaged storage capacity by using reserved capacity Download PDFInfo
- Publication number
- CN1155963C CN1155963C CNB011095377A CN01109537A CN1155963C CN 1155963 C CN1155963 C CN 1155963C CN B011095377 A CNB011095377 A CN B011095377A CN 01109537 A CN01109537 A CN 01109537A CN 1155963 C CN1155963 C CN 1155963C
- Authority
- CN
- China
- Prior art keywords
- sector
- identification data
- sectors
- damaged
- capacity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000014759 maintenance of location Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- NHDHVHZZCFYRSB-UHFFFAOYSA-N pyriproxyfen Chemical compound C=1C=CC=NC=1OC(C)COC(C=C1)=CC=C1OC1=CC=CC=C1 NHDHVHZZCFYRSB-UHFFFAOYSA-N 0.000 description 1
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
A method for recovering damaged storage capacity by using reserved capacity. It uses the reserved capacity which can not be used in the storage medium (magnetic disc) under the general use condition, uses the special formatting program to rewrite the new format, and pastes a special mark on the damaged sector as the record, and copies the identification data of the damaged sector in the reserved capacity to replace the original damaged sector with the reserved capacity; or writing the identification data of the damaged sectors into the reserved capacity, and then rearranging the sending sequence of the identification data in sequence to replace the original damaged sectors with the reserved capacity, thereby achieving the purpose of restoring the complete capacity of the storage medium and completely using the storage medium again.
Description
Technical field
The invention relates to a kind of method of utilizing retention volume with recovering damaged storage volume, and particularly use special formatted program relevant for a kind of, again write new form on storage medium, and utilize the replacing damaged sector of retention volume in the storage medium, to reach the method for repairing the storage medium entire volume.
Background technology
In the society of scientific and technical information prosperity now, because computing machine can be widely used in multimedia, network, stores data, the message transmission ... on many-side, make computing machine almost become all trades and professions one of indispensable basic tool, even reach the stage that every household all has a computing machine at least soon.
In addition, use the storage medium of the message that in computing machine, can be used for storing data, for example traditional magnetic disk sheet (Disk), discs (Compact Disk; CD) etc., also be the thing of indispensability.Below mentioned storage medium, be to be example with traditional 1.44M disk sheet.
On general storage medium, the block that part is necessarily arranged is can not arrived by access under normal operating position, and we can be considered as these zones the retention volume of this storage medium.Be example just with the compact disk sheet, in fact the capacity that can use is 1.44M byte/disk (bytes/disk), according to our result measured under the DOS/Windows environment, at least it is operable also having the block capacity of 320K byte, yet has not but slatterned because of being utilized.
In addition, disk sheet is under normal operating position, if certain sector (sector) on the disk is damaged, operating system can be marked in the disc format data with this damage sector in the process of format (format), from then on do not re-use this and damage the sector, cause disk size just therefore to reduce yet.But,, the full wafer disk can't be used if the sector of damaging is to be arranged in system documentation district fixing on the disk.
Summary of the invention
In view of this, the present invention proposes a kind of method of utilizing retention volume in the storage medium to reach recovering damaged medium storage volume.Above-mentioned storage medium comprises storage volume district and retention volume district.The storage volume district has most first sectors, and each first sector puts in order according to it and separately corresponding to an identification data, and described data according to corresponding first sector put in order for numeral continuous.The retention volume district has most second sectors, and each second sector has a blank sector identification data separately.This method comprises and at first scans all first sectors, and notes the correspondence identification data of the damage sector in first sector.Then, on the identification data position of damaging the sector, write blank sector identification data.At last, will damage respectively on the identification data position, blank sector that the corresponding identification data in sector writes on second sector.
The present invention proposes another kind and utilizes retention volume in the storage medium to reach the method for recovering damaged medium storage volume.Above-mentioned storage medium comprises storage volume district and retention volume district.The storage volume district has most first sectors, and each first sector arranges along separately corresponding to an identification data according to it, and described identification data according to corresponding each first sector put in order for numeral continuous.The retention volume district has most second sectors, and these second sectors have a blank sector identification data separately.This method comprises and at first scans all first sectors, and notes the correspondence identification data of the damage sector in first sector.Then, write blank sector identification data in this identification data position of damaging the sector.At last, rearrange the order that described identification data is sent, except that described damage sector, with described identification data according to order continuous write described first sector separately in order to the position of record identification data, and unnecessary described identification data is written to respectively in described second sector, data is discerned in the blank sector that substitutes quantity some second sectors identical with unnecessary described identification data quantity with described identification data.
In sum, the present invention system utilizes the retention volume that can not use in the storage medium under general operating position, use special formatted program, again write new form, a special mark is sticked as record in the sector of damaging, and replace with retention volume, so as to reaching the purpose of repairing the storage medium entire volume.
Description of drawings
Fig. 1 is that synoptic diagram is distributed in the sector of magnetic track after format of general disk sheet;
Fig. 2 distributes synoptic diagram according to the sector of magnetic track behind the professional format program scanning of preferred embodiment of the present invention;
Fig. 3 distributes synoptic diagram according to the sector of magnetic track after the professional format program rearranges of a preferred embodiment of the present invention; And
Fig. 4 distributes synoptic diagram according to the sector of magnetic track after the professional format program rearranges of another preferred embodiment of the present invention.
Description of reference numerals:
100: magnetic track
101~122: the sector
Embodiment
For above and other objects of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and cooperate appended graphicly, be described in detail below:
Under the DOS/Windows environment, 1.44M byte compact disk sheet has the two sides, every face has 80 road magnetic tracks (track), every track format turns to 18 sectors, each sector-size is 512 bytes/sector (bytes/sector), and being converted into total volume is 2 (face/disk) * 80 (magnetic track/face) * 18 (sector/magnetic track) * 0.5K (byte/sector)=1440K (byte/disk).Find through our more deep measurement, please refer to Fig. 1, what it illustrated is the sector distribution synoptic diagram of magnetic track after format of general disk sheet, when the magnetic track 100 of disk sheet behind the operating system formatting procedure, magnetic track 100 can be divided into 22 sectors 101~122, and wherein preceding 18 sectors 101~118 are the storage volume district, normally the access data information, and back 4 sectors 119~122 are the retention volume district, can't any data of access.
When Windows operating system when formatting diskette, as mentioned above, in fact each magnetic track 100 can be marked off 22 sectors 101~122, wherein each sector 101~122 has an identification data (ID) respectively, but in order to allow disc driver distinguish which sector is normal access information data area.The identification data of the sector 101~118 in the storage volume district be continuous for example in regular turn for ID1, ID2 ..., ID18, normal access data information, then can be eliminated be 0 to the identification data of the sector 119~122 in the retention volume district in addition, so can't be by access.Therefore, generally we are when checking disc content or carry out the disk access action, in fact only can see that the identification data is the sector 101~118 of ID1~ID18 and carries out access thereon, and can't see and be 0 sector 119~122 enterprising line access in the identification information data area.
Retention volume (320K byte) for effective preceding mentioned storage medium that utilizes, avoid causing disk size and then to reduce because of damaging the sector, or be to be arranged in system documentation district fixing on the disk to cause the full wafer disk to use because of damaging the sector, we can design the formatted program of a special use, again write new form, special label (Tag) is sticked in the sector of damaging, and replace, reach the purpose of repairing the storage medium entire volume with retention volume.Therefore the present invention proposes a kind of method of utilizing retention volume in the storage medium to reach recovering damaged medium storage volume, and so as to reaching above-mentioned purpose, its explanation is with as described below.
Please be simultaneously with reference to Fig. 1, Fig. 2 and Fig. 3.Fig. 2 illustrates is to distribute synoptic diagram according to the sector of magnetic track behind the professional format program scanning of preferred embodiment of the present invention, and Fig. 3 illustrates is to distribute synoptic diagram according to the sector of magnetic track after the professional format program rearranges of a preferred embodiment of the present invention.
At first, please refer to Fig. 2, use the sector 101~122 on each magnetic track 100 of a professional format program scanning.If in scan period, find to have in the sector 101~122 sector of damage to exist, for example sector 103 is then noted for damaging the sector in advance.Because the identification data of each sector 101~122 is that program is sent out by program after the disc driver control interface is given in the format instruction down together on the magnetic track 100, in normal format flow process, these identification data be continuous (sector 101 identification data ID1, sector 102 identification data ID2 ..., sector 118 identification data ID18,4 blank sector ID 19~ID22 identification data 0).
Then, according to the result of previous sector scanning, the identification data ID3 that damages sector 103 is write blank sector identification data 0, the identification data ID3 that also is about to damage sector 103 changes to 0.Simultaneously, originally the identification data ID3 that damages sector 103 is write on originally on the sector that is taken by blank sector identification data 0, for example write on the sector 119, make the identification data of sector 119 become ID3 by 0, as shown in Figure 3, this moment sector 101~122 the identification data be in regular turn ID1, ID2,0, ID4 ..., ID18, ID3,0,0,0.Therefore, when operating system during at scanning disk, can find on magnetic track 100, to include equally 18 normally sectors 101,102,104~119 of access data information, and 4 can't any data of access sector 103,120~122, be completely not damage just so as disk for operating system.
In addition, as mentioned above, according to the result of previous sector scanning, we can use another kind of method, rearrange the order that sector identification data is sent.In other words, promptly be that the identification data ID3 that will damage sector 103 earlier writes blank sector identification data 0.Then, to discern in regular turn data ID1, ID2 ..., ID18 write on sector 101,102,104 ..., on 119, and 120~122 write blank sector identification data 0 in the sector, make sector 101~122 the identification data in regular turn for ID1, ID2,0, ID3 ..., ID17, ID18,0,0,0, as shown in Figure 4.Therefore, when operating system during at scanning disk, similarly, can find on magnetic track 100, to include 18 normally sectors 101,102,104~119 of access data information, and 4 can't any data of access sector 103,120~122, be completely not damage just so certainly as disk for operating system.
Therefore, in sum, advantage of the present invention, system utilizes the retention volume that can not use in the storage medium (disk sheet) under general operating position, formatted program with special use, a special mark is sticked as record in the sector of damaging, replace it, so just can intactly use this piece storage medium once again and in retention volume, duplicate this identification data of damaging the sector.
Though the present invention discloses as above with preferred embodiment, so it is not in order to limiting the present invention, anyly has the knack of this skill person, and without departing from the spirit and scope of the present invention, when can doing various improvement, so protection scope of the present invention is when being as the criterion with claims.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB011095377A CN1155963C (en) | 2001-03-30 | 2001-03-30 | Method for recovering damaged storage capacity by using reserved capacity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB011095377A CN1155963C (en) | 2001-03-30 | 2001-03-30 | Method for recovering damaged storage capacity by using reserved capacity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1378210A CN1378210A (en) | 2002-11-06 |
CN1155963C true CN1155963C (en) | 2004-06-30 |
Family
ID=4657984
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB011095377A Expired - Fee Related CN1155963C (en) | 2001-03-30 | 2001-03-30 | Method for recovering damaged storage capacity by using reserved capacity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1155963C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7278053B2 (en) * | 2003-05-06 | 2007-10-02 | International Business Machines Corporation | Self healing storage system |
CN112558859A (en) * | 2019-09-26 | 2021-03-26 | 杭州海康威视数字技术股份有限公司 | Hard disk, storage system and hard disk capacity marking method |
-
2001
- 2001-03-30 CN CNB011095377A patent/CN1155963C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1378210A (en) | 2002-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI245265B (en) | Recording medium having spare areas for defect management and method of allocating spare areas | |
US5832526A (en) | Method and apparatus using slack area of file storage structures for file reconstruction | |
US6542975B1 (en) | Method and system for backing up data over a plurality of volumes | |
US5265230A (en) | Method and apparatus for determining sector status in a data storage device by writing a status of read-only, writable, or obliterated in an error recovery area of each sector | |
JPH05313980A (en) | Information recording method | |
KR960003024B1 (en) | Method and apparatus for recording data files and directory information for data files on media | |
EP0507341B1 (en) | Data recording method and data recording medium | |
GB2503314A (en) | Implementing remapping command with indirection update for indirected storage | |
CN1155963C (en) | Method for recovering damaged storage capacity by using reserved capacity | |
JPH02193335A (en) | Card-type optical recording medium | |
TW511079B (en) | Method for using reserved capacity in storage medium to recover damaged medium storage capacity | |
JPH0644118A (en) | File backup system | |
CN1977331A (en) | Defect management for storage media | |
JPS6359618A (en) | How to copy | |
JP2867260B2 (en) | Method of recording data on card type optical recording medium | |
KR100296082B1 (en) | How to exchange all electronic switch system file system with Unix file system | |
JPH0359820A (en) | Direct-read-after-write type optical disk medium | |
JPH02239492A (en) | How to write data on write-once recording media | |
JPS61292273A (en) | Block control system | |
JP2876124B2 (en) | Method of recording data on card type optical recording medium | |
JPS6396740A (en) | Optical recording medium | |
JPH0922375A (en) | File management method | |
JPH05290514A (en) | Recording and reproducing device | |
JPH04238163A (en) | Information recording and reproducing device | |
JPH054696B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20040630 |