Method and device for formatting hard disk

A hard disk formatting and hard disk technology, applied in the field of data storage and calling, can solve the problems of long time consumption, inability to use DVR real-time preview and playback, etc., and achieve the effect of improving flexibility and convenience

Active Publication Date: 2012-10-17
HANGZHOU HIKVISION DIGITAL TECH
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] In the existing method of hard disk formatting, it is necessary to suspend all task threads in the system before formatting the hard disk, and after the formatting of the hard disk is completed, resume the previously suspended task threads of the system. No operation is allowed during the process of formatting. If the hard disk such as DVR is formatted, if the formatting takes a long time, the DVR cannot be used for real-time preview, playback, etc. related to video surveillance during this period. operation
The existing hard disk formatting method needs to be further improved in terms of formatting flexibility and convenience

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
  • Method and device for formatting hard disk
  • Method and device for formatting hard disk
  • Method and device for formatting hard disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0083] In the hard disk formatting method of Embodiment 1, the formatting callback function is a hard disk formatting status refresh callback function, and accordingly, the formatting information at least includes: capacity, attribute, remaining space, and status, and may further include a type. The hard disk formatting status refresh callback function mentioned in the first embodiment is a computer program that can be called by a main program and can obtain the operation result of formatting information after running; the main program is running in the first operating system, Calling the Format command in DOS to complete a program for formatting the hard disk can be the function including the Format command running in the first operating system mentioned in the following embodiments.

[0084] Step 301: trigger hard disk formatting according to the formatting instruction, and register a hard disk formatting status refresh callback function;

[0085] This step can specifically ...

Embodiment 2

[0097] In the hard disk formatting method of Embodiment 2, the formatting callback function is a hard disk formatting progress refresh callback function, and correspondingly, the formatting information includes at least formatting and a percentage. The hard disk formatting progress refresh callback function mentioned in the second embodiment is a computer program that can be called by the main program and can obtain the operation result of formatting information after running; the main program is running in the first operating system, Calling the Format command in the DO to complete a program for formatting the hard disk can be the function including the Format command mentioned in the following embodiments.

[0098] Step 401: trigger hard disk formatting according to the input command, and register the hard disk formatting progress refresh callback function;

[0099] This step can specifically adopt the same method as step 201. The difference is that the obtained hard disk in...

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 invention provides a method for formatting a hard disk. The method comprises the following steps of: (A), triggering hard disk formatting according to a formatting instruction, and registering a formatting callback function; (B), filtering and screening the hard disk to be formatted according to disk information carried by the formatting callback function; and (C), starting an established hard disk formatting thread, formatting the filtered hard disk through a magnetic disk operating system (DOS), and outputting formatting information during formatting through the formatting callback function. The invention also provides a device for formatting the hard disk. By adopting the method and the device, other types of operation can be executed when formatting is executed, so that the flexibility and the convenience in formatting are improved.

Description

technical field [0001] The invention relates to data storage and call technology, in particular to a method and device for formatting a hard disk. Background technique [0002] At present, in the process of managing the hard disk, such as the management of the existing digital video recorder (Digital Video Recorder, DVR), it is inseparable from the formatting of the hard disk. The existing method of formatting the hard disk usually adopts exclusive format, that is, other operations are not allowed on the hard disk being formatted or preparing to be formatted during the formatting process. [0003] figure 1 Method for formatting an existing hard drive. Combine now figure 1 , to describe the existing hard disk formatting method, as follows: [0004] Step 101: extract hard disk information and output hard disk management list; [0005] The hard disk information mentioned in this step includes at least drive letter and hard disk attribute information; the hard disk manageme...

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): G06F3/06
Inventor 张鹏举
Owner HANGZHOU HIKVISION DIGITAL TECH
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