🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5383

Hard-disk protection

#5383
From: David Fetrow
Date: Tue, 21 Jan 1986 01:31
63 lines
2561 bytes
<Prevents accidental Erasure by Line-Eater>


 The following proceedure has proven useful in preventing accidental
erasure of hard disks in MS-DOS systems. 

	1: Rename FORMAT.COM in your DOS directory to KILLDISC.COM
	2: Place the following file as FORMAT.BAT in the DOS directory

 This little ".bat" file has saved more than a few hard-disks from
premature distruction. It is transparent to the user except:

	1: Drive C: cannot be formatted by the "format" command
	   (Note that killdisc IS the old format command so the)
	   (capability isn't lost: "killdisc c:" works.        )

        2: There must be a space between the drive name and the
	   switches (e.g. "format a: /s" works but "format a:/s"
	   doesn't).

 It is simple and somewhat inelegant. It is also extremely
useful! Any modifications needed for your system should be
clear. It is configured for a one floppy (A:), one hard-disk
(C:) machine.

  -Dave Fetrow

=========================== Cut here ==============================
echo off
cls

rem Non-standard FORMAT command to help prevent accidental erasure
rem of the fixed disc.  -Dave Fetrow 9/16/85
rem This is in the Public Domain, do what you will with it -df-

rem List of authorized FORMAT drives goes here (both case letters)
IF %1 == A: GOTO OK
IF %1 == a: GOTO OK

GOTO NOWAY

:OK
killdisc %1 %2
goto DONE

:NOWAY

echo  ERROR! You are attempting to FORMAT a disk which is either 
echo             non-existant or vitally important!
echo   
echo                    **** ABORT FORMAT ****

:DONE

============================ End of FORMAT.BAT =======================
-- 
 
  - Dave Fetrow

{ ihnp4, fluke, tektronix, uw-june }!uw-beaver!entropy!fetrow :UUCP
  entropy!fetrow@uw-june.arpa                                 :ARPA
  fetrow@UWALOCKE                                             :BITNET
  74175,1724                                                  :Compuserve
Technical Details
Message-ID: <244@entropy.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!uw-june!entropy!fetrow

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site entropy.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!uw-june!entropy!fetrow
From: fetrow@entropy.UUCP (David Fetrow)
Newsgroups: net.micro.pc
Subject: Hard-disk protection
Message-ID: <244@entropy.UUCP>
Date: Mon, 20-Jan-86 20:31:08 EST
Article-I.D.: entropy.244
Posted: Mon Jan 20 20:31:08 1986
Date-Received: Wed, 22-Jan-86 04:32:02 EST
Organization: UW MathStat, Seattle
Lines: 63
Keywords: Prevents accidental formats