File copying method and device, equipment and storage medium

A file copying and file technology, applied in the field of data interaction, can solve the problems of long verification time, poor autonomy, and reduce user experience of copying data, so as to ensure integrity and reduce verification time

Inactive Publication Date: 2019-11-15
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing data copy verification method has poor autonomy, and the verification takes a long time
Especially for the copying of large batches of data, whether it is a manual verification method or a specific file verification algorithm, the user needs to use or wait for a long time to check or obtain the verification result of the file copy, and based on the user's failure to retrieve the copy The files are copied again, which reduces the user experience of users copying data, and some files that fail to be copied cannot be retrieved because they are not re-copied in time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File copying method and device, equipment and storage medium
  • File copying method and device, equipment and storage medium
  • File copying method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 It is a flow chart of a file copy method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where files such as text and images are copied from the memory card of an electronic device to other storage media such as a mobile hard disk. The method It can be executed by a file copying device. The method specifically includes the following steps:

[0029] S110. When it is detected that the data copying of each file is completed, check whether the data of the file is based on the first length data at the end of the file, or according to the second length data at the beginning of the file and the third length data at the end of the file. Copy complete.

[0030] In a specific embodiment of the present invention, when the user copies the file data from the memory card of the electronic device to a storage medium such as a hard disk, the amount of file data to be copied at one time is not necessarily the same, and usually...

Embodiment 2

[0040] On the basis of the first embodiment above, this embodiment provides a preferred implementation of a file copy method, which can automatically repair and continue to copy file data when there are logical bad sectors on the hard disk. figure 2 A flow chart of a file copy method provided by Embodiment 2 of the present invention, such as figure 2 As shown, the method includes the following specific steps:

[0041] S210. If during the data copying process, it is detected that the hard disk is interrupted due to logical bad sectors, the hard disk is automatically mounted through the pre-configured automatic mounting information, and data is continued to be copied.

[0042] In a specific embodiment of the present invention, the logical bad track of the hard disk refers to the situation that the verification information on the magnetic track does not match the data and servo information of the magnetic track, and then the logical bad track of the hard disk will cause the int...

Embodiment 3

[0050] On the basis of the first embodiment above, this embodiment provides a preferred implementation of a file copy method, which can automatically repair and continue to copy file data when an I / O interface fails. image 3 A flow chart of a file copy method provided by Embodiment 3 of the present invention, such as image 3 As shown, the method includes the following specific steps:

[0051] S310. If during the data copying process, it is detected that the hard disk reading and writing failure caused by an I / O interface error is detected, the control terminates the hard disk communication and disconnects the power supply so that the hard disk recognizes and repairs the file system error, and controls the hard disk to be powered on again and resumes communication. The hard disk retransmits data.

[0052] In the specific embodiment of the present invention, the I / O interface connects the computer I / O circuit and the peripheral equipment through the system bus, and is a mediu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a file copying method and device, equipment and a storage medium. The method comprises the steps that when it is detected that data copying of each file is completed, whether the data of the files are completely copied or not is checked according to first length data located at the tails of the files or according to second length data located at the headsof the files and third length data located at the tails of the files; and if the data of the file is not completely copied, a hard disk is controlled to delete the copied data of the file, and the file is copied again. According to the embodiment of the invention, a single file is subjected to short verification in time in a data copying process, the file checking time is shortened, the incompletely copied files are copied again in time after short checking, the integrity of all file data is automatically guaranteed in the file copying process, manual intervention is not needed, the file copying efficiency is improved, and the copying cost is reduced.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data interaction, and in particular to a file copying method, device, device and storage medium. Background technique [0002] With the continuous innovation and popularization of electronic devices, more and more embedded computer electronic devices are used in people's life and work to record and collect information such as text and images in daily life, and after a period of time will Files such as text and images are copied from the memory card of the electronic device to other storage media such as mobile hard disks to permanently back up and save the data. The integrity of the data copy is then of paramount importance. [0003] In the existing data copying method, the user needs to manually check whether each file is completely copied by opening each file in turn after all the data is copied. Or use a specific file verification algorithm to calculate the corresponding fil...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/182G06F16/11
Inventor 梁子铭
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products