How To Help Reduce Disk Fragmentation

free web hosting
Free Web Hosting > Computers & Tech > How-To's and Tutorials > OS > Windows

How To Help Reduce Disk Fragmentation

qwijibow
Today, the microsoft windows operating system is the only OS so suffer from disk fragmentation and need constant maintenance with a disk "defragmentor"

their are 2 main reasons for this...
1) The file system, NTFS is FAT32 are seriously out dated. reiserfs, Xfs and Jfs would be much better solutions, but unfortunatly, microsoft are planning on sticking with NTFS for longhorn.
there is nothing we can do about this.

2) The SWAP file !

first a definition of the swap file (sometimes called virtual memory)
All running programs need to be stored in RAM. to keep the RAM clean, and maximise the amount of programs you can have running, RAM which hasnt been accessed fro a while is removed from ram, and swapped onto the hard disk, when it is next needed, it swapped back in. basically, it allows you to use a much slower, but larger hard disk, asif it were RAM memory.

now, the porblem.
the swap file is a single file which can often grow upto a gigabyte in size. this file is constantly growing, shrinking, moving. which causes it, and all other files on your disk to become fragmented.

the swap file is a NIGHMARE.

the solution.
Other OS's like Unix, BSD and Linux have a simple yet highly efficiant way to completely prevent this kind of fragmentation...

they dont have a swap file, they have a swap partiton.

unlike a file within the main file system, a partiton is a seperate area of the disk, completely unrelated to the main root filesystem.

in the old days, a swap partiton was annoying because a partiton always takesa certain amount of space, it cannot grow or shrink like a file. so if you have a 1gig swap partiton, you will always have 1 gig missing from your disk, even if the swap is unused. however today, a singl;e gigabyte is nothing, hard drives are massive. the difference between a 40gig and80gig disk is £10.

implementing the solutions...
1)The easy solution would be to simply to turn the virtual memory / Swap Off in the memory management of the ocntrol panel, however unless you have alot or ram, you run the risk of crashing if your memory is dipleated.

2) add a second hard disk, prefferable ona different IDE channel an use that as purely swap.

3) the super fun cool hack way....
re-partiton your windows disk, and add a swap partiton.

to do this without having to format the disk you will need a liveCD called knoppix (http://knoppix.org)
burn the cd iso to a cdrom and boot it.
you need to do this because you cannot repartiton a mounted disk.

in the main menu once you have booted the disk is a porgram called qt-parted.
this is a graphical forontend to a free partiton tool called "parted"

its very simple to use, shrink your windows partiton by the amount of swap you want to use... 1Gb should be more than enough unlesss you do some hard core multimedia editing.

in the empty space at the end of your disk, add a new partiton and format is as "vfat" which is anouther name for "fat32" fat32 is flaster than NTFS, and because the partiton is only 1Gb in size, we dont needs NTFS's abilites to hold files greater than 4GB.

re-boot windows, in the cotrol panel, set the swap files ocation to the newly grated partiton (probably labeled D:/)

THEN boot knoppix again, and delete the old swap file from windows C:/ disk.

THEN defragment your both partitons.

you should now dotice then the main partiton needs defragmenting less often.

 

 

 


Reply

miCRoSCoPiC^eaRthLinG
Hey good tip. I've tried this before and it indeed gives you quite a good boost (even though if you try the same with '98 it actually slows the system down).

Reply

harriko
what is defragmentation anyway? isit the files being split all over the hard drive so when it loads up it takes much longer to find the file parts. after i used disk fragmentation the computer will run faster and reduce any errors. i correct?

Reply

miCRoSCoPiC^eaRthLinG
QUOTE(harriko @ Feb 8 2005, 11:31 PM)
what is defragmentation anyway? isit the files being split all over the hard drive so when it loads up it takes much longer to find the file parts. after i used disk fragmentation the computer will run faster and reduce any errors. i correct?
*



Yups absolutely.. Degragmentation is the act of putting all those scattered file parts into ONE BIG CONTIGUOUS block so that your HDD Head can read the whole file in ONE Sweep rather than jump around all over the hdd to find the fragments - which of course would cost it a hell lot in terms of read time. If you want to find out the exact definition I suggest you to visit http://www.wikipedia.org and search for this particular term. smile.gif

 

 

 


Reply

vizskywalker
My personal favorite method of preventing disk defragmentation is something I'm using in the OS I'm writing. Simply move the files on disk when deleting a file. Or if, like windows does, you have every file stop and start on specified boundaries, only save the file to a spot that has a enough contiguous boundaries (which windows doesn't).

Reply

qwijibow
Im no expert.... but i think that would seriously damage disk throughput performance.

what filesystem are you planning on using ???
ive heard very good things about XFS, JFS, and reiserfs.

Reply

vizskywalker
I don't know yet, I'm still in the developement stage. But yeah, constantly moving files will damage the disk over a long period of time, but the time period is so long that it won't cause noticeable problems for anyone who uses the disk. Basically what it is a mini defrag, except the only thing being moved is empty space, not chunks of files, so it takes much less time because a search doesn't need to be done for the file chunks. Another advantage is you leave no traces of the file that originally existed. And my OS is actually going to have several deletes, one removes the file from the file tree, the second overwrites it with 0s, and the third does the mini-defrag. The user can pick a default, or pick one to use at any specific delete.

Reply

iGuest
I think in windows you can configure the swap file to a fix size.
For exaple you set min = 1 gig , max = 1 gig ,

No changing size of pagefile .Sys => no fragmentation

No need to create a prtition.

-toot

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. prevent disk fragmentation - 1.35 hr back. (1)
  2. fragmentation ntfs 3.0 - 4.61 hr back. (1)
  3. how to reduce fragmentations - 7.67 hr back. (1)
  4. 98% hard disk fragment - 24.36 hr back. (1)
  5. how do you reduce fragmentation - 26.51 hr back. (1)
  6. reduce disk fragmentation - 32.11 hr back. (1)
  7. disc fragmentation - 47.84 hr back. (1)
  8. do we disk fragment in linux - 58.82 hr back. (1)
  9. how to reduce hard disk fragment - 64.67 hr back. (1)
  10. what is disc fragmentation - 66.58 hr back. (1)
  11. english and grammar defragmentation - 68.89 hr back. (1)
  12. avoid hdd fragmentation - 73.83 hr back. (1)
  13. how to disk fragmentation - 107.11 hr back. (1)
  14. how to do a disk fragmentation - 124.59 hr back. (1)
Similar Topics

Keywords : reduce, disk, fragmentation

  1. Avoid Flash Disk Viruses
    This ruins a lot of Windows PC! (14)
  2. Custom Icon For Your Hard Disk Drives ( For Cds Also)
    (2)
    Hi all, Please have a look at here! Its the window for me, while clicking " MY Computer " (
    Not "Your Computer" /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif"
    /> he he! Just Kidding) Ok, Do you like to put your own Icons for each and every Drive in your
    computer? ( You can use seperate icons for the CDs also, and u can see the same icon, for the CD,
    if you use it in any computer around!!) Yes.. Its one simple thing to put the
    icons!! I will explain how to put those icons! Steps: Step 1: Get some cu....

    1. Looking for reduce, disk, fragmentation

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for reduce, disk, fragmentation
advertisement




How To Help Reduce Disk Fragmentation



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE