Method of and apparatus for managing disc defects in disc, and disc on which defects are managed
A method of and apparatus for managing disc defects in a disc using a temporary defect management area in the disc, and the disc, where the method includes recording in a data area user data; and recording in a temporary defect management area, which is present in at least one of a lead-in area and a lead-out area, which temporary defect information and temporary defect management information regarding the user data recorded in the data area are recorded. Accordingly, the method and apparatus are applicable to recordable discs and capable of effectively using the defect management area.
Latest Samsung Electronics Patents:
This application is a continuation of U.S. patent application Ser. No. 10/663,981, filed Sep. 17, 2003 in the United States Patent and Trademark Office, currently pending, and claims the benefit of Korean Patent Application No. 2002-61897, filed on Oct. 10, 2002 in the Korean Intellectual Property Office, the disclosures of which are incorporated herein in their entirety by reference.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to disc defect management, and more particularly, to a method of and apparatus for managing disc defects using a temporal defect management area (TDMA), and a disc in which defect management is performed using the method and apparatus.
2. Description of the Related Art
Defect management is a process of rewriting data stored in a user data area of a disc in which a defect occurs. The data is rewritten to a new portion of the disc's data area, thereby compensating for the data loss otherwise caused by the defect. In general, defect management is performed using a linear replacement method or a slipping replacement method. In the linear replacement method, the user data area in which the defect exists is replaced with a spare data area having no defects. In slipping replacement method, the user data area with the defect is slipped, and the next user data area having no defects is used.
Both the linear replacement and slipping replacement methods are applicable only to discs, such as a DVD-RAM/RW, on which data can be repeatedly recorded and recording can be performed using a random access method. In other words, the linear replacement and slipping replacement methods are difficult to apply to write-once discs on which recording is allowed only once.
In general, the presence of defects in a disc is detected by recording data on the disc, and then confirming whether the data has been recorded correctly on the disc. However, once the data is recorded on a write-once disc, it is impossible to overwrite the new data and manage the defects therein.
After the development of CD-R and DVD-R, a high-density write-once disc with a recording capacity of several dozen GBs was introduced. This type of disc can be used as a backup disc since it is inexpensive and allows random access that enables fast reading operations. However, since defect management is not available for write-once discs, a backup operation is discontinued when a defective area (i.e., an area where a defect exists) is detected during the backup operation. In general, since a backup operation is performed when a system is not frequently used, such as at night when a system manager does not operate the system, it is more likely that a discontinued backup operation is maintained discontinued for the night when it is stopped because a defective area of a write-once disc is detected such that the backup operation is not completely performed.
SUMMARY OF THE INVENTIONThe present invention provides a defect management method and apparatus that can be applied to discs, and a disc having the defects managed using the defect management method.
The present invention also provides a defect management method and apparatus that can manage disc defects even when a defect is detected during a recording operation, enabling the recording operation without interruption, and a disc having the method.
Additional aspects and/or advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
According to an aspect of the present invention, a disc includes a data area in which user data is recorded, and a temporary defect management area that is present in at least one of a lead-in area and a lead-out area and in which are recorded temporary defect information and temporary defect management information regarding the user data recorded in the data area.
It is preferable, but not required, that the temporary defect information and temporary defect management information are recorded for every recording operation in which user data is recorded in the data area.
Also, it is preferable, but not required, that the temporary defect information contains information indicating a position of a defective area of the data area in which corresponding user data is recorded, or contains information indicating a position of a replacement area that is a substitute for the defective area.
According to another aspect of the present invention, a method of managing disc defects in a disc includes recording defect information regarding data, which is recorded in a data area of the disc according to a recording operation, as temporary defect information in a temporary defect management area that is present in at least one of a lead-in area and a lead-out area of the disc; and recording management information for managing the temporary defect information as temporary defect management information in the temporary defect management area.
It is preferable, but not required, that the method further includes repeating the recording the defect information and the recording the management information for every recording operation; and recording a last recorded temporary defect management information and temporary defect information in a defect management area that is present in at least one of the lead-in area and the lead-out area.
The recording the last recorded temporary defect information is performed during finalization of the disc according to an aspect of the invention.
It is preferable, but not required, that the recording the defect information further includes recording information indicating a position of a defective area of the data area containing corresponding user data, as the temporary defect information; recording information indicating the position of a replacement area, which is a substitute for the defective area, as the temporary defect information; or sequentially recording the temporary defect information in a temporary defect information area included in the temporary defect management area, starting from a start of the temporary defect information area.
It is preferable, but not required, that the recording management information comprises sequentially recording the defect information in a temporary defect management information area included in the temporary defect management area, starting from an end of the temporary defect management information area.
According to yet another aspect of the present invention, a recording and/or reproducing apparatus for use with a disc includes a recording/reading unit that records data on or reads data from the disc; and a controller that controls the recording/reading unit to record defect information regarding the data, which is recorded in a data area of the disc according to a recording operation, as temporary defect information in a temporary defect management area that is present in at least one of a lead-in area and a lead-out area of the disc, and to record management information for managing the temporary defect information as temporary defect management information in the temporary defect management area.
It is preferable, but not required, that the controller controls the recording/reading unit to record the temporary defect information and the temporary defect management information in the temporary defect management area for every recording operation, and, during finalization of the disc, to record a last recorded temporary defect information and a last recorded temporary defect management information in a defect management area which is present in at least one of the lead-in area and the lead-out area of the disc.
According to still another aspect of the present invention, a recording apparatus for use with a disc includes a recording/reading unit that records data on or reads data from the disc; and a controller that controls the recording/reading unit to record defect information regarding first data, which is recorded in a data area of the disc according to a first recording operation, as first temporary defect information in a temporary defect management area that is present in at least one of a lead-in area and a lead-out area of the disc, to record first defect management information for managing the first temporary defect information as first temporary defect management information in the temporary defect management area, to record second defect information regarding second data, which is recorded in the data area according to a second recording operation, as second temporary defect information in the temporary defect management area, and to record defect management information for managing the second temporary defect information as second temporary defect management information in the temporary defect management area.
BRIEF DESCRIPTION OF THE DRAWINGSThe above and/or other aspects and advantages of the present invention will become more apparent and more readily appreciated by describing in detail embodiments thereof with reference to the accompanying drawings in which:
Reference will now be made in detail to the present embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present invention by referring to the figures.
Here, the recording operation is a unit of work determined according to a user's intention or is a recording work to be performed. According to this embodiment, a recording operation indicates a process in which the disc 100 is loaded into the recording and/or reproducing apparatus, data is recorded on the disc 100, and the disc 100 is taken out from the recording and/or reproducing apparatus. During the recording operation, data is recorded and verified at least once. In general, data is recorded and verified several times. Defect information, which is obtained using the verify-after-write method, is temporarily stored in the memory 3.
When a user presses the eject button (not shown) of the recording and/or reproducing apparatus in order to remove the disc 100 after recording data, the controller 2 expects the recording operation to be terminated. Next, the controller 2 reads the information stored in the memory 3, provides the read data to the recording/reading unit 1, and controls the recording/reading unit 1 to record the read data on the disc 100.
If the recording of data on the disc 100 is completed (i.e., no more data will be recorded on the disc 100 and the disc 100 is to be finalized), the controller 2 records the temporary defect information and the temporary defect management information in a defect management area of the disc 100.
During reproduction, the recording and/or reproducing apparatus utilizes the defect information and the defect management information in the defect management area and/or the temporary defect management area in order to access the recorded user data. While described in terms of a recording and/or reproducing apparatus as shown in
The user data area is an area of the data area where user data is recorded. The spare area is an area of the data area other than the user data area which is the replacement area for a portion of the user data area having a defect. The spare area serves to compensate for a loss in the recording area due to a defect in the user data area. On the assumption that defects may occur within the disc 100, it is preferable, but not required, that the spare area assumes 5% of the entire data capacity of the disc 100, so that a greater amount of data can be recorded on the disc 100.
In the embodiments of
In general, information that relates to managing defects in the disc 100 is recorded in a defect management area. Such information includes the structure of the disc 100 for defect management, a position of defect information, whether defect management is performed, and a position and a size of the spare area. In the case of a write-once disc, new data is generally recorded after previously recorded data when the previously recorded data changes according to an aspect of the invention.
In general, when a disc is loaded into a recording/reproducing apparatus such as that shown in
According to an embodiment of the present invention, the defect management is performed using the linear replacement method. Thus, the temporary defect information includes information indicating the position of a defective area of the disc 100, and information indicating a portion of the disc 100 that can be a replacement area for the defective area. The temporary defect management information is used to manage the temporary defect information and includes information indicating the point of the disc 100 where the temporary defect information is recorded.
According to an embodiment of the present invention, the temporary defect information and the temporary defect management information are recorded every time a recording operation ends. The temporary defect management area includes temporary defect information #0 and temporary defect information #1. The temporary defect information #0 includes information regarding a defect occurring in data recorded during recording operation #0 and information regarding a replacement area. The temporary defect information #1 includes information regarding a defect occurring in data recorded during recording operation #1 and information regarding a replacement area as temporary defect information #1. Further, the temporary defect management area includes temporary defect management information #0, #1. The temporary defect management information #0, #1 includes corresponding information for managing the temporary defect information #0, #1.
If no more data can or is to be recorded on the disc 100 or if a user does not want to record more data on the disc 100 (i.e., the disc 100 needs to be finalized), the temporary defect information recorded in the temporary defect information area and the temporary defect management information recorded in the temporary defect management information area are recorded in the defect management area.
A reason for recording the temporary defect management information and the temporary defect information in the defect management area (DMA) again will now be explained. When no more data will be recorded on the disc 100 (i.e., the disc 100 needs to be finalized), the temporary defect management information and the temporary defect information, which are updated several times, are moved to the defect management area of the lead-in area, thereby enabling fast reading of the information recorded in the disc 100. Also, it is possible to increase the reliability of information by recording the defect management information in a plurality of areas.
In an embodiment of the invention, the defect information recorded in the temporary defect information areas #0 through #i-1 is accumulatively recorded in a temporary defect information area #i. Therefore, it is sufficient to read the defect information from the last recorded temporary defect information #i and again record the read information in the DMA during the finalization of the disc 100.
For a high-density disc with a recording capacity of several dozen GBs, it is generally desirable that a cluster is allocated to an area in which temporary defect management information #i is recorded, and four to eight clusters are allocated to an area in which temporary defect information #i is recorded. This is because it is generally preferable to record new information in units of clusters to update information when a minimum physical unit of record is a cluster, although the amount of the temporary defect information #i is just several KBs. A total amount of defects allowed in a disc 100 is preferably about 5 percent of the disc recording capacity. For instance, about four to eight clusters are required to record temporary defect information #i, considering that information regarding a defect is about 8 bytes long and the size of a cluster is 64 KB long.
A verify-after-write method can be performed on temporary defect information #i and temporary defect management information #i according to an aspect of the invention. When a defect is detected, information recorded in the defective area of the disc 100 containing the defect may be either recorded in a spare area using the linear replacement method, or recorded in an area adjacent to the defective area using the slipping replacement method.
Referring to
Referring to
Referring to
There are two types of sectors: a physical sector and a logical sector. The physical sector is an area on a disc where a sector of data is to be recorded. An address for detecting the physical sector is called a physical sector number (PSN). The logical sector is a unit in which data can be managed in a file system or an application. An address for detecting the logical sector is called a logical sector number (LSN). A disc recording/reproducing apparatus such as that shown in
Referring to
In the data area A, sections 1001 through 1007 denote predetermined units of data in which the verify-after-write method is performed. A recording apparatus records user data in section 1001, returns to the start of section 1001, and checks if the user data is appropriately recorded or a defect exists in section 1001. If a defect is detected in a portion of section 1001, the portion is designated as defect #1. The user data recorded in defect #1 is also recorded on a portion of the spare area B. Here, the portion of the spare area B in which data recorded in defect #1 is rewritten is called replacement #1.
Next, the recording apparatus records user data in section 1002, returns to the start of section 1002, and checks whether the data is properly recorded or a defect exists in section 1002. If a defect is detected in a portion of section 1002, the portion is designated as defect #2. Likewise, replacement #2 corresponding to defect #2 is formed in the spare area B. Further, defect #3 and replacement #3 are designated in section 1003 of the user data area A and the spare area B, respectively. In section 1004, a defect does not occur and a defective area is not designated.
The recording apparatus records information regarding defect #1, #2, and #3 occurring in sections 1001 through 1003 as temporary defect information TDFL #0 in the temporary defect management area when recording operation #0 is expected to end, after the recording and verifying of data to section 1004, i.e., when a user presses the eject button of a recording apparatus or recording of user data allocated in a recording operation is complete. Also, defect management information for managing the temporary defect information TDFL #0 is recorded as temporary defect management information TDDS #0 in the temporary defect management area.
When recording operation #1 starts, data is recorded in sections 1005 through 1007 and defects #4 and #5 and replacements #4 and #5 are formed in the user data area A and the spare area B in the temporary defect management area, respectively, as explained with respect to sections 1001 through 1004. If the second recording operation is expected to end, the recording apparatus records information regarding defects #4 and #5 as temporary defect information TDFL #1, and records the information contained in the temporary defect information TDFL #0 once again. Thereafter, defect management information for managing the temporary defect information TDFL #1 is recorded in the temporary defect management area.
Referring to
The temporary defect information TDFL #1 further contains information regarding defects #4 and #5 in addition to the information contained in the temporary defect information TDFL #0. That is, the temporary defect information TDFL #1 includes the information regarding defect #1, the information regarding defect #2, the information regarding defect #3, the information regarding defect #4, and the information regarding defect #5.
Referring to
Hereinafter, a defect management method according to an embodiment of the present invention will be described with reference to
In action 803, it is checked whether the disc needs to be finalized. In action 804, if it is determined in action 803 that the disc does not need to be finalized, actions 801 and 802 are repeated while increasing indexes given to the recording operation, temporary defect information, and temporary defect management information by 1. However, it is understood that other numbers can be used for the index to the extent that the numbers serve to distinguish sets of recorded data.
In action 805, if it is determined in action 803 that the disc needs to be finalized, a last recorded temporary defect management information and a last recorded temporary defect information are recorded in a defect management area. That is, the last recorded temporary defect management information and the last recorded temporary defect information are recorded as the final temporary defect management information and temporary defect information in the defect management area (DMA). The final temporary defect management information and temporary defect information may be repeatedly recorded so as to increase the reliability of data detection according to an aspect of the invention.
Also, the verify-after-write method may be performed on the final temporary defect management information and the final temporary defect information according to an aspect of the invention. If a defect is detected from final temporary defect management information and the final temporary defect information, an area of the disc in which the defect occurs and data recorded after the area having the defect may be regarded as being unavailable (i.e., the areas of the final temporary defect management information and the final temporary defect information are designated as a defective area) and the final temporary defect management information and the final temporary defect information may be again recorded after the defective area.
However, in action 906, if it is determined in step 905 that the recording operation is likely to end (i.e., when the recording of the user data is complete by user input or according to the recording operation), the controller 2 reads temporary defect information #0 from the memory 3 and records the temporary defect information #0 as temporary defect information TDFL #0 in a temporary defect management area. In action 907, management information for managing temporary defect information TDFL #0 is recorded as temporary defect management information TDDS #0 in the temporary defect management area.
In action 908, it is checked whether the disc 100 needs to be finalized. If it is determined in action 908 that the finalizing of the disc 100 is not needed, actions 901 through 907 are repeated while indexes given to the recording operation, temporary defect information, and temporary defect management information are increased by 1. However, it is understood that other numbers can be used for the index to the extent that the numbers serve to distinguish sets of recorded data.
In action 910, if it is determined in action 908 that finalization of the disc 100 is needed, a last recorded temporary defect information TDFL #i and a last recorded temporary defect management information TDDS #i are recorded as defect information DFL and defect management information DDS in a defect management area (DMA). The defect information DFL and defect management information DDS may be repeatedly recorded several times to increase the reliability of data detection according to an aspect of the invention.
Further, the verify-after-write method may be performed on the defect information DFL and defect management information DDS according to an aspect of the invention. If a defect is detected from those DFL and DDS, an area having the defect and data recorded after the area having the defect may be regarded as being unavailable (, i.e., the area including the DFL and DDS is designated as a defective area), and the defect management information and defect information may be again recorded after the defective area.
The aforementioned defect management method may be embodied as a computer program that can be run by a computer. Codes and code segments, which constitute the computer program, can be easily reasoned by a computer programmer in the art. The program is stored in a computer readable medium. When the program is read and run by a computer, the defect management method according to the present invention is performed by the computer. Here, the computer-readable medium may be a magnetic recording medium, an optical recording medium, a carrier wave medium firmware or other recordable medium.
While not required in all aspects, it is understood that the controller 2 can be computer implementing the method using the computer program encoded on a computer readable medium. The computer can be implemented as a chip having firmware, or can be a general or special purpose computer programmable to perform the method.
In addition, it is understood that, in order to achieve a recording capacity of several dozen gigabytes, the recording and/or reproducing unit 1 could include a low wavelength, high numerical aperture type unit usable to record dozens of gigabytes of data on the disc 100. Examples of such units include, but are not limited to, those units using light wavelengths of 405 nm and having numerical apertures of 0.85, those units compatible with Blu-ray discs, and/or those units compatible with Advanced Optical Discs (AOD).
As described above, the present invention provides disc defect management that is applicable to discs. According to an aspect of the present invention, a temporary defect information area is present in a lead-in area and/or a lead-out area, so that defect information can be accumulatively recorded. Also, during finalization of a disc, only last recorded temporary defect information is read from a temporary defect management area and is recorded in a defect management area, thereby enabling efficient use of the defect management area. Accordingly, it is possible to record user data on even a write-once disc while performing defect management, thereby more stably backup operations can be performed without interruptions.
While described in terms of a write-once disc, it is understood that the method can be used with rewritable media or where the medium has write-once and rewritable portions.
Although a few embodiments of the present invention have been shown and described, it would be appreciated by those skilled in the art that changes may be made in this embodiment without departing from the principles and spirit of the invention, the scope of which is defined in the claims and their equivalents.
Claims
1. A method of managing disc defects in a disc, the disc comprising a data area and a temporary defect management area in one of a lead-in and/or a lead-out area, the method comprising:
- recording temporary defect information in the temporary defect management area, the temporary defect information comprising defect information regarding data recorded in the data area according to a recording operation; and
- recording temporary defect management information in the temporary defect management area, the temporary defect management information comprising management information for managing the temporary defect information.
2. The method of claim 1, further comprising:
- repeating the recording the temporary defect information and the recording the temporary defect management information for each unit of the data recorded during a plurality of recording operations; and
- recording a last recorded temporary defect management information and a last temporary defect information in a defect management area that is present in at least one of the lead-in area and/or the lead-out area.
3. The method of claim 1, wherein the recording the last recorded temporary defect management information is performed during finalization of the disc.
4. The method of claim 1, wherein the recording the temporary defect information comprises recording in the temporary defect information defect position information indicating a position of a defective area of the data area.
5. The method of claim 3, wherein the recording the temporary defect information further comprises recording in the temporary defect information replacement position information indicating a position of a replacement area that includes a portion of the data also recorded in the defective area so as to be a substitute for the defective area.
6. The method of claim 1, wherein:
- the temporary defect information comprises multiple units of temporary defect information,
- the temporary defect management area further comprises a temporary defect information area, and
- the recording the temporary defect information further comprises sequentially recording the units of the temporary defect information in the temporary defect information area starting from a start of the temporary defect information area.
7. The method of claim 1, wherein:
- the temporary defect management information comprises multiple units of temporary defect management information,
- the temporary defect management area further comprises a temporary defect management information area, and
- the recording the temporary defect management information comprises sequentially recording the units of the temporary defect management information in the temporary defect management information area, starting from an end of the temporary defect management information area.
8. The method of claim 1, wherein:
- the temporary defect information comprises multiple units of temporary defect information,
- the temporary defect management area further comprises a temporary defect information area and a temporary defect management information area,
- the temporary defect management information comprises multiple units of temporary defect management information, and
- the recording the temporary defect information and the recording the temporary defect management information comprise sequentially recording corresponding units of the temporary defect information and temporary defect management information as a pair of information in corresponding units of temporary management information, starting from a start of the temporary defect management area.
9. The method of claim 1, wherein:
- the temporary defect information comprises multiple units of temporary defect information,
- the temporary defect management area further comprises a temporary defect information area and a temporary defect management information area,
- the temporary defect management information comprises multiple units of temporary defect management information, and
- the recording the temporary defect information and the recording the temporary defect management information comprise sequentially recording corresponding temporary defect information and temporary defect management information as a pair of information, starting from an end of the temporary defect management area.
10. The method of claim 1, wherein the recording the temporary defect information further comprises:
- recording the data in predetermined units of the data;
- verifying the recorded data to detect a defective area of the disc in which a defect exists;
- if a defective area is detected, storing first temporary defect information in a memory, the first temporary defect information comprising information pointing to a position of the defective area and information pointing to a replacement area that contains a unit of data recorded in the defective area so as to be a substitute area for the defective area;
- repeating the recording the data through the storing in the memory at least once; and
- reading at least the first temporary defect information stored in the memory and recording the read information as the first temporary defect information in the temporary defect management area.
Type: Application
Filed: May 10, 2006
Publication Date: Sep 14, 2006
Applicant: Samsung Electronics Co., Ltd. (Suwon-si)
Inventors: Jung-wan Ko (Suwon-si), Kyung-geun Lee (Seongnam-si), Sung-hee Hwang (Seoul)
Application Number: 11/430,906
International Classification: G11B 20/10 (20060101);