Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!amdahl!drivax!alexande From: alexande@drivax.UUCP (Mark Alexander) Newsgroups: comp.sys.ibm.pc Subject: Re: Low level format Message-ID: <2455@drivax.UUCP> Date: Mon, 28-Sep-87 14:12:44 EDT Article-I.D.: drivax.2455 Posted: Mon Sep 28 14:12:44 1987 Date-Received: Tue, 29-Sep-87 07:28:59 EDT References: <299@ucdavis.ucdavis.edu> Reply-To: alexande@drivax.UUCP (Mark Alexander) Distribution: world Organization: Bob-ist Temple of Monterey Lines: 53 Keywords: Bad sectors Summary: Here's a program to do it Several people have asked for something like this, so here's a program to do a low-level format for the hard disk on a PC/XT. It tells you what the drive parameters appear to be, then asks you a couple of times if you're really sure you want to destroy the disk, so it's safe to use. The program definitely works on PC/XTs with the Xebec/IBM controller. It was also tested four years ago with some WD and Adaptec controllers, but may not work with current models. It doesn't work on ATs because they took out the Format Drive command from the BIOS, for some reason. Please ignore the copyright notice. I wrote this years ago for a company that no longer exists. Sorry, I've lost the source, but it's a MASM program that's easy to disassemble. The core of the program could be restated by the following four lines of code: mov dx,80h ; drive c, use 81 for drive d mov cx,1 ; start track 0, sector 1 mov ax,706h ; format drive (AH), interleave 6 (AL) int 13h ; call the Fixed Disk BIOS In fact, you could just use DEBUG and enter this program without all the frills. ------------------------------ Cut here ------------------------------ begin 664 fdfmt.com MNN\!Z+T#N```CL"[!`&,R([8)HM7`B:+/X/Z`'4#Z<,`CL*Z'`+HF@/HG`,L M,#P"<@/IM`"B[@$\`+HB`^QU!-#HT.@D`[0`T>#1X-'@T>`#^+I@`B:+!>B` M`[J$`B:*10*T`.AT`[JH`B:+10/H:@.ZS`(FBT4%Z&`#NO`")HI%![0`Z%0# MNA0#)HI%"+0`Z$@#NC@#Z"H#Z"P#/%FZ?`-U/+K!`^@:`^@<`SQ9NK($=2RZ M"@3H"@.X`,B.P+L``(H6[@&V`(#*@+@`#\T3N0$`N`8'S1.Z901S`[J?!.CA M`LT@NC$$Z_:Z00+K\0!&1$9-5"!6,2XQ("`H0RD@0T]065))1TA4(%)/34]8 M+"!)3D,N(#$Y.#,-"B1$;R!Y;W4@=VES:"!T;R!F;W)M870@9')I=F4@,"!O M6]U(&%R92!F;W)M871T M:6YG/R`D#0I#:&5C:R!T:&4@9')I=F4@='EP92!J=6UP97)S(&]N('1H92!D M:7-K(&-O;G1R;VQL97(@86YD('1R>2!A9V%I;BXD#0I!;&P@9&%T82!O;B!T M:&4@:&%R9"!D:7-K('=I;&P@;F]W(&)E(&5R87-E9"X-"DES('1H:7,@=VAA M="!Y;W4@=V%N=#\@)`T*1F]R;6%T=&EN9R!T:&4@9&ES:R`M('!L96%S92!W M86ET+BXN)$AABB_\,````````` ` end -- Mark Alexander ...{hplabs,seismo,sun,ihnp4}!amdahl!drivax!alexande "Bob-ism: the Faith that changes to meet YOUR needs." -- Bob