Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: SCSI Help Message-ID: <1990Aug29.191005.1246@eng.umd.edu> Date: 29 Aug 90 19:10:05 GMT References: <917@beguine.UUCP> <9927@goofy.Apple.COM> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 19 In article <9927@goofy.Apple.COM> stevec@Apple.COM (Steve Christensen) writes: > >If all you want to do is write all zeroes to all blocks on the disk, then >just make write requests to the driver. You can do it in a simple loop >something like this: > > allocate a 512 byte block and fill it with zeroes > for blockNum = 1 to NumberOfBlocks do > write the 512 byte block to drive block blockNum > >OK, so you wanted real code, but you get the idea. Why not: DIFormat(drvnum); ????? On every hard drive I've seen this will erase the disk to all zeros. -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu .sig under construction, like the rest of this campus.