Linux Stall
  • Home
  • Android
  • How to
  • Perl
  • Tips
  • Tutorials
No Result
View All Result
Linux Stall
No Result
View All Result
Home FAQ

NO DEFRAGMENTATION NEEDED IN LINUX

Ayush Goyal by Ayush Goyal
October 24, 2012
in FAQ
43 2
3
defragment in linux
15
SHARES
751
VIEWS
Share on FacebookShare on Twitter

We all must have heard about defragmenting our hard drives to speed up performance. Sound of that similar to windows users but we don’t have any defragment utility, hell, we don’t need to defragment! And why is that? Lets find out-

I remember when I was new to Linux, a friend of mine came with a hard disk and asked me to defragment it (yeah, we all have faced it).  It was easy in windows, how hard it could be in Linux?  I connected the spare bus to his hard disk and then started a mission to defragment via Linux. I can’t stress this enough that I was new to Linux and didn’t know much about how things work. After trying every bit I knew, looked up the mighty google and it came like a bolt from the blue- NO DEFRAGMENTATION NEEDED IN LINUX. </chitchat>

What do you mean by fragmentation of hard disk?

I’ll cover it in as short as possible; your hard disk is divided into sectors. These sectors are capable of storing small pieces of data. So, when the size of file is more than size of a sector then the file is saved over multiple sectors, as simple as that. As the new file comes, it is saved next to previous sector. But, when the size of first file increases, it might not find free sectors near original file so it will be saved few sectors apart, this goes on and on. While reading this file, the head will have to skip physical locations which ultimately will make things slower. Defragmentation is the process in which file is put back in continuous fashion so that there is no skipping of sectors.

Note: Defragmenting is not recommended for SSD drives. They have a different theory, doing so will reduce their life.

How it works in case of Linux?

Linux’s file systems deal with fragmentation in an intelligent way. Instead of placing files next to each other, it keeps a lot of space between the sectors of two files therefore leaving space for these files to grow. This keeps fragmentation far away, yet not impossible. Even if there are fragments, file system attempts to move the files thereby reducing the fragmentation. The system is designed to avoid fragmentation in normal use. You might face some fragmentation when your space fills up, may be 80% or 90%. The more suitable method to deal with it is to get a new hard drive with more space else you can copy your files to other drive, delete original files and then copy them back- they will be arranged automatically.

Tags: filesystem
Previous Post

Linux kernel 3.6 released

Next Post

Take screenshot in Linux with Shutter

Ayush Goyal

Ayush Goyal

Yet another geek!

Related Posts

How to run sudo command without password on Linux?
FAQ

How to run sudo command without password on Linux?

June 21, 2015
How to add taskbar in Ubuntu 14.04?
FAQ

How to add taskbar in Ubuntu 14.04?

July 6, 2014
Learn Linux Online
FAQ

Top 10 places to learn Linux online

December 31, 2012
linux antivirus
FAQ

Linux doesn’t need no antivirus. A Myth!

June 27, 2012
Actual meaning of Free Software: Free as in beer versus Free as in speech
FAQ

Actual meaning of Free Software: Free as in beer versus Free as in speech

February 27, 2012
CentOS vs Ubuntu
FAQ

CentOS vs Ubuntu

February 15, 2012
Next Post
Take screenshot in Linux with Shutter

Take screenshot in Linux with Shutter

Comments 3

  1. Josh says:
    8 years ago

    Actually there are few GNU/Linux tools for defragmentation:

    http://www.vleu.net/shake/
    http://ck.kolivas.org/apps/defrag/

    ext4 can be defragment using e4defrag

    Reply
  2. Adam says:
    8 years ago

    Let us not speak of desktop fragmentation in linux! There is no utility to fix that.

    Reply
  3. The 1990's Called says:
    8 years ago

    Wow, now I am really convinced to move to Linux!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Terms and Conditions
  • Contact Us
  • About Us

© 2012 - 2020 Linux Stall - A place for all your Linux needs.

No Result
View All Result
  • Home
  • Android
  • How to
  • Perl
  • Tips
  • Tutorials

© 2012 - 2020 Linux Stall - A place for all your Linux needs.

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In