I started using Linux recently. On windows (which I've used all my life) to keep the HD tidy there are several tools, e.g. disk cleanup and defragger. On Linux what should I do to tidy up a hard disk.
I'm using Linux Mint.
|
I started using Linux recently. On windows (which I've used all my life) to keep the HD tidy there are several tools, e.g. disk cleanup and defragger. On Linux what should I do to tidy up a hard disk. I'm using Linux Mint.
| ||||
|
show 6 more comments
feedback
|
|
Linux machines do not generally need that kind of regular cleanup, because demanding user to take manual actions to clean after programs and OS is generally frowned upon. EXT3, the usual default file system, does not need defragmentation and the only files you really need to clean up are the ones you create yourself. | |||||||
feedback
|
|
There are several ways in which you can tidy your Linux Mint system. Here's some. PackagesLinux Mint uses the dpkg package management system. With the
to remove packages that were automatically installed to satisfy dependencies for some package and that are no more needed. You can also run
to clear the local repository of retrieved package files are largely useless. I prefer to use
When removing or purging with aptitude it can automatically detect packages that are not needed so there is no equivalent of
It simply lists packages that are not needed by your system. It doesn't remove the unneeded packages. You'll have to do that yourself, e.g. by
Disk spaceTo clear up disk space you can use a utility such as Baobab to check what is taking space and decide whether to keep it or not, e.g. let is scan your | |||
feedback
|
|
Windows with it's FAT or NTFS file systems tends to place files continuously one behind another from beginning of disk or partition. This leads to file fragmentation as these files are modified over time (files are split into multiple parts). Accessing a fragmented file may require several I/O calls (SLOW) to read that one file. Linux file system such as ext3 or ext4 on the other hand tend to place files spread out over the disk with free space available so the file could grow without being split into fragments. That is why you do not have to worry about fragmentation while your disk usage is below 80%. | |||
|
feedback
|
|
Generally, people often say that defragmenting ext2/3/4 filesystem is not needed. Don't get tricked; while these filesystems operate much better than the old DOS FAT, the fragmentation must be present anyway from principial reasons - though in much much smaller extent. To check the fragmetation try these standard tools:
I haven't found standard tools for defragmentation. There are some non-standard tools, you can try one of these links for more info: http://en.wikipedia.org/wiki/Ext3#Defragmentation But personally, I don't care about fragmentation on ext2/3/4 filesystems. | |||
|
feedback
|
|
this could be of help. http://www.linux.com/news/hardware/peripherals/8247-disk-usage-analysis-and-cleanup-tools | |||
feedback
|
cat /etc/fstab. The file system type is listed under "<type>". – N.N. Aug 10 '11 at 13:22