CN102789456B - Method for cleaning redundancy files of disc - Google Patents

Method for cleaning redundancy files of disc Download PDF

Info

Publication number
CN102789456B
CN102789456B CN201110127082.2A CN201110127082A CN102789456B CN 102789456 B CN102789456 B CN 102789456B CN 201110127082 A CN201110127082 A CN 201110127082A CN 102789456 B CN102789456 B CN 102789456B
Authority
CN
China
Prior art keywords
file
redundancy
disk
those files
files
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.)
Active
Application number
CN201110127082.2A
Other languages
Chinese (zh)
Other versions
CN102789456A (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.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN201110127082.2A priority Critical patent/CN102789456B/en
Publication of CN102789456A publication Critical patent/CN102789456A/en
Application granted granted Critical
Publication of CN102789456B publication Critical patent/CN102789456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for cleaning redundancy files of a disc, which is applicable to an electronic device with a disc. The method comprises the steps of firstly, backing up a plurality of files stored in the disc to an external device and recording backup information of the files subjected to backup; secondly, acquiring accessed access time and size of each file in the disc last time; thirdly, calculating a redundancy fraction in a weighting mode by using time length of the access time and the size of each file so far; and finally, displaying the files subjected to backup in order according to the recorded backup information and the calculated redundancy fraction of each file, thus helping a user to clean the redundancy files.

Description

Remove the method for disk redundancy file
Technical field
The present invention relates to a kind of method removing disk, particularly relate to a kind of method removing disk redundancy file.
Background technology
Along with the progress of semiconductor technology, the capacity of storer significantly promotes, and flash memory (Flash Memory) is because having the characteristics such as non-volatile, power saving, volume be little, be particularly suitable for being used in portable electronic devices, therefore occurred in recent years a kind ofly using anti-and flash memory as the solid state storage device (Solid State Disk, SSD) of data storing medium.
The special feature of solid state storage device is to utilize the characteristic of flash memory to replace the physical construction of conventional storage devices, carries out data access, therefore significantly can promote the read-write efficiency of storage device by block write and the mode of erasing.Compared with traditional storage device, solid state storage device has low power consumption, resistance toly to shake, stability is high, the advantage such as low temperature resistant.Portable electronic devices is considered in order to volume, has gradually adopted solid state storage device as the major storage device of data.
But the price of solid state storage device is high, the consumption electronic product capacity of solid state storage device that can be equipped with is quite limited on the market.Relative to limited storage volume, the size being recorded in file wherein then increases gradually, especially audio/video file, easily gigabyte (Giga Byte is exceeded, GB) data volume allows user often in the face of the predicament to Insufficient disk space, now just need rely on Disk Cleanup instrument to remove file.
General Disk Cleanup instrument is carry out according to the size order of file when removing file; but because many small documents may not be accessed for a long time; often can be left in the basket in the process performing Disk Cleanup instrument, these small documents build up, and are dispersed in numerous file.Result user often needs to expend quite a lot of time and manually removes file, but cannot clear out how many disk spaces.
Summary of the invention
The invention provides a kind of method removing disk redundancy file, the redundant file backed up in disk can be removed by assisting user.
The present invention proposes a kind of method removing disk redundancy file, is applicable to the electronic installation with disk.The method first by multiple file backups of storing in disk to external device (ED), and record the backup information of backup file.Then, the file size of access time and each file be once accessed before each file in disk is obtained.Then, the access time using each file time span so far and file size, weighted calculation redundancy mark.Finally, according to recorded backup information and calculate the redundancy mark of each file, the file that sequencing display has backed up.
In one embodiment of this invention, access time of above-mentioned each file of use time span so far and file size, the step of this redundancy mark of weighted calculation comprises service time length and carries out power exponentiation, to obtain time score, and service time mark and file size compute weighted, to obtain redundancy mark according to a preset ratio.Wherein, described power exponentiation comprises index (exponential) computing, square operation or cube computing.
In one embodiment of this invention, access time of above-mentioned each file of use time span so far and file size, the step of weighted calculation redundancy mark also comprises the redundancy mark of All Files in each file in multiple file stored by cumulative disk, using the redundancy mark as this file.
In one embodiment of this invention, above-mentioned according to recorded backup information and calculate the redundancy mark of each file, the step of the file that sequencing display has backed up also comprise according to recorded backup information and calculate the redundancy mark of each file, the file that sequencing display has backed up.
In one embodiment of this invention, at the above-mentioned redundancy mark according to each file, after the step of these files of sequencing display, also comprise and receive for one of them delete instruction of shown file, to delete this file.
In one embodiment of this invention, after the step of above-mentioned this file of deletion, also comprise the fileinfo recording deleted file, and receive the recovery instruction for file, with according to recorded fileinfo and backup information, by external device (ED) by deleted file access pattern to electronic installation.
In one embodiment of this invention, above-mentioned according to recorded backup information and calculate the redundancy mark of each file, the step of the file that sequencing display has backed up also comprises the file that sequencing display does not back up, to point out backup file.
In one embodiment of this invention, above-mentioned time span be by the moon, week, day, hour or minute in units of calculate, above-mentioned file size is then calculate in units of byte or kilobyte.
Based on above-mentioned, the method of removing disk redundancy file of the present invention is by will once be accessed to modern time span and file size in disk before backup file and include in the calculating of redundancy mark, the larger file that do not use or take up room for a long time can be found out in disk, and sequencing display is selected to remove for user, and disk space can be saved.
For above-mentioned feature and advantage of the present invention can be become apparent, special embodiment below, and coordinate accompanying drawing to be described in detail below.
Accompanying drawing explanation
Fig. 1 is the schematic diagram according to the disk redundancy file scavenge system shown in one embodiment of the invention.
Fig. 2 is the method flow diagram according to the removing disk redundancy file shown in one embodiment of the invention.
Fig. 3 is the method flow diagram according to the removing disk redundancy file shown in one embodiment of the invention.
Reference numeral:
10: file scavenge system
11: electronic installation
112: disk
114: backup software
12: external device (ED)
S202 ~ S208: the method step of the removing disk redundancy file of one embodiment of the invention
S302 ~ S310: the method step of the removing disk redundancy file of one embodiment of the invention
Embodiment
The present invention is in conjunction with the scoring mechanism of backup software and file, design a kind of file cleanout tool, assist the user of electronic installation to find out fast to be worth more without reserve and the file comparatively taken up space, the burden that user removes disk can be alleviated, and effectively can clear out disk space.
Fig. 1 is the schematic diagram according to the disk redundancy file scavenge system shown in one embodiment of the invention.Please refer to Fig. 1, the file scavenge system 10 of the present embodiment comprises electronic installation 11 and external device (ED) 12, and its function is described below:
Electronic installation 11 is such as the mobile phone, personal digital assistant, flat computer, the device such as notebook computer or desk-top computer that possess disk 112, disk 112 is such as hard disk, storer or solid state storage device (Solid State Disk, the Storage Media such as SSD), its can be used to store user the file setting up, copy or download.
External device (ED) 12 is such as by USB (universal serial bus) (Universal Serial Bus, USB), the Storage Media such as hard disk, memory card or portable disk of being connected with electronic installation 11 of the interface such as card reader, or the far-end computer to be connected with electronic installation 11 by network or server, it possesses jumbo storage area, and can electronic devices 11 as the use of file backup.
It should be noted that, in electronic installation 11, a backup software 114 also can be installed, allow user by this backup software 114 by the file backup of disk 112 to external device (ED) 12, use and protect the file that is stored in disk 112.But the use of the reduction when backup file stored in external device (ED) 12 is only damaged as major storage device (i.e. disk 112), user is general or can retain source document in disk 112.Only when the insufficient space etc. of disk 112 needs defrag 112 space, user just can go for the redundant file sought in disk 112, and carries out cleanup action.To this, namely the present invention provides one method easily, helps user to find out in disk 112 and is worth more without reserve and the file comparatively taken up space, to promote the effect of Disk Cleanup.
For example, Fig. 2 is the method flow diagram according to the removing disk redundancy file shown in one embodiment of the invention.Please refer to Fig. 2, the method for the present embodiment is applicable to the file scavenge system 10 of Fig. 1, the detailed step of the every component description inventive disk redundant file sweep-out method in file scavenge system 10 of namely arranging in pairs or groups below:
First, by the backup software 114 in electronic installation 11 by multiple file backups of storing in disk 112 to external device (ED) 12, and in disk 112, record the backup information (step S 202) of backup file.This backup information is such as the inventory of a backup file, comprising the title of each file, size and BACKUP TIME, its can be used as user in the future delete or also original time foundation.
Then, when starting the disk clear program on electronic installation 11 as user, this program namely can All Files in scanning disk 112, to obtain the file size (step S204) of access time and each file be once accessed before each file in disk 112.In detail, the header (header) of each file can record title, size, building maths modec, the information such as amendment date and access date of this file, and by the header of All Files in accessing disk, electronic installation 11 can obtain access time and the file size of each file.
Then, access time time span so far and the file size of each file, weighted calculation redundancy mark (step S 206) will be used by electronic installation 11.Wherein, the account form of this redundancy mark is such as first time span is carried out power exponentiation, to obtain time score.This time span be such as by the moon, week, day, hour or minute in units of calculate.Then, by electronic installation 11, this time score and file size are computed weighted according to a preset ratio, finally namely obtain redundancy mark.Described file size is such as with byte (byte) or kilobyte (kilobyte, KB) for unit calculates, and described power exponentiation is such as index (exponential) computing, square operation or cube computing.
For example, the computing formula of redundancy mark Score, time span time and file size size can be defined as follows:
Score=2 time×size
Wherein, time span time is once accessed to modern institute's elapsed time interval before the file calculated in units of week, and file size size calculates in units of kilobyte.
After the computing method of above obtain the redundancy mark of each file, last electronic installation 11 namely according to previous recorded backup information and calculate the redundancy mark of each file, by file ordering display (step S208) backed up.In detail, electronic installation 11 is such as sort for the file backed up, filter out and be worth (namely not using for a long time) more without reserve and the file of comparatively take up space (namely file is larger), and according to the size of redundancy mark, in the mode of list, these files are presented on the screen of electronic installation 11 from high to low, use and allow user select.When electronic installation 11 receives the delete instruction of user for shown file, can by this file erase.
It should be noted that, while electronic installation 11 deleted file, such as can record the fileinfo of this deleted document again, use when receiving the recovery instruction of user for this file afterwards, can again according to recorded fileinfo and backup information, by external device (ED) 12 by deleted file access pattern to electronic installation 11.
On the other hand, electronic installation 11 also can sort for the file do not backed up, and according to the size of redundancy mark, is presented on the screen of electronic installation 11 by these files from high to low, uses and allow user select in the mode of list.When electronic installation 11 receives the selection instruction of user for shown file, by this file backup to external device (ED) 12, and can be able to select after a backup by this file erase.
In addition, consider that the number of files stored in disk 112 may be quite huge, the reset mode of above-mentioned file one by one may waste user's many time and energy.To this, the invention provides another embodiment, adopt and carry out computing redundancy mark in units of file, and accordingly as foundation during deleted file.Below then describe in detail for an embodiment again.
Fig. 3 is the method flow diagram according to the removing disk redundancy file shown in one embodiment of the invention.Please refer to Fig. 3, the method for the present embodiment is applicable to the file scavenge system 10 of Fig. 1, and every component description of namely arranging in pairs or groups in file scavenge system 10 removes the detailed step of the method for disk redundancy file below:
First, by the backup software 114 in electronic installation 11 by multiple file backups of storing in disk 112 to external device (ED) 12, and in disk 112, record the backup information (step S302) of backup file.
Then, when starting the disk clear program on electronic installation 11 as user, this program namely can All Files in scanning disk 112, to obtain the file size (step S304) of access time and each file be once accessed before each file in disk 112.
Then, electronic installation 11 will use access time time span so far and the file size of each file, weighted calculation redundancy mark (step S306).Now, electronic installation 11 also can by the multiple files stored by disk 112, and in each file, the redundancy mark of All Files adds up, using the redundancy mark (step S308) as this file.
Finally, electronic installation 11 namely according to recorded backup information and calculate the redundancy mark of each file, by the file sequencing display (step S310) backed up.In detail, electronic installation 11 is such as the size according to redundancy mark, is presented on the screen of electronic installation 11 by these files from high to low in the mode of list, uses and allows user select.When electronic installation 11 receives the delete instruction of user for shown file, the All Files under this file can be deleted.By this, a kind of convenience of user can be provided and mode removes the redundant file in disk fast.
In sum, the method that the present invention removes disk redundancy file is for each file in disk calculates a redundancy mark, the power exponentiations such as quadratic power, cube, exponent arithmetic are carried out comprising for being once accessed to modern time span before file, and compute weighted in conjunction with file size, allow the influence power of time elongate along with the time and to increase fast, and then find out small documents outmoded in disk.By this, user can be allowed when defrag space, find out rapidly and be backed up, and untapped file of a specified duration, and increase the efficiency of Disk Cleanup.
Although the present invention with embodiment disclose as above, so itself and be not used to limit the present invention, the those of ordinary skill in any art, when doing a little change and retouching, and does not depart from the spirit and scope of the present invention.

Claims (9)

1. remove a method for disk redundancy file, be applicable to an electronic installation with a disk, the method comprises the following steps:
Back up multiple file to external device (ED)s stored in this disk, and record a backup information of those files backed up;
Obtain a file size of access time of being once accessed before those files each in this disk and each those files;
This access time time span so far of those files each is used to carry out a power exponentiation, to obtain a time score;
Use this time score and this file size to carry out one to be multiplied calculating, to obtain a redundancy mark;
According to this recorded backup information and calculate this redundancy marks of those files each, those files that sequencing display has backed up; And
Receive the delete instruction for shown file, delete this file shown corresponding to this delete instruction.
2. the method for removing disk redundancy file according to claim 1, wherein this power exponentiation comprises exponent arithmetic, square operation or cube computing.
3. the method for removing disk redundancy file according to claim 1, this access time wherein using those files each this time span so far and this file size, the step of this redundancy mark of weighted calculation also comprises:
The redundancy mark of All Files in those files each in multiple file stored by this disk cumulative, using this redundancy mark as this file.
4. the method for removing disk redundancy file according to claim 3, wherein according to this recorded backup information and calculate this redundancy marks of those files each, the step of those files that sequencing display has backed up also comprises:
According to this recorded backup information and calculate this redundancy marks of those files each, those files that sequencing display has backed up.
5. the method for removing disk redundancy file according to claim 1, wherein at this redundancy mark according to those files each, after the step of those files of sequencing display, also comprises:
Receive for one of them a delete instruction of those files shown, to delete this file.
6. the method for removing disk redundancy file according to claim 5, wherein after the step of deleting this file, also comprises:
Record a fileinfo of this file deleted; And
Receive and instruction is recovered for one of this file, with according to this recorded fileinfo and this backup information, recover this file deleted to electronic installation by this external device (ED).
7. the method for removing disk redundancy file according to claim 1, wherein according to this recorded backup information and calculate this redundancy marks of those files each, the step of those files that sequencing display has backed up also comprises:
Those files that sequencing display does not back up, to point out backup those files.
8. the method for removing disk redundancy file according to claim 1, wherein this time span comprise by the moon, week, day, hour or minute in units of calculate.
9. the method for removing disk redundancy file according to claim 1, wherein this file size comprises and calculating in units of byte or kilobyte.
CN201110127082.2A 2011-05-17 2011-05-17 Method for cleaning redundancy files of disc Active CN102789456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110127082.2A CN102789456B (en) 2011-05-17 2011-05-17 Method for cleaning redundancy files of disc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110127082.2A CN102789456B (en) 2011-05-17 2011-05-17 Method for cleaning redundancy files of disc

Publications (2)

Publication Number Publication Date
CN102789456A CN102789456A (en) 2012-11-21
CN102789456B true CN102789456B (en) 2015-04-08

Family

ID=47154860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110127082.2A Active CN102789456B (en) 2011-05-17 2011-05-17 Method for cleaning redundancy files of disc

Country Status (1)

Country Link
CN (1) CN102789456B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095252B (en) * 2014-05-06 2019-09-17 腾讯科技(深圳)有限公司 A kind of file management method and system
CN105183902B (en) * 2015-09-30 2019-03-15 北京金山安全软件有限公司 File cleaning method and device and terminal
CN109491589A (en) * 2017-09-13 2019-03-19 北京易华录信息技术股份有限公司 A kind of delamination process and device based on file content

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1202061A (en) * 1998-05-26 1998-12-16 英业达股份有限公司 Method for dynamically managing common sources of network
US6134660A (en) * 1997-06-30 2000-10-17 Telcordia Technologies, Inc. Method for revoking computer backup files using cryptographic techniques
CN101937377A (en) * 2009-06-29 2011-01-05 百度在线网络技术(北京)有限公司 Data recovery method and device
CN101945378A (en) * 2010-09-19 2011-01-12 中兴通讯股份有限公司 Method and device for backing up mobile terminal file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134660A (en) * 1997-06-30 2000-10-17 Telcordia Technologies, Inc. Method for revoking computer backup files using cryptographic techniques
CN1202061A (en) * 1998-05-26 1998-12-16 英业达股份有限公司 Method for dynamically managing common sources of network
CN101937377A (en) * 2009-06-29 2011-01-05 百度在线网络技术(北京)有限公司 Data recovery method and device
CN101945378A (en) * 2010-09-19 2011-01-12 中兴通讯股份有限公司 Method and device for backing up mobile terminal file

Also Published As

Publication number Publication date
CN102789456A (en) 2012-11-21

Similar Documents

Publication Publication Date Title
CN103577338B (en) A kind of method reclaiming junk data and storage device
US8423710B1 (en) Sequential writes to flash memory
KR101447188B1 (en) Method and apparatus for controlling I/O to optimize flash memory
US9798620B2 (en) Systems and methods for non-blocking solid-state memory
CN103577336B (en) A kind of stored data processing method and device
CN109656486B (en) Configuration method of solid state disk, data storage method, solid state disk and storage controller
US20140115239A1 (en) Method of managing data in nonvolatile memory device
CN104350477A (en) Optimized context drop for solid state drive (SSD)
CN103365744A (en) System and method using metadata image backup and traditional backup
KR20150067583A (en) Nonvolatile memory device and dedeuplicatiton method thereof
TW200917270A (en) Wear leveling method and controller using the same
CN106294007B (en) Data recovery method and device
CN109496292B (en) Disk management method, disk management device and electronic equipment
CN111007985B (en) Compatible processing method, system and equipment for space recovery of storage system
US10083087B1 (en) Managing backup copies in cascaded data volumes
CN102789456B (en) Method for cleaning redundancy files of disc
CN103034592A (en) Data processing method and device
CN103389942A (en) Control device, storage device, and storage control method
CN109976664A (en) The daily record data tissue of solid storage device
CN109558066B (en) Method and device for recovering metadata in storage system
CN104246716A (en) Method and device for processing storage space object
CN105095352A (en) Data processing method and apparatus applied to distributed system
CN103714146B (en) Storage method and device
CN102841853A (en) Memory management table processing method, memory controller and memory storing device
CN110737408A (en) hard disk cleaning method, system and device

Legal Events

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