Xref: utzoo comp.unix.questions:15979 comp.sources.wanted:8584 comp.unix.wizards:17859 Path: utzoo!attcan!uunet!wyse!vsi1!apple!oliveb!pyramid!decwrl!hplabs!hp-ses!hplabs!ucbvax!unisoft!cander From: jay@ncspm.ncsu.edu (Jay C. Smith) Newsgroups: comp.unix.questions,comp.sources.wanted,comp.unix.wizards Subject: Re: Re^2: Earthmen are sooo clever Message-ID: <1788@ncsp24Aug198920:30:10GMT Date: 21 Aug 89 17:28:58 GMT References: <5176@ucdavis.ucdavis.edu> Lines: 21 From article <5176@ucdavis.ucdavis.edu>, by cck@deneb.ucdavis.edu (Earl H. Kinmonth): > On some systems, such as SCO Xenix, an approach such as the following > has the effect of defragmenting file systems. > (a) backup up the file system you want to defragment (or at least > major directory trees in that system); > (b) verify the backup; > (c) remove the backed up files; > (d) fsck -s > (e) restore from the back up. A faster alternative to steps c and d is mkfs. This will have the effect of removing all files and rebuilding the free list and it runs a lot faster than "rm -fr *" fo