CN105373339B - A kind of copy method and system of hard disc data - Google Patents
A kind of copy method and system of hard disc data Download PDFInfo
- Publication number
- CN105373339B CN105373339B CN201410431691.0A CN201410431691A CN105373339B CN 105373339 B CN105373339 B CN 105373339B CN 201410431691 A CN201410431691 A CN 201410431691A CN 105373339 B CN105373339 B CN 105373339B
- Authority
- CN
- China
- Prior art keywords
- disk
- hard disk
- subregion
- former
- data
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of copy method of hard disc data and system, includes the following steps: first to hide the drive of destination disk, data is prevented to be written;The partition information of former hard disk is read, hiding for drive is then released, subregion identical with former hard disk is established in destination disk;The file table of each subregion in former hard disk is analyzed, and establishes the file for the same names to be replicated in destination disk;The data information in former hard disk under each file name is read, and data information is copied under the respective file title of destination disk, until the file for copying all subregions is completed.The present invention can reduce the system of re-mounting and install the time of application software, each partition data in former hard disk is bitwise corresponding in turn to and copies corresponding writing module in the corresponding subregion of new hard disk to and is used for the copy instruction that receiving host issues, the data that former hard disk transmits are received, are placed the data in the corresponding subregion of new hard disk according to the arrangement mode of the subregion of former hard disk is corresponding.
Description
Technical field
The present invention relates to data transmission, technical field of memory, a kind of copy method more particularly, to hard disc data and it is
System.
Background technique
Mainstream hard disk has solid state hard disk (SSD disk) and mechanical hard disk (HDD conventional hard) at present.SSD uses flash memory particle
It storing, HDD is stored using magnetic disk, when replace computer hard disc need to reinstall system and popular software, and also
It needs by originally stored data copy into new hard disk, either installation system doubt copy data requires longer
Time;Additionally while being made by GHOST software realization mirror-image system, but for installation software and hard disk in
Data can not then copy, and for hard disk for strike-machine, expensive, inconvenient for operation, hence it is evident that be not suitable for personal use.
Summary of the invention
In order to overcome the shortcomings of having a single function for existing solid state hard disk data safety scrub techniques, the present invention provides a kind of hard
The copy method of disk data, the copy method of the hard disc data are able to achieve autonomous working, not only improve the spirit of device erasing data
Activity, and it is more convenient to use.
For achieving the above object, the present invention adopts the following technical scheme: a kind of copy method of hard disc data, including
Following steps:
A, first the drive of destination disk is hidden, data is prevented to be written;
B, the partition information of former hard disk is read, hiding for drive is then released, is established in destination disk identical as former hard disk
Subregion;
C, the file table of each subregion in former hard disk is analyzed, and establishes the file for the same names to be replicated in destination disk;
D, the data information in former hard disk under each file name is read, and data information is copied to the correspondence of destination disk
Under file name, until the file for copying all subregions is completed.
Further, the partition information in step b includes the size of the quantity of subregion, the format of subregion and subregion, described
It is consistent with the former subregion of hard disk in quantity, format and the size of the new subregion that destination disk is established.
Further, further include following steps in the step b: also needing to read destination disk before destination disk establishes subregion
It with the total capacity of former hard disk, and is compared: when the total capacity of destination disk is less than former hard disk, stopping copy;Total appearance of destination disk
When amount is greater than former hard disk, subregion identical with former hard disk is established, and extra capacity is established into a unformatted subregion.
Further, the file table of each subregion in former hard disk is analyzed in step c specifically: pass through the file to subregion
It carries out by the sequence of the sequence of letter or first letter of pinyin, and successively carries out the reading and analysis of data information to file.
Further, data information includes data file and shortcut path in step d.
Further, the connection for passing through SATA signal in step a connects normally when bridging box with destination disk SATA signal,
Judgement can just be often connected to destination disk, realize the function of detection identification destination disk, then stop the communication with destination disk, realize
The hiding function of the drive of destination disk.
A kind of system of copy method that realizing hard disc data, including processing module, for data processing conversion with
And the calling of each module;
Detection module is connect with the processing module, for the detection to former hard disk and destination disk,
Read module is connect with the processing module, the reading for former hard disc data;
Writing module is connect with the processing module, and the data for destination disk replicate write-in;
Creation module is connect with the processing module, subregion, document creation for destination disk;
Box is bridged, for connecting former hard disk, destination disk and detection module.
Further, bridge joint box includes power module, USB interface and SATA interface interconnected.
The invention has the advantages that exempting from installation system the present invention provides a kind of replacement hard disk and exempting from installation using soft
The method of part and corresponding system can reduce the system of re-mounting and install the time of application software, after issuing copy instruction,
Each partition data in former hard disk is bitwise corresponding in turn to and is copied in the corresponding subregion of new hard disk accordingly
The copy instruction that writing module is issued for receiving host receives the data that former hard disk transmits, according to the subregion of former hard disk
Arrangement mode corresponding place the data in the corresponding subregion of new hard disk.
Detailed description of the invention
Fig. 1 is the flow diagram of the copy method of hard disc data of the present invention.
Fig. 2 is the schematic illustration of present system.
Fig. 3 is the embodiment schematic illustration of present system.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawing
Give presently preferred embodiments of the present invention.But the invention can be realized in many different forms, however it is not limited to this paper institute
The embodiment of description.On the contrary, purpose of providing these embodiments is keeps the understanding to the disclosure more thorough
Comprehensively.
Referring to Fig. 1, the structural schematic diagram of the copy method for the hard disc data of one embodiment of the present invention.
A kind of copy method of hard disc data, includes the following steps:
A, bridge joint box is first passed through to detect identification destination disk, and detailed process is to pass through the company with destination disk SATA signal
It connects, when bridge joint box connects normally with destination disk SATA signal, judgement can just be often connected to destination disk, realize detection identification target
The function of disk then stops the communication with destination disk, realizes that the drive of destination disk is hidden, data is prevented to be written;
B, the total capacity size and partition information of former hard disk are read, which includes the lattice of the quantity of subregion, subregion
The size of formula and subregion, the total capacity of target hard disk is compared with the total capacity of former hard disk: the total capacity of destination disk is less than
When former hard disk, stop copy;When the total capacity of destination disk is greater than former hard disk, subregion identical with former hard disk is established, and will be extra
Capacity establish a unformatted subregion;
Then hiding for drive is released, the foundation new subregion identical with former hard disk in destination disk, the quantity of the new subregion,
Format and size are consistent with the former subregion of hard disk;
C, the file table of each subregion in former hard disk is analyzed, and establishes the file for the same names to be replicated in destination disk;
D, it is carried out by the file to subregion by the sequence of the sequence of letter or first letter of pinyin, and successively file is carried out
The reading and analysis of data information so read the data information in former hard disk under each file name, will then read
Data file and shortcut path copy under the respective file title of destination disk, until the file for copying all subregions is complete
At.
Referring to Fig. 2, a kind of system for the copy method for realizing hard disc data, including processing module, for data
The calling of processing conversion and each module;
Detection module is connect with the processing module, for the detection to former hard disk and destination disk,
Read module is connect with the processing module, the reading for former hard disc data;
Writing module is connect with the processing module, and the data for destination disk replicate write-in;
Creation module is connect with the processing module, subregion, document creation for destination disk;
Box is bridged, for connecting former hard disk, destination disk and detection module, bridge joint box includes power supply mould interconnected
Block, USB interface and SATA interface.
Detailed analysis is carried out to method of the invention and system below: referring to Fig. 3, can pass through in the present embodiment
USB interface connects PC host (connecting former hard disk by PC host), is instructed by the copy that PC host issues, processing module is connected to
After instruction, by detection module by bridge joint box on PC host hard disk and destination disk detect, identify new hard disk simultaneously
The drive of new hard disk is hidden, before the partition information of unread complete former hard disk and data, first without reading and writing new hard disk, is prevented
Data can be written to new hard disk in locking system, cause the subsequent error in copy;
It then continues to execute copy instruction, processing module issues the instruction for reading former hard disk information, and read module can read
To the size of former hard-disk capacity, number of partitions, the size of the format of subregion and each subregion, such as former hard disk total capacity
500GB is divided into 2 subregions, and each partition size is 250GB, zoned format NTFS, total capacity 500GB can be shared two points
Area, the capacity of each subregion are 250GB, and zoned format is that these information of NTFS read out and feed back to processing module, handle mould
Root tuber is compared former hard disk with the total capacity of new hard disk according to the information of feedback, when the total capacity of destination disk is less than former hard disk
It can prompt copy, copy instruction, creation module are continued to execute when the total capacity of destination disk is more than or equal to former hard disk
Established in new hard disk with identical subregion in former hard disk, identifying former fdisk quantity, zoned format, each subregion
Capacity the number of partitions the same with former hard disk, zoned format and subregion capacity are established in new hard disk, if the appearance of new hard disk
Amount is greater than former hard disk, then the capacity having more than former hard disk can be divided into a not used block, such as former hard disk 500GB, had
Two subregions, zoned format NTFS, the capacity of subregion are respectively 250G, and new hard disk is that 1000GB then can establish three in new hard disk
A subregion, wherein first is 250GB, zoned format NTFS, second subregion is 250GB, zoned format NTFS, third
A subregion is 500GB, and state is unformatted subregion, could normal use after needing to format when using later;
Then detection module analyzes the file table in former hard disk, wherein it is successively read the file table of each subregion of former hard disk,
For example there are two subregion C disk and D disks for former hard disk, then read file table all in entire C disk since C disk, count entire C disk
All file table informations are successively read file table all in D disk again after the completion and count file table letter all in D disk
Breath, feeds back to processing module, processing module sends instructions to creation module according to file table information, and creation module is in new hard disk phase
Being established in the file name that will be replicated, such as former disk C disk in corresponding subregion has Windows file name, then can be new
Also identical Windows file name is established in the C disk of hard disk, file name all in former hard disk is all corresponding new hard
It is established in disk;
Then read module reads the data information in former hard disk under each file name, and writing module copies data information
Shellfish copies in new hard disk under corresponding file name, for example has this file name of music in former hard disk D disk, and the inside has
100 songs equally newly also have this file name of music in hard disk D disk, can copy since First song, until
100 songs copy is completed, and the shortcut path that Central Plains hard-disk system file is established also will do it copy, hard disk new in this way
Computer is being plugged in use, the application software of installation also can be used normally, for example install QQ tool, installation in former hard-disk system
Path is in D disk, and shortcut is in C tray-top table face, and the installation of same new hard disk QQ tool is also in D disk, and shortcut is in C tray-top table face.
All data informations all copy in new hard disk in entire original hard disk, wherein speed when can prompt copy data
Time required for degree and completion copy are estimated, for example the speed copied is that 50M is per second, it is contemplated that completion copy after five minutes.
After data information complete copy to new hard disk in former hard disk, copy can be prompted to complete, click and determine, complete copy
Work.
The invention has the advantages that exempting from installation system the present invention provides a kind of replacement hard disk and exempting from installation using soft
The method of part and corresponding system can reduce the system of re-mounting and install the time of application software, after issuing copy instruction,
Each partition data in former hard disk is bitwise corresponding in turn to and is copied in the corresponding subregion of new hard disk accordingly
The copy instruction that writing module is issued for receiving host receives the data that former hard disk transmits, according to the subregion of former hard disk
Arrangement mode corresponding place the data in the corresponding subregion of new hard disk.
Description and application of the invention herein are illustrative, is not wishing to limit the scope of the invention to above-described embodiment
In.The deformation and change of embodiments disclosed herein are possible, the realities for those skilled in the art
The replacement and equivalent various parts for applying example are well known.It should be appreciated by the person skilled in the art that not departing from the present invention
Spirit or essential characteristics in the case where, the present invention can in other forms, structure, arrangement, ratio, and with other components,
Material and component are realized.Without departing from the scope and spirit of the present invention, can to embodiments disclosed herein into
The other deformations of row and change.
Claims (7)
1. a kind of copy method of hard disc data, which comprises the steps of:
A, first the drive of destination disk is hidden, particular by the connection of SATA signal, when bridge joint box and destination disk SATA signal
Connection is normal, and judgement can just be often connected to destination disk, realizes the function of detection identification destination disk, then stops and destination disk
Communication realizes the hiding function of the drive of destination disk, data is prevented to be written;
B, the partition information of former hard disk is read, hiding for drive is then released, is established in destination disk and former identical point of hard disk
Area;
C, the file table of each subregion in former hard disk is analyzed, and establishes the file for the same names to be replicated in destination disk;
D, the data information in former hard disk under each file name is read, and data information is copied to the respective file of destination disk
Under title, until the file for copying all subregions is completed.
2. the copy method of hard disc data according to claim 1, which is characterized in that the partition information in the step b
The format of quantity, subregion including subregion and the size of subregion, the quantity of new subregion established in destination disk, format and big
It is small consistent with the former subregion of hard disk.
3. the copy method of hard disc data according to claim 1, which is characterized in that in the step b further include as
Lower step: the total capacity for reading destination disk and former hard disk respectively is also needed before destination disk establishes subregion, and is compared: destination disk
Total capacity when being less than former hard disk, stop copy;When the total capacity of destination disk is greater than former hard disk, establish and former identical point of hard disk
Area, and extra capacity is established into a unformatted subregion.
4. the copy method of hard disc data according to claim 1, which is characterized in that analyze former hard disk in the step c
In each subregion file table specifically: carried out by the file to subregion by the sequence of letter or first letter of pinyin row
Sequence, and the reading and analysis of data information are successively carried out to file.
5. the copy method of hard disc data according to claim 1, which is characterized in that data information packet in the step d
Include data file and shortcut path.
6. a kind of system of the copy method for the hard disc data for realizing 1 to 5 any one, which is characterized in that including processing module, use
In the calling of processing conversion and each module to data;
Detection module is connect with the processing module, for the detection to former hard disk and destination disk,
Read module is connect with the processing module, the reading for former hard disc data;
Writing module is connect with the processing module, and the data for destination disk replicate write-in;
Creation module is connect with the processing module, subregion, document creation for destination disk;
Box is bridged, for connecting former hard disk, destination disk and detection module.
7. the copy method of hard disc data according to claim 6, which is characterized in that the bridge joint box includes being connected with each other
Power module, USB interface and SATA interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410431691.0A CN105373339B (en) | 2014-08-29 | 2014-08-29 | A kind of copy method and system of hard disc data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410431691.0A CN105373339B (en) | 2014-08-29 | 2014-08-29 | A kind of copy method and system of hard disc data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105373339A CN105373339A (en) | 2016-03-02 |
CN105373339B true CN105373339B (en) | 2019-02-12 |
Family
ID=55375578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410431691.0A Active CN105373339B (en) | 2014-08-29 | 2014-08-29 | A kind of copy method and system of hard disc data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105373339B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273057B (en) * | 2017-06-30 | 2020-05-26 | 联想(北京)有限公司 | Data storage method and system |
CN107688510A (en) * | 2017-08-28 | 2018-02-13 | 郑州云海信息技术有限公司 | A kind of method and system of quick clone hard disc data |
CN107908515A (en) * | 2017-11-16 | 2018-04-13 | 郑州云海信息技术有限公司 | A kind of system and method for test server hard disk large data files transmittability |
CN111931255A (en) * | 2020-04-02 | 2020-11-13 | 深圳云存科技有限公司 | Automatic destroying and copying system |
CN112527208A (en) * | 2020-12-21 | 2021-03-19 | 江苏国科微电子有限公司 | Data copying method, device, system and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1310389A (en) * | 2000-02-21 | 2001-08-29 | 英业达股份有限公司 | Computer hard disk data copying method and system |
CN1746841A (en) * | 2004-09-11 | 2006-03-15 | 鸿富锦精密工业(深圳)有限公司 | The user sets up the system and method that computer recovers CD |
CN202512890U (en) * | 2012-03-30 | 2012-10-31 | 东莞泰克威科技有限公司 | Mobile hard disc system with data transmission and data clone functions |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1241120C (en) * | 2001-08-31 | 2006-02-08 | 联想(北京)有限公司 | Method for backing up and recovering data in hard disk of computer |
CN1645485A (en) * | 2005-01-10 | 2005-07-27 | 北京软通科技有限责任公司 | Method for rapid copying hard disk with protective subareas |
CN103136487B (en) * | 2013-03-26 | 2016-05-25 | 厦门市美亚柏科信息股份有限公司 | A kind of method, Apparatus and system of managing data in hard disk hidden area |
CN103135947B (en) * | 2013-03-26 | 2015-09-09 | 北京奇虎科技有限公司 | A kind of method and apparatus showing Windows drive |
-
2014
- 2014-08-29 CN CN201410431691.0A patent/CN105373339B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1310389A (en) * | 2000-02-21 | 2001-08-29 | 英业达股份有限公司 | Computer hard disk data copying method and system |
CN1746841A (en) * | 2004-09-11 | 2006-03-15 | 鸿富锦精密工业(深圳)有限公司 | The user sets up the system and method that computer recovers CD |
CN202512890U (en) * | 2012-03-30 | 2012-10-31 | 东莞泰克威科技有限公司 | Mobile hard disc system with data transmission and data clone functions |
Also Published As
Publication number | Publication date |
---|---|
CN105373339A (en) | 2016-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109448778B (en) | Method, system and device for testing performance of solid state disk and readable storage medium | |
CN105373339B (en) | A kind of copy method and system of hard disc data | |
CN107346210B (en) | Hard disk data erasing method, server and system | |
US7653781B2 (en) | Automatic RAID disk performance profiling for creating optimal RAID sets | |
TWI442225B (en) | System and method for recovering solid state drive data | |
CN102929748B (en) | Data back up method and device | |
JP5547727B2 (en) | System and method for tracking changes to volumes | |
US10275157B2 (en) | Metadata storage in unused portions of a virtual disk file | |
US9785641B2 (en) | Reducing a backup time of a backup of data files | |
CN102568522A (en) | Hardware performance test method and device | |
JP2008065433A (en) | Computer system and performance tuning method | |
CN105589733B (en) | A kind of data processing method and device | |
US8806162B2 (en) | Switching visibility between virtual data storage entities | |
US10108537B2 (en) | Mechanisms for reproducing storage system metadata inconsistencies in a test environment | |
WO2019084917A1 (en) | Method and apparatus for calculating available capacity of storage system | |
US9965355B2 (en) | System and method for dynamic collection of system management data in a mainframe computing environment | |
JP6634886B2 (en) | Data storage device, data storage device control program, and data storage device control method | |
CN100565467C (en) | The backed up in synchronization apparatus and method that are used for storage device | |
CN106611138B (en) | GHOST file security check method and device | |
US20120030175A1 (en) | System for offloading data analyis overhead from a primary site to a remote site | |
Kuyumdzhiev et al. | Correlation Between Storage Device and Backup and Restore Efficiency in MS SQL Server | |
US9423965B2 (en) | Method and system for writing to and reading from computer readable media | |
TWI793759B (en) | System and method for testing read/write and upgrading on hard disk | |
CN109725855B (en) | Method and device for continuous jump replication | |
US20210034506A1 (en) | Testing a computer program |
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 |