CN104298466B - Disc reading method and device - Google Patents
Disc reading method and device Download PDFInfo
- Publication number
- CN104298466B CN104298466B CN201310300602.4A CN201310300602A CN104298466B CN 104298466 B CN104298466 B CN 104298466B CN 201310300602 A CN201310300602 A CN 201310300602A CN 104298466 B CN104298466 B CN 104298466B
- Authority
- CN
- China
- Prior art keywords
- drive
- image file
- file
- under
- optical disc
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Optical Recording Or Reproduction (AREA)
Abstract
本发明实施例提供一种光盘读取方法及装置。方法包括:当在光驱中检测到光盘时,在高速存储介质中生成所述光盘的镜像文件;将所述镜像文件映射为虚拟光驱;将所述虚拟光驱中的数据复制到目标路径下。避免了直接读取光驱时在光盘上反复的寻址定位,提高了光盘数据的读取速度和成功率。
Embodiments of the present invention provide a method and device for reading an optical disc. The method includes: when an optical disc is detected in the optical drive, generating an image file of the optical disc in a high-speed storage medium; mapping the image file into a virtual optical drive; copying data in the virtual optical drive to a target path. It avoids repeated addressing and positioning on the optical disc when directly reading the optical disc drive, and improves the read speed and success rate of the optical disc data.
Description
技术领域technical field
本发明涉及计算机技术,尤其涉及一种光盘读取方法及装置。The invention relates to computer technology, in particular to a method and device for reading an optical disc.
背景技术Background technique
当前,报业内容资源信息及重要的历史见报信息都是通过刻录光盘的方式进行存储与备份,但是这些光盘数据仅保存了三到五年,在进行信息提取的时候就发现数据非常难以读取,读取速度慢甚至失败等诸多问题,导致珍贵数据的丢失。At present, the content resource information of the newspaper industry and important historical newspaper information are stored and backed up by burning CDs. However, these CDs are only stored for three to five years. When information is extracted, it is found that the data is very difficult to read. , slow reading speed or even failure and many other problems, resulting in the loss of precious data.
造成以上数据读取速度慢及成功率低的主要原因是,光盘经过一定存储时间后,其可读性能下降,当其中保存的数据文件多、碎的情况下,直接读取光驱需要反复在光盘上寻址定位,且定位成功率较低,造成拷贝失败。The main reason for the slow reading speed and low success rate of the above data is that the readability of the optical disc decreases after a certain storage time. Up addressing and positioning, and the positioning success rate is low, resulting in copy failure.
发明内容Contents of the invention
本发明提供一种光盘读取方法及装置,用以解决现有技术中当光盘保存的数据文件多、碎的情况下,直接读取光驱带来的读取速度慢和成功率低的问题。The invention provides a method and device for reading an optical disc, which is used to solve the problems of slow reading speed and low success rate caused by direct reading of the optical drive when the data files stored in the optical disc are many and fragmented in the prior art.
本发明的第一个方面是提供一种光盘读取方法,包括:The first aspect of the present invention is to provide a method for reading an optical disc, including:
当在光驱中检测到光盘时,在高速存储介质中生成所述光盘的镜像文件;When an optical disc is detected in the optical drive, an image file of the optical disc is generated in a high-speed storage medium;
将所述镜像文件映射为虚拟光驱;Mapping the image file as a virtual optical drive;
将所述虚拟光驱中的数据复制到目标路径下。Copy the data in the virtual optical drive to the target path.
本发明的第二个方面是提供一种光盘读取装置,包括:A second aspect of the present invention is to provide an optical disc reading device, comprising:
镜像模块,用于当在光驱中检测到光盘时,在高速存储介质中生成所述光盘的镜像文件;The image module is used to generate the image file of the optical disc in the high-speed storage medium when the optical disc is detected in the optical drive;
虚拟化模块,用于将所述镜像文件映射为虚拟光驱;A virtualization module, configured to map the image file as a virtual optical drive;
读取模块,用于将所述虚拟光驱中的数据复制到目标路径下。The reading module is used to copy the data in the virtual optical drive to the target path.
本发明的技术效果是:通过在高速存储介质中生成光盘的镜像文件,并将镜像文件映射为虚拟光驱,再将虚拟光驱中的数据复制到目标路径下,避免了直接读取光驱时在光盘上反复的寻址定位,提高了光盘数据的读取速度和成功率。The technical effect of the present invention is: by generating the image file of the optical disc in the high-speed storage medium, and mapping the image file into a virtual optical drive, and then copying the data in the virtual optical drive to the target path, it avoids the need to directly read the optical disc when the optical drive is read. Repeated addressing and positioning on the disc improves the read speed and success rate of the disc data.
附图说明Description of drawings
图1为本发明实施例提供的一种光盘读取方法的流程示意图;FIG. 1 is a schematic flowchart of an optical disc reading method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种光盘读取装置的结构示意图。FIG. 2 is a schematic structural diagram of an optical disc reading device provided by an embodiment of the present invention.
具体实施方式detailed description
图1为本发明实施例提供的一种光盘读取方法的流程示意图。如图1所示,该方法包括:FIG. 1 is a schematic flowchart of an optical disc reading method provided by an embodiment of the present invention. As shown in Figure 1, the method includes:
101、当在光驱中检测到光盘时,在高速存储介质中生成所述光盘的镜像文件。101. When an optical disc is detected in an optical drive, generate an image file of the optical disc in a high-speed storage medium.
举例来说,当在光驱中检测到光盘时,光盘读取装置在高速存储介质中生成所述光盘的镜像文件。具体地,高速存储介质是指读取速度大于70兆字节每秒(MB/s)的存储介质,如本地硬盘,光纤磁盘柜等。For example, when an optical disc is detected in the optical drive, the optical disc reading device generates an image file of the optical disc in the high-speed storage medium. Specifically, a high-speed storage medium refers to a storage medium with a reading speed greater than 70 megabytes per second (MB/s), such as a local hard disk, a fiber optic disk cabinet, and the like.
进一步地,所述在高速存储介质中生成所述光盘的镜像文件,包括:Further, the generating the image file of the optical disc in the high-speed storage medium includes:
以隔离(Isolation,简称ISO)数据格式在高速存储介质中生成所述光盘的镜像文件。An image file of the optical disc is generated in a high-speed storage medium in an isolation (Isolation, ISO for short) data format.
正常情况下,对于4倍速率光驱中的4.6吉字节(Gigabyte,简称GB)容量的可记录式数字多功能光盘(Digital Versatile Disc-Recordable,简称DVD-R),在本地硬盘中,生成该DVD-R的镜像文件需要大约15~16分钟。Under normal circumstances, for a recordable digital versatile disc (Digital Versatile Disc-Recordable, DVD-R) with a capacity of 4.6 gigabytes (GB) in a 4x speed optical drive, the local hard disk generates the The DVD-R image file takes about 15-16 minutes.
102、将所述镜像文件映射为虚拟光驱。102. Map the image file to a virtual optical drive.
在映射的过程中,需要给定虚拟光驱对应的盘符,对应地,102包括:In the process of mapping, it is necessary to specify the drive letter corresponding to the virtual CD-ROM drive. Correspondingly, 102 includes:
将所述镜像文件映射为对应指定盘符的虚拟光驱。Map the image file to a virtual optical drive corresponding to a specified drive letter.
具体地,该指定盘符可以是预先分配的,也可以是在映射过程中用户指定的。通常,该指定盘符为与高速存储介质中已有盘符不同的盘符,比如为Z:。Specifically, the specified drive letter may be pre-assigned, or specified by the user during the mapping process. Usually, the specified drive letter is a drive letter different from the existing drive letter in the high-speed storage medium, such as Z:.
103、将所述虚拟光驱中的数据复制到目标路径下。103. Copy the data in the virtual optical drive to the target path.
具体地,103中的复制至少包括两种模式,即自动模式和手动模式。Specifically, the copying in step 103 includes at least two modes, namely automatic mode and manual mode.
在自动模式下,103包括:In automatic mode, the 103 includes:
将所述指定盘符中的所有数据自动复制到所述目标路径下。All data in the specified drive letter is automatically copied to the target path.
具体地,所述目标路径可以是预先设置好的。Specifically, the target path may be preset.
在手动模式下,103包括:In manual mode, the 103 includes:
从所述指定盘符中获得所述光盘的文件及文件夹列表,并呈现;Obtaining the list of files and folders of the optical disc from the specified drive letter, and presenting it;
根据用户指令确定所述目标路径和待复制的文件或文件夹;determining the target path and the file or folder to be copied according to the user instruction;
将所述待复制的文件或文件夹复制到所述目标路径下。Copy the file or folder to be copied to the target path.
具体地,所述呈现可以是,在光盘读取装置的界面以列表方式进行呈现。Specifically, the presentation may be presented in the form of a list on the interface of the optical disc reading device.
本发明实施例通过在高速存储介质中生成光盘的镜像文件,并将镜像文件映射为虚拟光驱,再将虚拟光驱中的数据复制到目标路径下,避免了直接读取光驱时在光盘上反复的寻址定位,提高了光盘数据的读取速度和成功率。需要说明的是,本发明实施例适用于所有保存的数据文件多、碎的光盘,不论保存时间长短,或是当前正使用着的光盘,其中,对于保存时间较长的光盘,由于光盘表面氧化,导致每次读取的读取速度慢和成功率低,本发明实施例的效果更明显。经实际测试,对于4.6GB容量的DVD-R,采用现有技术直接读取大约需要60~100分钟,且成功率仅为70%,而使用本发明实施例的方法大约需要25分钟,成功率达到98%。The embodiment of the present invention generates an image file of an optical disc in a high-speed storage medium, and maps the image file to a virtual optical drive, and then copies the data in the virtual optical drive to the target path, thereby avoiding repeated errors on the optical disc when directly reading the optical drive. Addressing positioning improves the read speed and success rate of optical disc data. It should be noted that the embodiment of the present invention is applicable to all stored data files and fragmented optical discs, no matter how long or short the storage time is, or the optical disc currently in use. , resulting in slow reading speed and low success rate of each reading, the effect of the embodiment of the present invention is more obvious. According to actual tests, for a DVD-R with a capacity of 4.6GB, it takes about 60 to 100 minutes to read directly using the existing technology, and the success rate is only 70%, while using the method of the embodiment of the present invention takes about 25 minutes, and the success rate is only 70%. Reach 98%.
图2为本发明实施例提供的一种光盘读取装置的结构示意图。如图2所示,该装置包括:FIG. 2 is a schematic structural diagram of an optical disc reading device provided by an embodiment of the present invention. As shown in Figure 2, the device includes:
镜像模块21,用于当在光驱中检测到光盘时,在高速存储介质中生成所述光盘的镜像文件;A mirror image module 21, configured to generate a mirror image file of the optical disc in the high-speed storage medium when the optical disc is detected in the optical drive;
虚拟化模块22,用于将所述镜像文件映射为虚拟光驱;A virtualization module 22, configured to map the image file as a virtual optical drive;
读取模块23,用于将所述虚拟光驱中的数据复制到目标路径下。The reading module 23 is configured to copy the data in the virtual optical drive to the target path.
具体地,高速存储介质是指读取速度大于70兆字节每秒(MB/s)的存储介质,如本地硬盘,光纤磁盘柜等。Specifically, a high-speed storage medium refers to a storage medium with a reading speed greater than 70 megabytes per second (MB/s), such as a local hard disk, a fiber optic disk cabinet, and the like.
进一步地,镜像模块21具体用于:当在光驱中检测到光盘时,以ISO数据格式在高速存储介质中生成所述光盘的镜像文件。Further, the image module 21 is specifically configured to: when an optical disc is detected in the optical drive, generate an image file of the optical disc in the high-speed storage medium in ISO data format.
进一步地,虚拟化模块22具体用于:将所述镜像文件映射为对应指定盘符的虚拟光驱。Further, the virtualization module 22 is specifically configured to: map the image file to a virtual optical drive corresponding to a specified drive letter.
可选地,读取模块23具体用于:Optionally, the reading module 23 is specifically used for:
将所述指定盘符中的所有数据自动复制到所述目标路径下。All data in the specified drive letter is automatically copied to the target path.
可选地,读取模块23具体用于:Optionally, the reading module 23 is specifically used for:
从所述指定盘符中获得所述光盘的文件及文件夹列表,并呈现;Obtaining the list of files and folders of the optical disc from the specified drive letter, and presenting it;
根据用户指令确定所述目标路径和待复制的文件或文件夹;determining the target path and the file or folder to be copied according to the user instruction;
将所述待复制的文件或文件夹复制到所述目标路径下。Copy the file or folder to be copied to the target path.
本实施例的具体实现参照本发明实施例提供的一种光盘读取方法。本发明实施例通过在高速存储介质中生成光盘的镜像文件,并将镜像文件映射为虚拟光驱,再将虚拟光驱中的数据复制到目标路径下,避免了直接读取光驱时在光盘上反复的寻址定位,提高了光盘数据的读取速度和成功率。需要说明的是,本发明实施例适用于所有保存的数据文件多、碎的光盘,不论保存时间长短,或是当前正使用着的光盘,其中,对于保存时间较长的光盘,由于光盘表面氧化,导致每次读取的读取速度慢和成功率低,本发明实施例的效果更明显。经实际测试,对于4.6GB容量的DVD-R,采用现有技术直接读取大约需要60~100分钟,且成功率仅为70%,而使用本发明实施例的方法大约需要25分钟,成功率达到98%。For the specific implementation of this embodiment, refer to the method for reading an optical disc provided in the embodiment of the present invention. The embodiment of the present invention generates an image file of an optical disc in a high-speed storage medium, and maps the image file to a virtual optical drive, and then copies the data in the virtual optical drive to the target path, thereby avoiding repeated errors on the optical disc when directly reading the optical drive. Addressing positioning improves the read speed and success rate of optical disc data. It should be noted that the embodiment of the present invention is applicable to all stored data files and fragmented optical discs, no matter how long the storage time is, or the optical disc currently in use. , resulting in slow reading speed and low success rate of each reading, the effect of the embodiment of the present invention is more obvious. According to actual tests, for a DVD-R with a capacity of 4.6GB, it takes about 60 to 100 minutes to read directly using the existing technology, and the success rate is only 70%, while using the method of the embodiment of the present invention takes about 25 minutes, and the success rate is only 70%. Reach 98%.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310300602.4A CN104298466B (en) | 2013-07-17 | 2013-07-17 | Disc reading method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310300602.4A CN104298466B (en) | 2013-07-17 | 2013-07-17 | Disc reading method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104298466A CN104298466A (en) | 2015-01-21 |
| CN104298466B true CN104298466B (en) | 2017-10-20 |
Family
ID=52318213
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310300602.4A Expired - Fee Related CN104298466B (en) | 2013-07-17 | 2013-07-17 | Disc reading method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104298466B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1395246A (en) * | 2002-06-14 | 2003-02-05 | 清华大学 | Method for implementing virtual image optical disk and and its system hardware structure |
| CN202736057U (en) * | 2012-02-10 | 2013-02-13 | 智点数位有限公司 | Card reader capable of converting disc image files |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6693869B1 (en) * | 1999-03-31 | 2004-02-17 | Microsoft Corporation | Locating information on an optical media disc to maximize the rate of transfer |
| TW201232928A (en) * | 2011-01-17 | 2012-08-01 | Walton Advanced Eng Inc | Data storage device |
-
2013
- 2013-07-17 CN CN201310300602.4A patent/CN104298466B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1395246A (en) * | 2002-06-14 | 2003-02-05 | 清华大学 | Method for implementing virtual image optical disk and and its system hardware structure |
| CN202736057U (en) * | 2012-02-10 | 2013-02-13 | 智点数位有限公司 | Card reader capable of converting disc image files |
Non-Patent Citations (1)
| Title |
|---|
| "不再为光盘而烦恼——虚拟光驱";YXY;《电脑》;20030125(第1期);第91-92页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104298466A (en) | 2015-01-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100662670B1 (en) | How to instantly record or read files on a disc-shaped record carrier | |
| TW200405306A (en) | Write-once type optical disc, and method and apparatus for managing defective areas on write-once type optical disc using TDMA information | |
| CN104484427B (en) | A kind of video file storage device and method | |
| JP2009282752A (en) | Storage device and recording method of file system | |
| US20120324186A1 (en) | Method, apparatus and computer for data operation | |
| CN102262589B (en) | Application server for realizing copying of hard disc driver and method | |
| CN101645048B (en) | Method for realizing computer virtualized evidence obtaining | |
| US8990528B2 (en) | Method for fast format of a fully allocated volume when copied from a space efficient volume | |
| TW201447876A (en) | Method and system for converting partition format | |
| US20040068635A1 (en) | Universal disk format volumes with variable size | |
| KR20090012010A (en) | Optical disc emulation method and optical disc drive using same | |
| US20120005441A1 (en) | Copying apparatus, copying method, memory medium, and program | |
| CN104298466B (en) | Disc reading method and device | |
| US8392169B2 (en) | Simulating virtual optical disc recorder by using a storage device and method for the same | |
| US20140297981A1 (en) | Information processing system, storage device, and backup method | |
| CN105260130A (en) | Read-write method for Seagate hard disk system file | |
| JP2008507797A (en) | Apparatus and method for recording information on a record carrier | |
| CN107967120A (en) | Method for concurrently reading and writing cloud disk contents by desktop cloud | |
| TWI363355B (en) | Method for recovering writing data of disk | |
| CN102902487B (en) | Hard disc data access system | |
| US10042582B2 (en) | Data erasing method | |
| JP5310181B2 (en) | File management method, file management method program, and file management method apparatus | |
| US8032009B2 (en) | Backup management apparatus | |
| CN103700388A (en) | File recording apparatus, file system management method, file recovery method, and changer drive | |
| TWI299861B (en) | Method and apparatus for accessing an optical storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171020 Termination date: 20190717 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |