I'm pretty sure some versions of DOS had a defrag tool, or at least windows 9x had a DOS mode equivalent where you could see the block map getting moved around.