Newsgroups: comp.sys.cbm Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!sarah!bingnews!vu2416 From: vu2416@bingvaxu.cc.binghamton.edu (vu2416) Subject: Re: Dis Defragmenter Message-ID: <1991Mar19.041534.27398@bingvaxu.cc.binghamton.edu> Organization: State University of New York at Binghamton References: <31152@usc> Date: Tue, 19 Mar 1991 04:15:34 GMT There was a thread going for a while about writing a defragmenter for Commodore disks. I was seriously considering writing one (I've got code laying around that'll show the list of tracks and sectors in use by a particular file etc...) when I realized that the following process will work a lot faster: 1. Format a temporary disk 2. Copy the disk to defragment onto the temp disk 3. Format the defrag. disk 4. Use a file copier to copy all the files back onto the defrag. disk. DOS should write all the files in track / sector order. My best idea was to use the REU as the temporary disk. Maybe when I get my REU (it's in the mail) I'll look at the RAMDisk code to see if I can write a 'defragment' command. If anyone's interested. :) Comments would be appreciated. Gregg Riedel consp24@bingsuns.pod.binghamton.edu