CN109597715A - A kind of disk restorative procedure, device and equipment - Google Patents

A kind of disk restorative procedure, device and equipment Download PDF

Info

Publication number
CN109597715A
CN109597715A CN201811473320.3A CN201811473320A CN109597715A CN 109597715 A CN109597715 A CN 109597715A CN 201811473320 A CN201811473320 A CN 201811473320A CN 109597715 A CN109597715 A CN 109597715A
Authority
CN
China
Prior art keywords
disk
repaired
reparation
mark
restoration information
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.)
Pending
Application number
CN201811473320.3A
Other languages
Chinese (zh)
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 Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201811473320.3A priority Critical patent/CN109597715A/en
Publication of CN109597715A publication Critical patent/CN109597715A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of disk restorative procedure, device and equipment.Wherein, method includes: to have detected whether disk reparation mark before running client-side program;If so, then obtaining disk restoration information, wherein the disk restoration information includes the mark of disk to be repaired and/or the mark of disk areas to be repaired;Disk to be repaired and/or disk areas to be repaired are repaired according to the disk restoration information.The embodiment of the present invention solves the problems, such as that not caused enough the disk in free memory space repairs mistake or crashes when disk reparation, bigger memory headroom can be reserved for disk reparation, disk reparation is gone on smoothly, a possibility that breaking down in disk repair process is reduced.

Description

A kind of disk restorative procedure, device and equipment
Technical field
The present embodiments relate to vehicle drive control technology more particularly to a kind of disk restorative procedures, device and equipment.
Background technique
In some electronic equipments, the storage equipment such as usual external USB flash disk, mobile hard disk (hereinafter referred to as disk), for depositing Store up the content-datas such as text, audio and video.During disk carries out data storage, electronic equipment power down shutdown or disk It is disconnected connection relationship with electronic equipment, disk file system is be easy to cause to malfunction, needs to carry out disk reparation, or to disk It reformats to repair.Such as have the set-top box of personal video recorder functionality.
Original the file information can be retained by carrying out unformatted reparation to disk, but run disk fix tool, and one As need more memory headroom, and the memory of the bigger needs of disk space is more.For some electronic equipments, often By the control of cost, memory is only sufficient to operate normally.Disk reparation is carried out when free memory space is inadequate, it may appear that repair wrong Accidentally, it or even crashes.
Summary of the invention
The embodiment of the present invention provides a kind of disk restorative procedure, device and equipment, be embodied as disk reparation increase it is remaining Memory goes on smoothly disk reparation.
In a first aspect, the embodiment of the invention provides a kind of disk restorative procedures, this method comprises:
Before running client-side program, disk reparation mark has been detected whether;
If so, then obtaining disk restoration information, wherein the disk restoration information include disk to be repaired mark and/ Or the mark of disk areas to be repaired;
Disk to be repaired and/or disk areas to be repaired are repaired according to the disk restoration information.
Optionally, before having detected whether disk reparation mark, further includes:
The interface of the external disk to be repaired is initialized.
Optionally, before having detected whether disk reparation mark, further includes:
One or more of AV interface, HDMI interface or video card are initialized, to show the state of disk reparation.
Optionally, the disk reparation label with disk restoration information is generated after disk repair function is triggered 's.
Second aspect, the embodiment of the invention also provides a kind of disk prosthetic device, which includes:
It repairs mark and checks module, for having detected whether disk reparation mark before running client-side program;
Restoration information obtains module, for obtaining disk restoration information, wherein the magnetic when there is disk reparation mark Disk restoration information includes the mark of disk to be repaired and/or the mark of disk areas to be repaired;
Disk repair module is used for according to the disk restoration information to disk to be repaired and/or disk areas to be repaired It is repaired.
Optionally, disk prosthetic device further include:
Initialization module, for before having detected whether disk reparation mark, by connecing for the external disk to be repaired Mouth is initialized.
Optionally, disk prosthetic device further include:
Initialization module is shown, for initializing AV interface, HDMI interface before having detected whether disk reparation mark Or one or more of video card, to show the state of disk reparation.
Optionally, the disk reparation label with disk restoration information is generated after disk repair function is triggered 's.
The third aspect, the embodiment of the invention also provides a kind of equipment, which is provided with the interface of external storage equipment, The equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the disk restorative procedure as described in any in the embodiment of the present invention.
Optionally, equipment provided in an embodiment of the present invention is DTV STB, digital TV integrated machine or OTT machine top At least one of box.
The embodiment of the present invention before running client-side program by having detected whether disk reparation mark, when needing to carry out When disk is repaired, repaired before running client-side program, free memory space not enough causes when solving disk reparation Disk the problem of repairing mistake or crashing, bigger memory headroom can be reserved for disk reparation, make disk repair smoothly into Row reduces a possibility that breaking down in disk repair process.
Detailed description of the invention
Fig. 1 is the flow chart of the disk restorative procedure in the embodiment of the present invention one;
Fig. 2 is the structural schematic diagram of the disk prosthetic device in the embodiment of the present invention two;
Fig. 3 is the structural schematic diagram of the equipment in the embodiment of the present invention three.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart for the disk restorative procedure that the embodiment of the present invention one provides, and the present embodiment is applicable to disk and repairs Multiple situation, wherein disk includes one of USB flash disk and mobile hard disk or a variety of, and this method can be real by disk prosthetic device It is existing, can specifically be implemented by the software and/or hardware in equipment, the device can integrate in it is any can setting with external drive In standby, optionally set-top box device.As shown in Figure 1, disk restorative procedure specifically includes:
S110, before running client-side program, detected whether disk reparation mark.
Wherein, client-side program refers to the system program of an equipment, the result of system program operation be user with The application interface that equipment interacts can realize the correlation function of equipment by the operation in application interface.
Usually in an equipment starting operation, carried out first by boots such as boot, cfe after power-up Hardware check, judges whether hardware configuration meets service condition, executes if meeting condition and loads accordingly in storage equipment Program, and then some hardware devices, such as processor, device bus and hard disk are initialized, then Boot Dernel, kernel operate Load document system after coming, final step are activation system program.In the present embodiment, before starting client-side program, inspection Whether survey has disk reparation mark.Specifically, disk, which repairs mark, to be generated after disk repair function is triggered.It can be with It is user during using equipment, disk repair function is triggered, alternatively, equipment is repaired automatically after disk failure Reinspection is surveyed, if detecting the disk repaired, writes disk reparation mark.
Further, before detecting disk reparation mark, it is also necessary to carry out the interface of the external disk to be repaired Initialization makes equipment and disk establish connection.
S120, when detecting disk reparation mark, disk restoration information is obtained, wherein the disk restoration information includes The mark of disk to be repaired and/or the mark of disk areas to be repaired.
When having detected disk reparation mark, then corresponding disk restoration information is obtained according to reparation mark, wherein magnetic Disk restoration information includes the mark of disk to be repaired and/or the mark of disk areas to be repaired.The mark of disk to be repaired is unique The information for identifying disk to be repaired, may indicate that be damaged which disk needs repair be in numerous disks.Into one Step, it can be the reparation of entire disk to the reparation of disk, be also possible to the reparation in part disk storage region, for example, When one disk is divided into tetra- subregions of A, B, C and D, repaired wherein the content of only A subregion is impaired, then in A Subregion addition is repaired mark and can only be repaired to A subregion.It, can also be by multiple disks or not during reparation Multiple subregions with disk are repaired.
S130, disk to be repaired and/or disk areas to be repaired are repaired according to the disk restoration information.
After getting disk restoration information, the magnetic that the disk repaired and/or needs are repaired can be determined Disk area, and then start disk reparation.
Disk reparation is carried out before running client-side program, it can will be under the storage space reduction that run client-side program Come, increases free memory, all leave operation check disk for.Meanwhile disk reparation and client-side program are neither mutual It influences.
In a specific embodiment, use set-top box device as test prototype, memory headroom 128MB, machine Before top box runs client-side program after powering on, free memory has 32 to 33MB, if (i.e. machine top after client-side program stable operation Box rise machine after normal play go out video) free memory about 8.3MB.And disk restorative procedure provided by the present invention is used to carry out Disk reparation leaves the free memory of operation check disk for, there is 29 to 30MB, FAT32 that can successfully to 16GB and 32GB The USB flash disk of format carries out disk reparation.And disk restorative procedure in the prior art, the USB flash disk of 16GB, FAT32 format is carried out Disk reparation, it may appear that lead to the failure because of low memory.
Further, when disk reparation mark is not detected, client-side program is continued to run, completes equipment starting.
In one embodiment, before having detected whether disk reparation mark, AV interface, HDMI can also be initialized One or more of interface or video card, to show the state of disk reparation.So user can recognize disk reparation in real time Progress situation.
In a preferred embodiment, according to the independent miniature system dedicated for running check disk System, can be further optimized, cut during kernel and file system initialization, increase free memory, to transport Row check disk, to guarantee the trouble-free operation of disk reparation.
The technical solution of the present embodiment, by having detected whether disk reparation mark before running client-side program, when It when needing to carry out disk reparation, is repaired before running client-side program, free memory space when solving disk reparation The problem of not caused enough disk repairs mistake or crashes can reserve bigger memory headroom for disk reparation, repair disk It goes on smoothly again, reduces a possibility that breaking down in disk repair process.
Embodiment two
Fig. 2 is a kind of structural schematic diagram for disk prosthetic device that inventive embodiments two provide.The embodiment of the present invention can fit The case where repairing for disk, wherein disk includes one of USB flash disk and mobile hard disk or a variety of.
As shown in Fig. 2, disk prosthetic device in the embodiment of the present invention, comprising: repair mark and check module 210, repair letter Breath obtains module 220 and disk repair module 230.
Wherein, it repairs mark and checks module 210, for having detected whether disk reparation mark before running client-side program Will;Restoration information obtains module 220, for obtaining disk restoration information, wherein the disk when there is disk reparation mark Restoration information includes the mark of disk to be repaired and/or the mark of disk areas to be repaired;Disk repair module 230 is used for root Disk to be repaired and/or disk areas to be repaired are repaired according to the disk restoration information.
The technical solution of the present embodiment, by having detected whether disk reparation mark before running client-side program, when It when needing to carry out disk reparation, is repaired before running client-side program, free memory space when solving disk reparation The problem of not caused enough disk repairs mistake or crashes can reserve bigger memory headroom for disk reparation, repair disk It goes on smoothly again, reduces a possibility that breaking down in disk repair process.
Further, disk prosthetic device further include:
Initialization module, for before having detected whether disk reparation mark, by connecing for the external disk to be repaired Mouth is initialized.
Optionally, disk prosthetic device further include:
Initialization module is shown, for initializing AV interface, HDMI interface before having detected whether disk reparation mark Or one or more of video card, to show the state of disk reparation.
Optionally, the disk reparation label with disk restoration information is generated after disk repair function is triggered 's.
Disk prosthetic device provided by the embodiment of the present invention can be performed disk provided by any embodiment of the invention and repair Compound method has the corresponding functional module of execution method and beneficial effect.
Embodiment three
Fig. 3 is the structural schematic diagram in the embodiment of the present invention three.Fig. 3, which is shown, to be suitable for being used to realizing embodiment of the present invention Example devices 312 block diagram.The equipment 312 that Fig. 3 is shown is only an example, should not be to the function of the embodiment of the present invention Any restrictions are brought with use scope.The equipment 312 is preferably set-top box device.
As shown in figure 3, equipment 312 is showed in the form of universal computing device.The component of equipment 312 may include but unlimited In one or more processor or processing unit 316, system storage 328, different system components (including system is connected Memory 328 and processing unit 316) bus 318.
Bus 318 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 312 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment The usable medium of 312 access, including volatile and non-volatile media, moveable and immovable medium, such as USB flash disk move The readable storage medium storing program for executing such as dynamic hard disk.
System storage 328 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 330 and/or cache memory 332.Equipment 312 may further include other removable/not removable Dynamic, volatile/non-volatile computer system storage medium.Only as an example, storage system 334 can be used for read and write can not Mobile, non-volatile magnetic media (Fig. 3 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 3, Ke Yiti For the disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to moving non-volatile light The CD drive of disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver It can be connected by one or more data media interfaces with bus 318.Memory 328 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 340 with one group of (at least one) program module 342, can store in such as memory In 328, such program module 342 includes but is not limited to operating system, one or more application program, other program modules And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 342 Usually execute the function and/or method in embodiment described in the invention.
Equipment 312 can also be logical with one or more external equipments 314 (such as keyboard, sensing equipment, display 324 etc.) Letter, can also be enabled a user to one or more equipment interact with the equipment 312 communicate, and/or with make the equipment 312 Any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment communicates.This Kind communication can be carried out by input/output (I/O) interface 322.Also, equipment 312 can also by network adapter 320 with One or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as Shown in figure, network adapter 320 is communicated by bus 318 with other modules of equipment 312.It should be understood that although not showing in Fig. 3 Out, other hardware and/or software module can be used with bonding apparatus 312, including but not limited to: microcode, device driver, superfluous Remaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 316 by the program that is stored in system storage 328 of operation, thereby executing various function application with And data processing, such as realize disk restorative procedure provided by the embodiment of the present invention, this method specifically includes that
Before running client-side program, disk reparation mark has been detected whether;
If so, then obtaining disk restoration information, wherein the disk restoration information include disk to be repaired mark and/ Or the mark of disk areas to be repaired;
Disk to be repaired and/or disk areas to be repaired are repaired according to the disk restoration information.
Illustratively, equipment provided in an embodiment of the present invention is DTV STB, digital TV integrated machine or OTT machine At least one of top box.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of disk restorative procedure characterized by comprising
Before running client-side program, disk reparation mark has been detected whether;
If so, then obtaining disk restoration information, wherein the disk restoration information include disk to be repaired mark and/or to Repair the mark of disk areas;
Disk to be repaired and/or disk areas to be repaired are repaired according to the disk restoration information.
2. the method according to claim 1, wherein before having detected whether disk reparation mark, further includes:
The interface of the external disk to be repaired is initialized.
3. method according to claim 1 or 2, which is characterized in that before having detected whether disk reparation mark, also wrap It includes:
One or more of AV interface, HDMI interface or video card are initialized, to show the state of disk reparation.
4. the method according to claim 1, wherein the disk reparation label and disk restoration information are in magnetic What disk repair function generated after being triggered.
5. a kind of disk prosthetic device characterized by comprising
It repairs mark and checks module, for having detected whether disk reparation mark before running client-side program;
Restoration information obtains module, for obtaining disk restoration information, wherein the disk is repaired when there is disk reparation mark Complex information includes the mark of disk to be repaired and/or the mark of disk areas to be repaired;
Disk repair module, for being carried out according to the disk restoration information to disk to be repaired and/or disk areas to be repaired It repairs.
6. device according to claim 5, which is characterized in that further include:
Initialization module, for before having detected whether disk reparation mark, by the interface of the external disk to be repaired into Row initialization.
7. device according to claim 5 or 6, which is characterized in that further include:
Initialization module is shown, for before having detected whether disk reparation mark, initializing AV interface, HDMI interface or showing One or more of card, to show the state of disk reparation.
8. device according to claim 5, which is characterized in that the disk reparation label and disk restoration information are in magnetic What disk repair function generated after being triggered.
9. a kind of equipment is provided with the interface of external storage equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now disk restorative procedure as described in any in claim 1-4.
10. equipment according to claim 9, which is characterized in that the equipment is DTV STB, DTV one At least one of body machine or OTT set-top box.
CN201811473320.3A 2018-12-04 2018-12-04 A kind of disk restorative procedure, device and equipment Pending CN109597715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811473320.3A CN109597715A (en) 2018-12-04 2018-12-04 A kind of disk restorative procedure, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811473320.3A CN109597715A (en) 2018-12-04 2018-12-04 A kind of disk restorative procedure, device and equipment

Publications (1)

Publication Number Publication Date
CN109597715A true CN109597715A (en) 2019-04-09

Family

ID=65960948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811473320.3A Pending CN109597715A (en) 2018-12-04 2018-12-04 A kind of disk restorative procedure, device and equipment

Country Status (1)

Country Link
CN (1) CN109597715A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7293195B1 (en) * 2004-01-29 2007-11-06 Network Appliance, Inc. System and method for coordinated bringup of a storage appliance in a cluster configuration
CN105095017A (en) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 Partition table based hard disk repair method and apparatus
CN106708960A (en) * 2016-11-30 2017-05-24 浙江宇视科技有限公司 Restoration method for file system of NAS device and NAS device
CN106775610A (en) * 2016-03-22 2017-05-31 新华三技术有限公司 A kind of electronic equipment starts method and a kind of electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7293195B1 (en) * 2004-01-29 2007-11-06 Network Appliance, Inc. System and method for coordinated bringup of a storage appliance in a cluster configuration
CN105095017A (en) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 Partition table based hard disk repair method and apparatus
CN106775610A (en) * 2016-03-22 2017-05-31 新华三技术有限公司 A kind of electronic equipment starts method and a kind of electronic equipment
CN106708960A (en) * 2016-11-30 2017-05-24 浙江宇视科技有限公司 Restoration method for file system of NAS device and NAS device

Similar Documents

Publication Publication Date Title
US9417967B2 (en) Computing device and method for automatically recovering bios of computing device
CN1026625C (en) Method for reconfiguration of computer, device and system
CN103970560B (en) Starting method and electronic device
US8321482B2 (en) Selectively modifying files of a container file
US6778974B2 (en) Memory device and method for reading data stored in a portion of a memory device unreadable by a file system of a host device
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
US8024722B2 (en) Method and system for automatic installation of a functional unit driver on a host
CN101454762A (en) Plug and play peripheral storing driver
KR910005169A (en) Apparatus and method for reducing memory for BIOS in a personal computer system
US20070288937A1 (en) Virtual Device Driver
US20190377644A1 (en) Boost assist metadata tables for persistent memory device updates during a hardware fault
US7373493B2 (en) Boot methods, computer systems, and production methods thereof
US20040130557A1 (en) Method for customizing computer booting procedure
US20120124358A1 (en) Configuration information recovering system and method
CN106371945A (en) Method and device for restoring firmware information
JPH0644094A (en) Computer-system detecting error of alternative system controller
CN109144586A (en) A kind of driving adaptation method, device, computer equipment and storage medium
CN109597715A (en) A kind of disk restorative procedure, device and equipment
CN114765051A (en) Memory test method and device, readable storage medium and electronic equipment
CN100405322C (en) Method for starting operation system and testing by USB carry-on disk
US20060168440A1 (en) OS selection methods and computer systems utilizing the same
CN108009039B (en) Terminal information recording method, device, storage medium and electronic equipment
TW201301023A (en) System and method for testing a mother board
US20130080757A1 (en) Booting method and booting system
CN106598778A (en) Method and device for restoring firmware information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190409