Probably faster to move all files to your PC, then move all back to N900. Defrag on flash memory can be tricky too if it has wear-leveling.