So... buy a larger hard disk, or get a second disk to copy everything to instead of a defrag utility?
I think I'll take the Windows approach here.
So... buy a larger hard disk, or get a second disk to copy everything to instead of a defrag utility?
I think I'll take the Windows approach here.
Of course with SSDs becoming more and more prevalent, this is becoming a non-issue anyway.
So, linux scatters the files. My partition is almost full and fragments. Now I copy all the files to a second location and wipe the partition. Now I copy them all back. Won't that just scatter all the files and fragment all over again ?!?
By copying files back en mass, fragmentation / allocation will be more optimized.
If you have insufficient disk overhead and continue the file destruction/creation process, you may end up with higher levels of fragmentation in future. This depends on your particular usage scenario.
If you're not underallocating disk, generally you won't have much of a problem.
This copy method can of course be done on Windows aswell, the only difference is that NTFS's file placement strategy generally results in more fragmentation over time than the strategies employed by Linux filesystems like ext(x). That said all filesystems get fragmented over time, no strategy can avoid this fully.
Also if your partition is very fragmented and you have many large files it can be faster to use this 'copy to another partition' method rather than using a defragmenter which will operate solely on the target partition and thus need to move many parts of files around in the partition to 'fit' in parts of other files. Of course using the copy-method requires you having another partition with enough free space so it might not always be a feasible option.