*BSD News Article 11005


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1134 ; Tue, 23 Feb 93 14:27:32 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!samsung!nighthawk.clearpoint.com!transfer.stratus.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!usc!rpi!uwm.edu!caen!umeecs!quip.eecs.umich.edu!dmuntz
From: dmuntz@quip.eecs.umich.edu (Dan Muntz)
Newsgroups: comp.unix.bsd
Subject: [386BSD] dzap - a simple disk zapping program
Message-ID: <1993Feb12.085428.5481@zip.eecs.umich.edu>
Date: 12 Feb 93 08:54:28 GMT
Sender: news@zip.eecs.umich.edu (Mr. News)
Organization: University of Michigan EECS Dept., Ann Arbor, MI
Lines: 191


dzap is a program I wrote some time ago to edit boot sectors on the IBM RT.
I've since made it fairly portable and have been using it under 386bsd.
Included below is the README file followed by the uuencoded source (it's
short).

/****************************************************************/
/* dzap v1.0 - a curses-based disk zapping tool                 */
/* by Dan Muntz - dmuntz@citi.umich.edu                         */
/* Feel free to copy/distribute/modify this code as long as     */
/* these comments are left intact.                              */
/* The author bears no responsibility for any consequences of   */
/* any use or misuse of this program.                           */
/****************************************************************/

dzap is a curses-based binary file editor.  Although it was written primarily
for operations on the raw disk device, it can also be useful on /dev/mem and
regular files.  BE CAREFUL WHEN EDITING THE RAW DISK AND MEMORY.

To build dzap, type 'make'.  This will leave a 'dzap' binary in the
current directory which can be installed anywhere.  At one point, dzap
compiled effortlessly on 386/486 machines (running 386bsd and Mach 2.5), Suns,
RTs (AOS/BSD 4.3), and others.  I've made changes since then, but if it no
longer compiles instantly on any of the above, it shouldn't be too hard to
bring up.

invocation: dzap [-s] [-r] filename
-r - read only (writing permited is the default)
-s - small screen (block size = 256 bytes)
filename must be an existinIHAVE <C2Ar73.LFo@iat.holonet.net>