CN105373339A - Hard disk data copy method and system - Google Patents

Hard disk data copy method and system Download PDF

Info

Publication number
CN105373339A
CN105373339A CN201410431691.0A CN201410431691A CN105373339A CN 105373339 A CN105373339 A CN 105373339A CN 201410431691 A CN201410431691 A CN 201410431691A CN 105373339 A CN105373339 A CN 105373339A
Authority
CN
China
Prior art keywords
hard disk
disk
subregion
data
former
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.)
Granted
Application number
CN201410431691.0A
Other languages
Chinese (zh)
Other versions
CN105373339B (en
Inventor
沈金良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN KINGSPEC ELECTRONICS TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN KINGSPEC ELECTRONICS TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHENZHEN KINGSPEC ELECTRONICS TECHNOLOGY Co Ltd filed Critical SHENZHEN KINGSPEC ELECTRONICS TECHNOLOGY Co Ltd
Priority to CN201410431691.0A priority Critical patent/CN105373339B/en
Publication of CN105373339A publication Critical patent/CN105373339A/en
Application granted granted Critical
Publication of CN105373339B publication Critical patent/CN105373339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a hard disk data copy method and system. The method comprises the following steps: firstly hiding a disk identifier of a target disk to prevent data writing; reading partition information of an original hard disk, then removing the hiding of the disk identifier, and establishing partitions as same as those of the original hard disk in the target disk; analyzing a file table of each partition in the original hard disk, and establishing to-be-copied files with same names in the target disk; and reading data information of each file name in the original hard disk, and copying the data information to the corresponding file name of the target disk until the copy of the files of all the partitions is finished. According to the hard disk data copy method and system, the time for reinstalling a system and installing application software can be shortened; data of the partitions in the original hard disk are correspondingly copied to corresponding partitions of a new hard disk in sequence; and a corresponding writing module is used for receiving a copy instruction sent by a host, receiving the data transmitted from the original hard disk, and correspondingly storing the data in the corresponding partitions of the new disk in an arrangement mode of the partitions of the original hard disk.

Description

A kind of copy method of hard disc data and system
Technical field
The present invention relates to data transmission, technical field of memory, especially relate to a kind of copy method and system of hard disc data.
Background technology
Current main flow hard disk has solid state hard disc (SSD dish) and mechanical hard disk (HDD conventional hard).SSD adopts flash memory particle to store, HDD adopts magnetic video disc to store, need system of reinstalling and popular software when changing computer hard disc, also needing by the original data copy stored in new hard disk, is that installation system doubt copy data all needs the longer time; Although in addition can making by GHOST software simulating mirror-image system, then cannot copy for the data in mounting software and hard disk, and for hard disk to strike-machine, expensive, inconvenient operation, significant discomfort is closed individual and is used.
Summary of the invention
In order to overcome the deficiency of the function singleness of existing solid state hard disc data security erase technology, the invention provides a kind of copy method of hard disc data, the copy method of this hard disc data can realize working alone, and not only improves the dirigibility of device erasing data, and uses convenient.
For achieving the above object, the present invention adopts following technical scheme: a kind of copy method of hard disc data, comprises the steps:
A, first the drive of destination disk to be hidden, prevent data from writing;
B, read the partition information of former hard disk, then remove hiding of drive, in destination disk, set up the subregion identical with former hard disk;
C, analyze the file table of each subregion in former hard disk, and set up the file for the same names copied at destination disk;
D, read the data information under each file name in former hard disk, and under data information being copied to the respective file title of destination disk, until the file copying all subregions completes.
Further, the partition information in step b comprises the size of the quantity of subregion, the form of subregion and subregion, and quantity, the form of the described new subregion in destination disk foundation are consistent with the subregion of described former hard disk with size.
Further, in described step b, also comprise the steps: the total volume also needing to read destination disk and former hard disk before destination disk sets up subregion, and compare: when the total volume of destination disk is less than former hard disk, stop copy; When the total volume of destination disk is greater than former hard disk, sets up the subregion identical with former hard disk, and unnecessary capacity is set up a unformatted subregion.
Further, in step c, analyze being specially of the file table of each subregion in former hard disk: by carrying out the order sequence by letter or first letter of pinyin to the file of subregion, and successively file is carried out to reading and the analysis of data message.
Further, in steps d, data information comprises data file and shortcut path.
Further, by the connection of SATA signal in step a, when bridge joint box is connected normally with destination disk SATA signal, judgement normally can be connected to destination disk, realize detecting and identify the function of destination disk, then stop the communication with destination disk, the function that the drive of realize target dish is hidden.
Realize a system for the copy method of hard disc data, comprise processing module, for calling the process of data conversion and each module;
Detection module, is connected with described processing module, for the detection to former hard disk and destination disk,
Read module, is connected with described processing module, for the reading of former hard disc data;
Writing module, is connected with described processing module, and the data Replica for destination disk writes;
Creation module, is connected with described processing module, for subregion, the document creation of destination disk;
Bridge joint box, for connecting former hard disk, destination disk and detection module.
Further, bridge joint box comprises interconnective power module, USB interface and SATA interface.
The invention has the beneficial effects as follows, the invention provides a kind of hard disk of changing exempt from installation system and exempt from the method for application software and corresponding system are installed, the system of re-mounting can be reduced and the time of application software is installed, after sending copy instruction, 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 be used for the copy instruction that Receiving Host issues, receive the data that former hard disk transmits, according to the arrangement mode of the subregion of former hard disk corresponding by deposit data in the subregion that new hard disk is corresponding.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the copy method of hard disc data of the present invention.
Fig. 2 is the principle schematic of present system.
Fig. 3 is the embodiment principle schematic of present system.
Embodiment
For the ease of understanding the present invention, below with reference to relevant drawings, the present invention is described more fully.Preferred embodiment of the present invention is given in accompanying drawing.But the present invention can realize in many different forms, is not limited to embodiment described herein.On the contrary, provide the object of these embodiments be make the understanding of disclosure of the present invention more comprehensively thorough.
Referring to Fig. 1, is the structural representation of the copy method of the hard disc data of one embodiment of the present invention.
A copy method for hard disc data, comprises the steps:
A, first detect identification destination disk by bridge joint box, its idiographic flow is by the connection with destination disk SATA signal, when bridge joint box is connected normally with destination disk SATA signal, judgement normally can be connected to destination disk, realize detecting the function identifying destination disk, then stop the communication with destination disk, the drive of realize target dish is hidden, and prevents data from writing;
B, the total volume size reading former hard disk and partition information, this partition information comprises the size of the quantity of subregion, the form of subregion and subregion, the total volume of the total volume of target hard disk and former hard disk is compared: when the total volume of destination disk is less than former hard disk, stop copy; When the total volume of destination disk is greater than former hard disk, sets up the subregion identical with former hard disk, and unnecessary capacity is set up a unformatted subregion;
Then remove hiding of drive, in destination disk, set up the new subregion identical with former hard disk, quantity, the form of this new subregion are consistent with the subregion of described former hard disk with size;
C, analyze the file table of each subregion in former hard disk, and set up the file for the same names copied at destination disk;
D, by the file of subregion is carried out by letter or first letter of pinyin order sequence, and successively file is carried out to reading and the analysis of data message, data information in the former hard disk of reading like this under each file name, then under the data file read and shortcut path being copied to the respective file title of destination disk, until the file copying all subregions completes.
Refer to Fig. 2, a kind of system realizing the copy method of hard disc data, comprises processing module, for calling the process of data conversion and each module;
Detection module, is connected with described processing module, for the detection to former hard disk and destination disk,
Read module, is connected with described processing module, for the reading of former hard disc data;
Writing module, is connected with described processing module, and the data Replica for destination disk writes;
Creation module, is connected with described processing module, for subregion, the document creation of destination disk;
Bridge joint box, for connecting former hard disk, destination disk and detection module, bridge joint box comprises interconnective power module, USB interface and SATA interface.
Detailed analysis is carried out to method of the present invention and system below: refer to Fig. 3, PC main frame (connecting former hard disk by PC main frame) is connected in the present embodiment by USB interface, the copy instruction issued by PC main frame, after processing module receives instruction, hard disk on PC main frame and destination disk are detected by bridge joint box by detection module, identify new hard disk and the drive of new hard disk is hidden, before the partition information not read former hard disk and data, first do not carry out reading and writing new hard disk, anti-locking system can to new hard disk write data, cause follow-up copy time make mistakes,
Then continue to perform copy instruction, processing module sends the instruction of reading former hard disk information, read module can read the size of former hard-disk capacity, number of partitions, the form of subregion and the size of each subregion, such as former hard disk total volume 500GB, be divided into 2 subregions, each partition size is 250GB, zoned format NTFS, can by total volume 500GB, have two subregions, the capacity of each subregion is 250GB, zoned format is that these information of NTFS read out and feed back to processing module, processing module compares according to the total volume of feedack to former hard disk and new hard disk, can point out cannot copy when the total volume of destination disk is less than former hard disk, continue when the total volume of destination disk is greater than or equal to former hard disk to perform copy instruction, creation module sets up the subregion identical with former hard disk in new hard disk, identifying former fdisk quantity, zoned format, the capacity of each subregion is set up with the same number of partitions of former hard disk in new hard disk, zoned format and subregion capacity, if the capacity of new hard disk is greater than former hard disk, then the capacity had more than former hard disk can be divided into a untapped block, such as former hard disk 500GB, there are two subregions, zoned format is NTFS, the capacity of subregion is respectively 250G, new hard disk is that 1000GB then can set up three subregions in new hard disk, wherein first is 250GB, zoned format is NTFS, second subregion is 250GB, zoned format is NTFS, 3rd subregion is 500GB, state is unformatted subregion, could normally use after needing format during later use,
Then detection module analyzes the file table in former hard disk, wherein read the file table of each subregion of former hard disk successively, such as former hard disk has two subregion C dishes and D dish, from C dish, then read file tables all in whole C dish, add up the file table information that whole C dish is all, read all file tables in D dish successively again after completing and add up file table information all in D dish, feed back to processing module, processing module sends instructions to creation module according to file table information, creation module sets up the file name that will copy in the subregion that new hard disk is corresponding, Windows file name is had in such as former disk C dish, then can also set up identical Windows file name in the C dish of new hard disk, by all corresponding the setting up in new hard disk of file names all in former hard disk,
Then read module reads the data information in former hard disk under each file name, under data information copy is copied to file name corresponding in new hard disk by writing module, this file name of music is had in such as former hard disk D dish, there are 100 songs the inside, also this file name of music is had in same new hard disk D dish, can copy from First song, until 100 songs have copied, the shortcut path of its Central Plains hard-disk system file set up also can copy, so new hard disk is when plugging computer and using, the application software of installing also can normally use, in such as former hard-disk system, QQ instrument is installed, installation path is at D dish, shortcut is in C tray-top table face, the installation of same new hard disk QQ instrument is also at D dish, shortcut is in C tray-top table face.
Data informations all in whole former hard disk all copies in new hard disk, speed when wherein can point out copies data and complete copy estimate required for time, the speed such as copied is that 50M is per second, estimates to complete copy after 5 minutes.
After data information in former hard disk copies new hard disk completely to, copy can be pointed out to complete, and click is determined, completes copy work.
The invention has the beneficial effects as follows, the invention provides a kind of hard disk of changing exempt from installation system and exempt from the method for application software and corresponding system are installed, the system of re-mounting can be reduced and the time of application software is installed, after sending copy instruction, 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 be used for the copy instruction that Receiving Host issues, receive the data that former hard disk transmits, according to the arrangement mode of the subregion of former hard disk corresponding by deposit data in the subregion that new hard disk is corresponding.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Distortion and the change of embodiment disclosed are here possible, are known for the replacement of embodiment those those of ordinary skill in the art and the various parts of equivalence.Those skilled in the art are noted that when not departing from spirit of the present invention or essential characteristic, the present invention can in other forms, structure, layout, ratio, and to realize with other assembly, material and parts.When not departing from the scope of the invention and spirit, can other distortion be carried out here to disclosed embodiment and change.

Claims (8)

1. a copy method for hard disc data, is characterized in that, comprises the steps:
A, first the drive of destination disk to be hidden, prevent data from writing;
B, read the partition information of former hard disk, then remove hiding of drive, in destination disk, set up the subregion identical with former hard disk;
C, analyze the file table of each subregion in former hard disk, and set up the file for the same names copied at destination disk;
D, read the data information under each file name in former hard disk, and under data information being copied to the respective file title of destination disk, until the file copying all subregions completes.
2. the copy method of hard disc data according to claim 1, it is characterized in that, partition information in described step b comprises the size of the quantity of subregion, the form of subregion and subregion, and quantity, the form of the described new subregion in destination disk foundation are consistent with the subregion of described former hard disk with size.
3. the copy method of hard disc data according to claim 1, it is characterized in that, in described step b, also comprise the steps: the total volume also needing to read destination disk and former hard disk before destination disk sets up subregion, and compare: when the total volume of destination disk is less than former hard disk, stop copy; When the total volume of destination disk is greater than former hard disk, sets up the subregion identical with former hard disk, and unnecessary capacity is set up a unformatted subregion.
4. the copy method of hard disc data according to claim 1, it is characterized in that, being specially of the file table of each subregion in former hard disk is analyzed: by carrying out the order sequence by letter or first letter of pinyin to the file of subregion, and successively file is carried out to reading and the analysis of data message in described step c.
5. the copy method of hard disc data according to claim 1, is characterized in that, in described steps d, data information comprises data file and shortcut path.
6. the copy method of hard disc data according to claim 1, it is characterized in that, by the connection of SATA signal in described step a, when bridge joint box is connected normally with destination disk SATA signal, judgement normally can be connected to destination disk, realize detecting and identify the function of destination disk, then stop the communication with destination disk, the function that the drive of realize target dish is hidden.
7. realize a system for the copy method of the hard disc data of 1 to 6 any one, it is characterized in that, comprise processing module, for calling the process of data conversion and each module;
Detection module, is connected with described processing module, for the detection to former hard disk and destination disk,
Read module, is connected with described processing module, for the reading of former hard disc data;
Writing module, is connected with described processing module, and the data Replica for destination disk writes;
Creation module, is connected with described processing module, for subregion, the document creation of destination disk;
Bridge joint box, for connecting former hard disk, destination disk and detection module.
8. the copy method of hard disc data according to claim 1, is characterized in that, described bridge joint box comprises interconnective power module, USB interface and SATA interface.
CN201410431691.0A 2014-08-29 2014-08-29 A kind of copy method and system of hard disc data Active CN105373339B (en)

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 true CN105373339A (en) 2016-03-02
CN105373339B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273057A (en) * 2017-06-30 2017-10-20 联想(北京)有限公司 Date 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310389A (en) * 2000-02-21 2001-08-29 英业达股份有限公司 Computer hard disk data copying method and system
CN1545657A (en) * 2001-08-31 2004-11-10 () 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
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
CN103136487A (en) * 2013-03-26 2013-06-05 厦门市美亚柏科信息股份有限公司 Method, device and system for managing data in hard disc hidden area
CN103135947A (en) * 2013-03-26 2013-06-05 北京奇虎科技有限公司 Method and device for displaying Windows disk letters

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310389A (en) * 2000-02-21 2001-08-29 英业达股份有限公司 Computer hard disk data copying method and system
CN1545657A (en) * 2001-08-31 2004-11-10 () Method for backing up and recovering data in hard disk of computer
US20050015652A1 (en) * 2001-08-31 2005-01-20 Dong Han Method for backing up and recovering data in the hard disk of a computer
CN1746841A (en) * 2004-09-11 2006-03-15 鸿富锦精密工业(深圳)有限公司 The user sets up the system and method that computer recovers CD
CN1645485A (en) * 2005-01-10 2005-07-27 北京软通科技有限责任公司 Method for rapid copying hard disk with protective subareas
CN202512890U (en) * 2012-03-30 2012-10-31 东莞泰克威科技有限公司 Mobile hard disc system with data transmission and data clone functions
CN103136487A (en) * 2013-03-26 2013-06-05 厦门市美亚柏科信息股份有限公司 Method, device and system for managing data in hard disc hidden area
CN103135947A (en) * 2013-03-26 2013-06-05 北京奇虎科技有限公司 Method and device for displaying Windows disk letters

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273057A (en) * 2017-06-30 2017-10-20 联想(北京)有限公司 Date 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

Also Published As

Publication number Publication date
CN105373339B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
US9292214B2 (en) Systems and methods for migrating data
CN109448778B (en) Method, system and device for testing performance of solid state disk and readable storage medium
CN102929748B (en) Data back up method and device
CN105373339A (en) Hard disk data copy method and system
CN107346210B (en) Hard disk data erasing method, server and system
US10168920B2 (en) Duplexing file system data
CN103955433A (en) Shingled magnetic recording hard disk, and method and device for writing data in shingled magnetic recording hard disk
US9087014B1 (en) Tape backup and restore in a disk storage environment
CN102147741A (en) Method for rapidly installing linux operating system by using mobile hard disc
CN103955440A (en) Nonvolatile storage equipment and method of carrying out data manipulation therethrough
CN101075210B (en) Apparatus and method for partitioning hard disk without reboot
US10042570B2 (en) Tape backup and restore in a disk storage environment with intelligent data placement
US20140365724A1 (en) System and method for converting disk partition format
GB2538621A (en) Verification of storage media upon deployment
CN104679722A (en) Method and system for data table multi-dimension
CN103631682A (en) Data backup implement method and device
CN103164172A (en) Data flow storage method and device
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
CN102789425B (en) Based on the file read/write method of FLASH storage medium
CN108052441A (en) A kind of test method, system, device and the storage medium of hard disk performance level
CN104199621A (en) Hard disk management system
CN109416617A (en) Duplication between heterogeneous storage system
US11115056B2 (en) Location selection based on erasure code techniques
CN103049391A (en) Data processing method, data format and equipment
CN106611138B (en) GHOST file security check method and device

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