Andy H:
the_lhc:
Back on topic if you're really worried about, plug an external drive into the NAS, copy all the contents of the NAS onto the external drive, delete everything on the NAS and then copy everything back to the NAS, that will effectively defrag it as the copy operation will stream the files to the empty disk in one big contiguous block. Back in the old days we used to do that with SunOS 4.1.3 systems if they got really bad, except we'd write it off to tape and then stream it back on using tar. It'll take quite a while for the size of disks you get now mind...
Thankyou very much the_lhc, Thats an easy to follow sollution.
Yes but it's also an unnecessary one, if you're using the NAS to store music it's probably never going to get fragmented, you're taking an empty drive and writing large files to it, probably in one or two sessions initially, which will get written in nice large blocks on the disk. From that point you're not likely to be changing or removing those files, only adding additional large files which will simply get written at the end of the existing block. It's only when you start constantly changing, deleting, updating or growing files that you get fragmentation. For most music library disks it's probably never going to be an issue.