Defrag on Linux?

QQ
edited April 2004 in Software
How/Do you defragment a drive under Linux? EXT3 FS.

-Q

Comments

  • To put it simply, you can't.

    To put it in complex terms, you have to re-write everything on the file system. :P That basically means ... put another drive in the system, copy everything over with 'cp -pR' (so that your permissions don't get fucked), boot Linux on the temporary drive, re-format the partitions on the original drive, copy everything back.
  • HeH, that's what my SCO manual says to do.

    -Q

    PS. I'm root, so if everything gets screwed, alright ;)
  • Really and truely, EXT3 and EXT2 partitions don't need defraging. The partition managnent way better then say FAT and NTFS. Heres a example, You install program A and then you install program B. Now if you uninstall or delete program A, program B moves / shifts over in its place. Also linux doesn't really have a registry, just a but load of config ascii files that are sitting in the /etc directory, just locate them and delete then, they're usealy the same name as the binary program. Thus this doesn't let fragmented files float around on the hard drive and cause things to go slow.
Sign In or Register to comment.