LINUX disk fragmentation quick cleanup tool Kleandisk

Source: Internet
Author: User
Article Title: LINUX disk fragment quick cleanup tool Kleandisk. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
No matter what types of file formats (ext3, JFS, XFS, and ReiserFS) are used in the Linux File System, what types of Hard Disks (IDE and SCSI) are used ), over time, file systems tend to be fragmented. Although advanced file systems such as ext3 and JFS can reduce file system fragmentation, they are not eliminated. In busy database servers, file fragmentation reduces hard disk performance (Hard Disk performance can be noticed only when data is read or written from the hard disk ). After a long time, you will find that a lot of junk files are accumulated on each disk. Releasing disk space can help the system better work. In Linux, the best way to clear disk fragments is to make a full backup, reformat the partition, and restore the file from the backup. However, this is difficult for servers that work throughout the day and run key tasks.
  
The most effective way to clean up a disk is to delete useless files. It is recommended that you take some time to clean up junk files such as *. log and *. error generated during Linux running. This not only saves disk space, but also improves system performance.
  
There are many methods to clear disk fragments, which are relatively difficult to manually. The following describes how to use the tool software, Kleandisk, to quickly clear disk fragments to optimize Linux system performance.
  
Kleandisk is an efficient disk cleanup tool that divides files on disks into different "groups", such as grouping all core files into groups ), in this way, you only need to delete this group when deleting all core files. A core file is a file generated when a software running error occurs. It is useful to software developers and does not make any sense to other users (such as email servers. Therefore, if you do not need software development, you can delete the core file. The installation of Kleandisk is relatively difficult. It is a tool software that has been hard to deal with since I used Linux. It is highly dependent on some link library (libpng. so.2) files, and also needs Python support. So here I will write more details about software installation.
  
   Software Download
  
1. Download
Library file for linux/redhat.com/dist/linux/9/en/ OS/I #/redhat/rpms/libpng10-1.0.13-8.i386.rpm "> ftp://at.rpmfind.net/linux/redhat.com/dist/linux/9/en/ OS /i386/RedHat/RPMS/libpng10-1.0.13-8.i386.rpm
The software is ingress.
  
2. System Requirements
Hardware: the central processor must be compatible with Intel x86 processor Pentium MHz or above, 32 MB (64 MB recommended) memory, MB hard disk space, and 4 MB memory. Software: kernel version 2.2 or above, KDE 2.0 or above, GNOME 1.2 or above, X-Window System XFree86 3.6.x or above, desktop resolution at least 800 × 600, the Desktop color must be at least 65000 colors (16 bits ).
  
   Software Installation
  
1. Support Software Installation
  
# Rpm-ivh libpng10-1.0.13-8 RPM for i386
# Gunzip Python-2.3.2.tgz; tar vxf Python-2.3.2.tar; cd Python-2.3.2
#./Configure; make install
  
2. Main Program Installation
  
# Gunzip kleandisk-1.1.1.tar.gz; tar vxf kleandisk-1.1.1.tar.gz
# Cd kleandisk-1.1.1
#./Configure; make install
  
3. Configuration Software
  
After installation, you can perform the following steps.
  
(1) log on to the X-Window Interface of Linux as the root user (SEE)
  
Run the following command to open the software:
  
#./Kleandis
  

 


Kleandisk running interface
  
(2) set the Backup Directory. Click "Setting" in the main menu to create a backup directory (/root/. kde/share/apps/kleandisk/archive.
  

 


Set Backup Directory
  
  
(3) After the backup directory is set, you can delete junk files in the system with ease. In front of the spam file, click the "Cleanup" button in the main menu and then follow the instructions for deleting the file.
  
(4) Schedule and automatically clear the disk. A characteristic of Kleandisk is that it can regularly schedule disk cleanup by setting a schedule. You can click the Scheduling button on the "UDGEditor" Panel and subscribe to the "Enable Scheduling" option to schedule Disk Cleanup. For details, see.
  

 


Kleandisk schedules
  
  
(5) In addition, Kleandisk can also reverse install the RPM package in Linux. After clicking "RPM's" in the "Group" menu, the system will automatically search for all RPM packages, so that you can safely and thoroughly clear the RPM packages that are no longer in use. See.
  


Use Kleandisk to thoroughly clear useless RPM packages
  
   Summary
  
Kleandisk also has some other functions, such as searching for many duplicate files in the Linux File System. Although Linux has a lot of automated function settings, it is inevitable that many unnecessary files will be generated during the use process. A long time may cause accumulation in the hard disk space. This not only occupies disk space, but also reduces system performance. At this time, tools such as Kleandisk are required to "take a bath" on the hard disk ".
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.