CN102354302A - Method and device for erasing disk - Google Patents

Method and device for erasing disk Download PDF

Info

Publication number
CN102354302A
CN102354302A CN2011102987207A CN201110298720A CN102354302A CN 102354302 A CN102354302 A CN 102354302A CN 2011102987207 A CN2011102987207 A CN 2011102987207A CN 201110298720 A CN201110298720 A CN 201110298720A CN 102354302 A CN102354302 A CN 102354302A
Authority
CN
China
Prior art keywords
subregion
disk
current
partition
current subregion
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
CN2011102987207A
Other languages
Chinese (zh)
Other versions
CN102354302B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Qizhi Software Beijing 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 Qizhi Software Beijing Co Ltd filed Critical Qizhi Software Beijing Co Ltd
Priority to CN201110298720.7A priority Critical patent/CN102354302B/en
Publication of CN102354302A publication Critical patent/CN102354302A/en
Application granted granted Critical
Publication of CN102354302B publication Critical patent/CN102354302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a method and device for erasing a disk. The method comprises the following steps: when the current partition of the disk needs erasing, obtaining partition information of the current partition and next partition of the disk; according to the partition information, judging whether the partition superposition exists between the current partition and the next partition; according to the judgment result, determining an erasing operation aiming at the current partition of the disk. By using the method and device provided by the invention, in the process of erasing the disk, the partition information of the disk can be effectively protected so that the data safety of the user is protected.

Description

A kind of method and device of wiping disk
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method and apparatus of wiping disk.
Background technology
Along with the progress in epoch and popularizing of computer utility, people are more and more frequent to the use of computer equipment.In daily use, the user often need be stored in lot of data in the personal computer, and simultaneously, the user also possibly often need carry out deletion action to the file that comprises personal data.But the general deletion action that the user does is just put into recycle bin with file, empties recycle bin then, does not perhaps put into recycle bin and directly deletion, such as in Windows operating system, using shift+delete Macintosh that file is deleted.
Yet; These deletion actions that the user does; Be mapped to system level, accomplish such a series of actions by operating system often: to the identifier of deletion of one of file increase, the data area at this file place is set to the state of can writing then in MFT.Like this, the user in the explorer such as Windows operating system, just can't see the information of this document in human-computer interaction interface, the process that Here it is generally deletes file.And in fact, on disk, still keeping the fileinfo and the data content of this document as physical storage medium, and so just possibility is provided to recovering legacy data in case of necessity, simultaneously, also reveal and stayed hidden danger to user data.
Owing to above-described reason, the user hopes that sometimes thoroughly deletion needs the data of deletion, makes the data of being deleted have expendable characteristic.At this moment, except general deletion action, the user also can use a kind of application that can wipe disk, and the data of needs deletion are thoroughly removed, and the data of being deleted can not be resumed, thereby reduces the possibility that user data is revealed.But wiping in the disk application process in the past, occur disk partition sometimes and lose, cause the situation of user data loss, endangered user's data safety.
In sum, the technical matters that presses for those skilled in the art's solution just is, when the user wipes disk operating; How a kind of instrument of secure erase disk is provided; The user is wiped in the process of disk in execution, avoid disk partition to lose, and then avoid user data loss.
Summary of the invention
The invention provides a kind of method and device of wiping disk, can in the process of carrying out magnetic disk erasing, effectively protect disk partition information, and then protection user's data safety.
The invention provides following scheme:
A kind of method of wiping disk comprises:
When needs are carried out erase operation to the current subregion of disk, obtain the current subregion of disk with and the partition information of next subregion;
According to said partition information, judge between current subregion and its next subregion whether have the branch area overlapping;
According to judged result, confirm erase operation to the current subregion of disk.
Wherein, said obtain the current subregion of disk with and the partition information of next subregion comprise:
Obtain current section post the physical sector number of end sector, and next section post the physical sector number of initial sector;
Said according to said partition information, judge between current subregion and its next subregion whether exist the branch area overlapping to comprise:
Judge current section post the end sector physical sector number whether greater than its next section post the physical sector number of initial sector, if exist between then current subregion and its next subregion and divide an area overlapping.
Wherein, said according to judged result, confirm to comprise to the erase operation of the current subregion of disk:
Divide area overlapping if exist between current subregion and next subregion, then confirm the overlapping region between current subregion and next subregion;
When current subregion is carried out erase operation, skip said overlapping region, only wipe the zone except that said overlapping region in the current subregion.
Wherein, said according to judged result, confirm to comprise to the erase operation of the current subregion of disk:
If exist between current subregion and next subregion and divide area overlapping, skip current subregion, only other subregions except that current subregion are carried out erase operation.
Wherein, said erase operation to the current subregion of disk comprises:
When needs carry out erase operation to the current subregion of disk,, wipe disk through in erase area, writing random number.
 
A kind of device of wiping disk comprises:
The partition information acquiring unit is used for when needs are carried out erase operation to the current subregion of disk, obtain the current subregion of disk with and the partition information of next subregion;
Judging unit is used for according to said partition information, judges between current subregion and its next subregion whether have the branch area overlapping;
Erase unit is used for according to judged result, confirms the erase operation to the current subregion of disk.
Wherein, said partition information acquiring unit is used for:
Obtain current section post the physical sector number of end sector, and next section post the physical sector number of initial sector;
Said judging unit specifically is used for:
Judge current section post the end sector physical sector number whether greater than its next section post the physical sector number of initial sector, if exist between then current subregion and its next subregion and divide an area overlapping.
Wherein, said erase unit comprises:
Subelement is confirmed in the overlapping region, is used between current subregion and next subregion, existing when dividing area overlapping, confirms the overlapping region between current subregion and next subregion;
The first deletion subelement is used for when current subregion is carried out erase operation, skipping said overlapping region, only wipes the zone except that said overlapping region in the current subregion.
Wherein, said erase unit comprises:
The second deletion subelement is used between current subregion and next subregion, existing when dividing area overlapping, skips current subregion, only other subregions except that current subregion is carried out erase operation.
Wherein, said erase unit specifically is used for:
When needs carry out erase operation to the current subregion of disk,, wipe disk through in erase area, writing random number.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Through the present invention, can before carry out concrete magnetic disk erasing operation, at first whether have the phenomenon of branch area overlapping between the judge disk subregion, and, confirm erase operation to the current subregion of disk according to judged result.Therefore, in wiping the process of disk, can effectively protect disk partition information, and then protect user's data safety.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use among the embodiment below; Obviously; Accompanying drawing in describing below only is some embodiments of the present invention; For those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of the method that provides of the embodiment of the invention;
Fig. 2 is the schematic representation of apparatus that the embodiment of the invention provides.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills obtained belongs to the scope that the present invention protects.
Need to prove that at first the main memory device of depositing information in the computing machine is a hard disk, but hard disk can not use directly, must cut apart hard disk, one one the hard disk areas that is divided into, this disk zone just is called disk partition.In traditional disk management, a hard disk is divided into two big types of subregions: main partition and extended partition.The main partition is can installing operating system, can carry out the subregion of computer starting.The main partition is independently, also is first subregion of hard disk, and being seen C dish is exactly the main partition usually in the practical application.In a hard disk, can only there be 4 main partitions at most.If need to surpass the disk piecemeal more than 4 on the hard disk, so just need to have used extended partition.If the use extended partition so at most can only 3 main partitions and 1 extended partition on physical hard disk.Extended partition can not directly use; It must pass through the logical partition (for example D dish, E dish, F dish or the like) that is partitioned into for the second time one by one; Just can use then; Also be; Can be with document storage to certain logical partition; When needs are checked this document, search under the drive of this logical partition correspondence of arriving.
Wherein, in 0 magnetic track of 0 sector of disk, have partition table, in this partition table mark the start address in each main partition, end address, and the subregion information such as start address of extended partition.The original position in each main partition is all preserved DBR and (is generally taken 63 sectors; Certainly also possibly be other numbers); And MFT (Master File Table; MFT) or FAT (File Allocation Table; File configuration table) file table etc.; If these data are destroyed, can cause corresponding main partition to open.
In addition; Each logical partition of extended partition (generally comprises partition table and MFT etc. by the partition information section; The total sector number of this part disk that takies is normally fixed; For example in certain system, take 63 sectors altogether) and data segment two parts composition; Wherein, Partition table is usually located at the reference position of each logical partition, is used to preserve the partition information of current logical partition and the partition information of next subregion, and data segment is used to preserve concrete data.Wherein the start address of first logical partition is the start address of extended partition, the partition information that other are follow-up, and the sector of address and each subregion takies number and pushes away thus.Logical partition is that the chain sheet form is kept in the disk, if hard disk has been lost partition table, data just can't read and write in order, causes and can't operate.
And the inventor finds in realizing process of the present invention, why when using the magnetic disk erasing device that the data in the disk are wiped, the phenomenon that subregion is lost can occur, and a kind of possible reason just is to have the phenomenon of dividing area overlapping between the subregion of disk.The so-called partition table that divides area overlapping to be meant a certain logical partition (for example being the B subregion) is written in the data segment of front logical partition (for example being the A subregion), at this moment, is expired in case the A partition data writes, and then will inevitably give the partition table of B subregion to cover.As mentioned before, because logical partition is that the chain sheet form is kept in the disk, subregion is lost when the front, and the subregion of back will all be lost, and therefore, the phenomenon of this minute area overlapping can cause losing of logical partition, and then causes loss of user data.The volume of recreation especially now and audio/video file etc. is increasing, and it is full that disk partition is often write, and like this, in case the branch area overlapping takes place, then the subregion situation of losing will get more and more.For example; The partition table of first logical partition has been kept at (being the end position of the reference position of first logical partition less than last main partition) in its main partition, front; Subregion will be overlapping like this; After last main partition is write completely; The partition table of first logical partition will be capped, and first logical partition will be lost like this.And write down the start information of second logical partition in the partition table of first logical partition, therefore, after first logical partition is lost; Second logical partition also lost thereupon; By that analogy, as long as first logical partition is lost, the logical partition of back will all be lost.
As for the reason that causes the branch area overlapping, wherein a kind ofly possibly be: after computer used a period of time, system was more and more slower, and keep away the system of unavoidably will resetting this moment, and was limited to the complicacy of computer refitting and consuming time, and it is more and more universal that GHOST does system.So-called GHOST is actually a kind of hard disk backup reduction instrument, and it takes the mode backup-and-restore data of mirror image system partitioning or file.But,, brought risk to custom system because present online various forms of GHOST softwares and system image file are much lack of standardization.Wherein a kind of risk is exactly the problem that causes the branch area overlapping, also promptly, has conflict between partition information that GHOST carries and original subscriber's the partition information, thereby causes the branch area overlapping.In addition, some have been to use has the subregion of BUG software, also possibly cause the overlapping of subregion.
On above analysis foundation, the embodiment of the invention provides a kind of method of wiping disk, and referring to Fig. 1, this method may further comprise the steps:
S101: when needs are carried out erase operation to the current subregion of disk, obtain the current subregion of disk with and the partition information of next subregion;
S102:, judge between current subregion and its next subregion whether have the branch area overlapping according to said partition information;
In practical application, can determine whether and to remove to carry out erase operation to disk according to user's the operation that manually boots.For example, when the user need carry out erase operation to certain disk partition, just can start the magnetic disk erasing instrument, and indicate its disk partition to carry out erase operation, at this moment, just be equivalent to and to carry out erase operation to this subregion this appointment.Certainly, the user also can select a plurality of subregions are wiped, and certainly, when concrete the realization, when the user selects a plurality of subregions to carry out erase operation, also can be broken down into the subtask to the erase operations of single disk partition.Therefore, need the current subregion execution of disk erase operation have been comprised described in this step: the user selects single disk partition, sends erasing instruction; Perhaps the user selects a plurality of subregions to send erasing instruction, is decomposed into a plurality of subtasks of single disk partition being carried out erase operation thus.
Need to prove; Because after the disk application extended partition technology; Under the situation that subregion has been determined; Each main partition of in the partition table of its 0 magnetic track, 0 sector, having preserved this physical disk and the address of extended partition and the number of sectors that takies of physical disk; Therefore; Through reading the information of physical disk 0 magnetic track 0 sector, can get access to the address in main partition and the start address of extended partition.Therefore, when needs obtain the partition information of main partition and extended partition, just can from the partition table of disk 0 magnetic track 0 sector, obtain.
Simultaneously; The start address of extended partition just is equivalent to the start address of first logical partition; And the partition table of first logical partition just is kept in the initial sector of first logical partition; Therefore; Just can obtain the partition table of first logical partition; And get access to partition information wherein, and the start address of other follow-up each logical partitions, the sector of each subregion that writes down in start address that can this first logical partition and the partition table thereof takies parameters such as number and pushes away.Here need to prove; As mentioned before; Because in the partition table of each logical partition all is the partition information of not only having put down in writing current subregion; Also put down in writing the partition information of next subregion, therefore, according to the understanding of routine; When needs obtain the partition information of disk logical partition; Both can from the partition table of this subregion self, obtain, can from the partition table of a last subregion, obtain (certainly, except first logical partition) again.
But, in the logical partition of extended partition, EBR (Extended Boot Record) is arranged in the sector, starting position of each logical partition.EBR is different with MBR, and it does not have guidance code, but has preserved two partition tables: first partition table be current subregion remove this subregion DBR (DBR generally takies 63 sectors, also have 2048 or other values) outside initial sector and the sector number that takies of data field; Second partition table initial sector number that is next subregion and the sector number (comprising DBR and data field) that takies interior.
Reference position at next subregion comprises two partition tables (if having three more than the logical partition) again: first partition table has write down the initial sector of data field except that this subregion DBR and the sector number that takies, and has write down the initial sector of the 3rd extended partition and the sector number that takies in second partition table.
And the like, the partition table in the logical partition is preserved with the chain sheet form.Obtain in the partition table of the actual logical partition from it of the start address of logical partition.
For example, the initial sector of first logical partition A is got the initial sector of this logical partition place extended partition, and its end position is that initial sector adds the sector number that it is shared.The start address of second subregion list item record and the sector number that takies in the partition table among the start address fetch logic subregion A of second logical partition B.Certain logical partition Y of back takies the basis for estimation of sector: the initial sector with second subregion list item record in the partition table among the logical partition X of front is as the criterion with the sector number that takies.
When the initial sector position of a certain logical partition A adds the position of its shared sector number greater than the initial sector place of its back logical partition B (A and B are in same extended partition), will cause the branch area overlapping.
For example: A logical partition initial sector is 1000 sectors, and it takies 2000 sectors, and B logical partition initial sector takies 1000 sectors in 2920 sectors.Finishing the sector in the A logical partition like this should be 3000 sectors, and logical partition B initial sector is 2920, and the end sector of A begins the sector greater than B, and they have the overlapping of 80 sectors.Possibly write down partition table, DBR and some other data (possibly have MFT among the NTFS, in the FAT form, possibly have the FAT table) of B subregion in these 80 sectors.After the A logical partition is write completely, will write data in these 80 sectors, then; Partition table in the B subregion, DBR and other data will be destroyed; Cause the subregion of B subregion and back thereof all to be lost, thereby cause the data on these subregions all to lose, cause damage with the user.
Therefore, specifically obtain the current subregion of disk with and during the partition information of next subregion, can obtain current section post the physical sector number of end sector, and next section post the physical sector number of initial sector; Like this, just can through judge current section post the end sector physical sector number whether greater than its next section post the physical sector number of initial sector, if, an existence minute area overlapping between then current subregion and its next subregion.
Concrete; When if current subregion and next subregion thereof are the logical partition in the extended partition; Said obtain the current subregion of disk with and the partition information of next subregion comprise: the partition information that obtains first logical partition and second logical partition in the following manner:, confirm the physical sector number at the end position place of said first logical partition according to the partition information of mark in the partition table of the last subregion of said first logical partition; According to the partition information of mark in the partition table of said first logical partition, confirm the physical sector number at the reference position place of said second logical partition; Then; Whether the physical sector number at end position place of judging said first logical partition is greater than the physical sector number at the reference position place of said second logical partition; If exist between then said first logical partition and said second logical partition and divide area overlapping.
Wherein, The partition information that writes down in the partition table according to the last subregion of first logical partition; When confirming the physical sector number at end position place of said first logical partition; Specifically can for: inquire about the partition table of a last subregion of said first logical partition, therefrom obtain the initial sector off-set value of first logical partition and the total sector number that takies; According to total sector number that initial sector off-set value and this logical partition of this first logical partition takies, obtain the end sector offset value of this first logic sector; Obtain the physical sector number at the end position place at this first logical partition place according to the end sector offset value of this first logic sector and the start address of extended partition.
The partition information that writes down in the partition table according to said first logical partition; When confirming the physical sector number at reference position place of second logical partition; Specifically can for: inquire about the partition table of said first logical partition, therefrom obtain the initial sector off-set value of said second logical partition; Obtain the physical sector number at the reference position place of this second logical partition according to the initial sector off-set value of this second logic sector and the start address of extended partition.
If current subregion is the main partition; When its next subregion is main partition or extended partition; Then specifically obtain the current subregion of disk with and during the partition information of next subregion; It can be partition information according to mark in the partition table in disk 0 magnetic track 0 sector; Confirm the physical sector number at the end position place of said current subregion, and the physical sector number at the reference position of next subregion place; And then whether the physical sector number at the end position place through judging current subregion is greater than the physical sector number at the reference position place of next subregion, if there is a minute area overlapping between then current subregion and next subregion.
Need to prove; During concrete the realization, except the sector number that utilizes initial sector and the sector number that finishes the sector come the reference position of presentation logic subregion and the end position, can also utilize other information to represent; For example, start byte, end byte or the like.Perhaps, since in the partition table " side-play amount " put down in writing all be with respect to the start address of extended partition, therefore.Count the beginning sector and finish the physical sector number of sector if disregard, but between " side-play amount " utilizing initial sector and finish the sector come whether to exist between the decision logic sector branch area overlapping also to be fine, repeat no more here.
Need to prove that in addition in the art, the logical partition under the DOS partition scheme is a kind of of disk partition, other disk partition type respectively has its relevant information acquisition methods, repeats no more at this.
S103:, confirm erase operation to the current subregion of disk according to judged result.
During concrete the realization, there is the phenomenon of dividing area overlapping between the subregion, specifically when the erase operation of carrying out disk partition, multiple implementation can be arranged if judge.For example; Under a kind of therein implementation, can be as long as there is the branch area overlapping between certain subregion A and the subregion B, and subregion A be the last subregion of subregion B; Then directly subregion A is skipped and do not wipe, only the subregion that does not have the branch area overlapping between other and next subregion is carried out erase operation.
Perhaps; Under another kind of implementation, divide area overlapping if exist between certain subregion A and its next subregion B, also can also carry out erase operation to subregion A; Just need with subregion B overlapping part to have taken place and skip and do not wipe, cause losing of subregion B after can avoiding wiping.In this manner; During concrete the realization; (also promptly determining two subregions specifically exists overlapping on which sector can at first to determine overlapping region between current subregion and next subregion; For example; Overlapping region in the previous example between subregion A and the subregion B is exactly the 97th to the 99th sector); When current subregion is carried out erase operation, skip this overlapping region then, only wipe in the current subregion and get final product except that this zone overlapping region.
Here need to prove; Because the effect of magnetic disk erasing instrument is exactly to prevent that deleted data are resumed in the disk; Therefore; In traditional magnetic disk erasing device; Under the situation of acquiescence; All be meant the remaining space of wiping (that is to say the data field except the data field at existing file place, especially the corresponding data field of deleted document).So in embodiments of the present invention, so-called " zone in the current subregion beyond the overlapping region " just is meant the remaining space of current subregion, the zone except that the overlapping region.Certainly; In practical application; If the user need wipe disk totally; Also be; Delete data field together with existing not deleted file place; Also be fine, in this case, " zone in the current subregion beyond the overlapping region " in the embodiment of the invention just can refer to the zone except that the overlapping region in the whole current subregion.
When carrying out concrete erase operation, can once or repeatedly write through the zone that needs are wiped random number, all put 0 or the mode such as 1 of putting realize.Wherein, if wipe, then when wiping existing file or file, can at first make carbon copies file by certain number of times, as required again the data field zero clearing with random data together with existing file.At random to file or folder certain number of times that renames, from MFT or FAT file table, can not find source document so then, change file size into 0 again through raw filename.And then, file is destroyed in the characteristic of MFT or FAT file table MFT or the zero clearing of FAT file table file index information, increased the difficulty of recovering.Delete this file at last again, thereby guarantee user's personal secrets.If wipe the remaining space of disk, just the data that generate at random can be used in disk directly, according to the number of times of user's selection; Write temporary file; Up to writing the zone that full needs are wiped, the zone that needs are wiped all covers, and then deletes these temporary files.Like this, the data of the file of having deleted will can not be resumed by whole manifoldings again.
Wherein, the FAT form is because maximum is supported the file of 4GB size, so the area size of wiping as required possibly generate a plurality of temporary files when wiping.For example: suppose that the zone that need wipe is 10GB, then may generate 3 files: the file of the file of two 4GB and a 2GB.And for the NTFS form, because support big file, maximum can be supported 64GB, and therefore the temporary file quantity that writes can be lacked relatively.
In addition, the described method of wiping disk of the embodiment of the invention, both the erase operation of selecting single disk partition to carry out to the user also was applicable to the batch erase operation that the user selects a plurality of disk partition to carry out.Why like this; Be because when the user select a plurality of disk partition carry out the batch wipe operation the time; No matter be that order is carried out single magnetic disk erasing; Perhaps carry out wiping of a plurality of disks; All can be broken down into subtask to the erase operations of single disk partition; Therefore, above-mentioned situation all belongs to protection scope of the present invention.
Corresponding with the magnetic disk erasing method that the embodiment of the invention provides, the embodiment of the invention also provides a kind of device of wiping disk, and referring to Fig. 2, this device can comprise:
Partition information acquiring unit 201 is used for when needs are carried out erase operation to the current subregion of disk, obtain the current subregion of disk with and the partition information of next subregion;
Judging unit 202 is used for according to said partition information, judges between current subregion and its next subregion whether have the branch area overlapping;
Erase unit 203 is used for according to judged result, confirms the erase operation to the current subregion of disk.
During concrete the realization, the partition information acquiring unit specifically is used for:
Obtain current section post the physical sector number of end sector, and next section post the physical sector number of initial sector;
Said judging unit specifically is used for:
Judge current section post the end sector physical sector number whether greater than its next section post the physical sector number of initial sector, if exist between then current subregion and its next subregion and divide an area overlapping.
If exist between current subregion and next subregion and divide area overlapping, then under a kind of implementation, erase unit 203 can comprise:
Subelement is confirmed in the overlapping region, is used between current subregion and next subregion, existing when dividing area overlapping, confirms the overlapping region between current subregion and next subregion;
The first deletion subelement is used for when current subregion is carried out erase operation, skipping said overlapping region, only wipes the zone except that said overlapping region in the current subregion.
Perhaps, under another kind of implementation, erase unit 203 also can comprise:
The second deletion subelement is used between current subregion and next subregion, existing when dividing area overlapping, skips current subregion, only other subregions except that current subregion is carried out erase operation.
Wherein, erase unit 203 specifically is used for:
When needs carry out erase operation to the current subregion of disk,, wipe disk through in erase area, writing random number.
Whether the magnetic disk erasing device through the embodiment of the invention provides can at first exist the phenomenon of branch area overlapping, and according to judged result, confirm the erase operation to the current subregion of disk before carry out concrete magnetic disk erasing operation between the judge disk subregion.Therefore, in wiping the process of disk, can effectively protect disk partition information, and then protect user's data safety.
Description through above embodiment can know, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium; Like ROM/RAM, magnetic disc, CD etc.; Comprise that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for device or system embodiment, because it is basically similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.Apparatus and system embodiment described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can realize the purpose of present embodiment scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
More than to method and the device of wiping disk provided by the present invention; Carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part all can change on embodiment and range of application.In sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a method of wiping disk is characterized in that, comprising:
When needs are carried out erase operation to the current subregion of disk, obtain the current subregion of disk with and the partition information of next subregion;
According to said partition information, judge between current subregion and its next subregion whether have the branch area overlapping;
According to judged result, confirm erase operation to the current subregion of disk.
2. method according to claim 1 is characterized in that, said obtain the current subregion of disk with and the partition information of next subregion comprise:
Obtain current section post the physical sector number of end sector, and next section post the physical sector number of initial sector;
Said according to said partition information, judge between current subregion and its next subregion whether exist the branch area overlapping to comprise:
Judge current section post the end sector physical sector number whether greater than its next section post the physical sector number of initial sector, if exist between then current subregion and its next subregion and divide an area overlapping.
3. method according to claim 1 is characterized in that, and is said according to judged result, confirms to comprise to the erase operation of the current subregion of disk:
Divide area overlapping if exist between current subregion and next subregion, then confirm the overlapping region between current subregion and next subregion;
When current subregion is carried out erase operation, skip said overlapping region, only wipe the zone except that said overlapping region in the current subregion.
4. method according to claim 1 is characterized in that, and is said according to judged result, confirms to comprise to the erase operation of the current subregion of disk:
If exist between current subregion and next subregion and divide area overlapping, skip current subregion, only other subregions except that current subregion are carried out erase operation.
5. method according to claim 1 is characterized in that, said erase operation to the current subregion of disk comprises:
When needs carry out erase operation to the current subregion of disk,, wipe disk through in erase area, writing random number.
6. a device of wiping disk is characterized in that, comprising:
The partition information acquiring unit is used for when needs are carried out erase operation to the current subregion of disk, obtain the current subregion of disk with and the partition information of next subregion;
Judging unit is used for according to said partition information, judges between current subregion and its next subregion whether have the branch area overlapping;
Erase unit is used for according to judged result, confirms the erase operation to the current subregion of disk.
7. device according to claim 6 is characterized in that, said partition information acquiring unit is used for:
Obtain current section post the physical sector number of end sector, and next section post the physical sector number of initial sector;
Said judging unit specifically is used for:
Judge current section post the end sector physical sector number whether greater than its next section post the physical sector number of initial sector, if exist between then current subregion and its next subregion and divide an area overlapping.
8. device according to claim 1 is characterized in that, said erase unit comprises:
Subelement is confirmed in the overlapping region, is used between current subregion and next subregion, existing when dividing area overlapping, confirms the overlapping region between current subregion and next subregion;
The first deletion subelement is used for when current subregion is carried out erase operation, skipping said overlapping region, only wipes the zone except that said overlapping region in the current subregion.
9. device according to claim 1 is characterized in that, said erase unit comprises:
The second deletion subelement is used between current subregion and next subregion, existing when dividing area overlapping, skips current subregion, only other subregions except that current subregion is carried out erase operation.
10. device according to claim 1 is characterized in that, said erase unit specifically is used for:
When needs carry out erase operation to the current subregion of disk,, wipe disk through in erase area, writing random number.
CN201110298720.7A 2011-09-28 2011-09-28 A kind of method of erasing disk and device Active CN102354302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110298720.7A CN102354302B (en) 2011-09-28 2011-09-28 A kind of method of erasing disk and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110298720.7A CN102354302B (en) 2011-09-28 2011-09-28 A kind of method of erasing disk and device

Publications (2)

Publication Number Publication Date
CN102354302A true CN102354302A (en) 2012-02-15
CN102354302B CN102354302B (en) 2015-09-09

Family

ID=45577868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110298720.7A Active CN102354302B (en) 2011-09-28 2011-09-28 A kind of method of erasing disk and device

Country Status (1)

Country Link
CN (1) CN102354302B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968597A (en) * 2012-11-05 2013-03-13 中国电力科学研究院 Disk data connection chain-based file crushing method
CN109710375A (en) * 2018-12-06 2019-05-03 国云科技股份有限公司 A method of separation virtual machine system subregion
CN111831224A (en) * 2020-06-22 2020-10-27 中孚安全技术有限公司 Method, system and equipment for erasing exFAT partition file residual space

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1359071A (en) * 2001-11-29 2002-07-17 上海格尔软件股份有限公司 Method for completely deleting files on hard disk

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1359071A (en) * 2001-11-29 2002-07-17 上海格尔软件股份有限公司 Method for completely deleting files on hard disk

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
《http://bbs.360.cn/3229787/45920101.html》 20110916 清理道夫 "关于新版磁盘痕迹清理器,功能及如何使用" 第2页第1-2行 1-10 , *
《http://www.greenxf.com/soft/27115.html》 20110927 绿色先锋 "360磁盘擦除器(360磁盘痕迹清除器)V8.0提取版" 第1页倒数6-7行 1-10 , *
岳雷: ""解读分区表的秘密"", 《HTTP://YUELEI.GLOG.51CTO.COM/202879/88553》, 18 July 2008 (2008-07-18), pages 1 - 12 *
清理道夫: ""关于新版磁盘痕迹清理器,功能及如何使用"", 《HTTP://BBS.360.CN/3229787/45920101.HTML》, 16 September 2011 (2011-09-16) *
绿色先锋: ""360磁盘擦除器(360磁盘痕迹清除器)V8.0提取版"", 《HTTP://WWW.GREENXF.COM/SOFT/27115.HTML》, 27 September 2011 (2011-09-27) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968597A (en) * 2012-11-05 2013-03-13 中国电力科学研究院 Disk data connection chain-based file crushing method
CN102968597B (en) * 2012-11-05 2015-06-24 中国电力科学研究院 Disk data connection chain-based file crushing method
CN109710375A (en) * 2018-12-06 2019-05-03 国云科技股份有限公司 A method of separation virtual machine system subregion
CN111831224A (en) * 2020-06-22 2020-10-27 中孚安全技术有限公司 Method, system and equipment for erasing exFAT partition file residual space
CN111831224B (en) * 2020-06-22 2024-04-19 中孚安全技术有限公司 Method, system and equipment for erasing residual space of exFAT partition file

Also Published As

Publication number Publication date
CN102354302B (en) 2015-09-09

Similar Documents

Publication Publication Date Title
US8832029B2 (en) Incremental virtual machine backup supporting migration
JP5346536B2 (en) Information backup / restore processing device and information backup / restore processing system
CN102177505B (en) Method for optimizing cleaning of maps in flashcopy cascades containing incremental maps
US10025792B2 (en) Method for divisionally managing files on a user basis, and a storage system and computer program product thereof
CN103608866B (en) Data method for deleting and device for flash memories
US8676809B1 (en) Method and apparatus for mapping virtual machine incremental images
US8095770B2 (en) Method and system for mapping data to a process
JP4512638B2 (en) Computer hard disk system data protection apparatus and method using system area information table and mapping table
CN103761053A (en) Data and method for data processing
US8370598B2 (en) Storage system, copy control method, and copy control unit
US10380356B2 (en) Operating system partition protecting system, protecting device, and terminal
JP2004342050A (en) Method for maintaining a plurality of snapshots, server system and storage system
US7469261B2 (en) Apparatus and method for protecting system data on computer hard-disk
CN102096561A (en) Hierarchical data storage processing method, device and storage equipment
JP5956971B2 (en) WORM cartridge support realized by LTFS (LinearTapeFileSystem)
CN111382011B (en) File data access method and device and computer readable storage medium
CN102354302A (en) Method and device for erasing disk
CN102508743A (en) Multi-point backup and real-time protection method for Linux file system
US8938596B2 (en) Storage apparatus, control apparatus, and storage apparatus control method
US8825600B2 (en) File backup apparatus and method for backing up one or more directories
CN116166478A (en) Backup method and equipment of cloud host
CN102331953A (en) Disk partition fault repairing method and device
CN111399774B (en) Data processing method and device based on snapshot under distributed storage system
JP2010152781A (en) Backup server device, backup/restore program, and backup/restore method
CN103617250A (en) File management method based on optical storage array and file format system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING QIHU TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20150906

Owner name: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20150906

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150906

Address after: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Qizhi software (Beijing) Co.,Ltd.

Address before: The 4 layer 100016 unit of Beijing city Chaoyang District Jiuxianqiao Road No. 14 Building C

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20220707

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right