<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; fragmentation</title> <atom:link href="http://www.ghacks.net/tag/fragmentation/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 20:51:26 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Does Linux need to be defrag&#8217;d?</title><link>http://www.ghacks.net/2010/06/07/does-linux-need-to-be-defragd/</link> <comments>http://www.ghacks.net/2010/06/07/does-linux-need-to-be-defragd/#comments</comments> <pubDate>Mon, 07 Jun 2010 00:29:08 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[defrag]]></category> <category><![CDATA[defragment]]></category> <category><![CDATA[fragmentation]]></category> <category><![CDATA[linux defrag]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=26259</guid> <description><![CDATA[I get this question a lot. And generally speaking the answer is a resounding &#8220;no&#8221;. I have gone nearly twelve years using Linux without defragging a drive and I&#8217;ve never noticed a slowdown on a system. But just because you don&#8217;t need to doesn&#8217;t mean you can&#8217;t. I have found  it possible to actually check [...]]]></description> <content:encoded><![CDATA[<p>I get this question a lot. And generally speaking the answer is a resounding &#8220;no&#8221;. I have gone nearly twelve years using Linux without defragging a drive and I&#8217;ve never noticed a slowdown on a system. But just because you don&#8217;t need to doesn&#8217;t mean you can&#8217;t. I have found  it possible to actually check the fragmentation of a linux mount point and defragment that mount point.</p><p>In this article I will discuss this very issue and then I will show you how you can test the fragmentation of a mount point on your Linux drive and then defragment that mount point.</p><p><span
id="more-26259"></span><strong>What it isn&#8217;t necessary</strong></p><p><strong></strong>This is the question I get nearly every time I tell a user that it is not necessary to defrag a Linux drive. The first and foremost reason you do not have to defrag a system is that the majority of files on a system need super-user permission to move. Oh sure you can move anything you want around in your <strong>~/ </strong>directory. But try to move anything in <strong>/usr/bin, /opt, /sbin</strong> or any other directory outside of <strong>~/ </strong>(without super user permission) and see how far you get. What this means is that during general, every-day usage the vast majority of files are not being moved around on your system. The only files you really need concern yourself with are the ones in your home directory &#8211; and those files have little to nothing to do with the performance of your machine.</p><p>Another difference is that some other operating systems try their best to place files as close the front of the drive as they can &#8211; without gaps. When files get moved around, these gaps appear, making it hard for the drive to be read. The Linux operating system does not do this. Instead the system starts in the center and places files not in a random fashion, but doesn&#8217;t concern itself with placing files next to one another in the start of the drive. So when spaces are created it&#8217;s not a big deal because the system is used to those spaces. The only time you will notice defragmentation on a Linux drive is when the drive is over 95% full. At that point the seeming &#8220;randomness&#8221; of placement will have caught up and the spaces between files might not allow for the addition of more files.</p><p>So when this happens&#8230;is it possible to defragment? Yes it is.</p><p><strong>Fragmentation check</strong></p><p>I discovered a very handy Perl script that will allow you to check a mount point for fragmentation. The script can be found <a
title="fragmentation check script" href="http://forums.gentoo.org/viewtopic-p-3111409-highlight-.html#3111409" target="_blank">here</a> in the discussion. Copy that code into a file called <em>fragmentation.pl<strong> </strong><span
style="font-style: normal">and give that file executable permissions with the command </span>chmod u+x fragmentation.pl</em>. Now issue the command:</p><p><em>sudo ./fragmentation.pl /home/USER </em></p><p><em></em>Where USER is the user who&#8217;s home directory you want to check.</p><p>You will most likely be surprised at how how low the number is. It will give you a report like:</p><p>﻿﻿<em>1.30108895488615% non contiguous files, 1.01067741479282 average fragments.</em></p><p><strong>Defragging </strong></p><p>Now, say you do want to defragment that home directory. You can do so with <a
title="defragmenting code" href="http://ck.kolivas.org/apps/defrag/defrag-0.06/defrag" target="_blank">this handy piece of code</a>. Save that piece of code in a file called <em>defrag.pl<strong> </strong><span
style="font-style: normal">and give it executable permissions with the command </span>chmod u+x defrag.pl</em>. Now issue the command:</p><p><em>sudo ./defrag.pl /home/USER</em></p><p>Where USER is the user who&#8217;s home directory you want to defragment.</p><p>Now this task can take some time, depending upon the size of your ~/ and how much is in that directory. But once it is done, issue the <em>fragmentation.pl </em>command again and I bet you will find the results positive.</p><p><strong>Final thoughts</strong></p><p>Although you will most likely never have to run this, it is nice to know that it is possible. The Linux system rarely gets fragmented to the point you will ever notice the slightest hiccup&#8230;at least not until that drive is nearly full. And considering the cost to size ratio of today&#8217;s drives, the possibility of them filling up is slim. And if they do, you&#8217;ll probably just go out and buy another drive.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/07/does-linux-need-to-be-defragd/feed/</wfw:commentRss> <slash:comments>23</slash:comments> </item> <item><title>Defraggler a defragmentation software</title><link>http://www.ghacks.net/2007/10/03/defraggler-a-defragmentation-software/</link> <comments>http://www.ghacks.net/2007/10/03/defraggler-a-defragmentation-software/#comments</comments> <pubDate>Wed, 03 Oct 2007 20:10:34 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[ccleaner]]></category> <category><![CDATA[defraggler]]></category> <category><![CDATA[defragmentation]]></category> <category><![CDATA[disk]]></category> <category><![CDATA[fragmentation]]></category> <category><![CDATA[hard-drive]]></category> <category><![CDATA[recuva]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/10/03/defraggler-a-defragmentation-software/</guid> <description><![CDATA[The makers of CCleaner and Recuva have created a new software called Defraggler which is a defragmentation software for Microsoft Windows 2000 up to Windows Vista. Defraggler introduces some new features that most - if not all - other defragmentation softwares are missing.]]></description> <content:encoded><![CDATA[<p>The makers of CCleaner and Recuva have created a new software called Defraggler which is a defragmentation software for Microsoft Windows 2000 up to Windows Vista. Defraggler introduces some new features that most &#8211; if not all &#8211; other defragmentation softwares are missing.</p><p>It is for instance possible to get a visual analysis of the fragmentation level of a folder or file. While it is nice to know it would not make much sense if the software would not take advantage of this feature. Defraggler makes it possible to just defrag a folder or file instead of defragmenting the complete drive.</p><p>This is of course considerably faster than defragmenting the whole hard drive and useful if you want to work with a certain application. As far as I can tell it is not faster or slower than any of the other defragmentation tools out there but as I said, the new feature makes it stick out from the rest.</p><p><span
id="more-2082"></span><img
src="http://www.ghacks.net/files/screens/2007/10/defraggler.jpg" alt="defraggler file defragmentation software" /></p><p><strong>Read More:</strong></p><p><a
href="http://www.piriform.com/defraggler">Defraggler</a></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/10/03/defraggler-a-defragmentation-software/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
