🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #7923

Re: HELP!!...Checking a floppy diskete for blank/non-blank status

#7923
From: John Chapman
Date: Mon, 29 Sep 1986 03:34
66 lines
3700 bytes
> In article <806@aluxs.UUCP>, cdl@aluxs.UUCP (MITCHELL) writes:
> > I posted this question a while back.  Does anyone know how to find out
> > if a floppy diskette is blank/non-blank without using the 'dir' command.
> > 
> 
>   *gee*, I don't know.  What sort of floppy diskette?  8", 5 1/4", 3 1/2",
>   3 1/4", 3"???????????????
> 
> > Basically, using the "dir" command to check whether a diskette is blank-
> > -non/blank is okay if, the diskette contains data.  However, if the disk-
> > -ette is blank you get that "A(bort) R(etry) I(gnore)" error.  Depending
> > on the application you are running you might abort your program.
> 
>    DIR command?  Lessee, that command will accomplish something or another on
>    RSTS/E, RT-11, RSX, NOS, CP/M, MS/DOS, and any number of other operating
>    systems I can think of, and no doubt myriads with which I am unfamiliar.
> 
> > 
> > If anyone knows the answer to this problem please let me know
> > 
> > Ps.
> > A source code on how to do this would be more than welcome.
> 
>    Sure.  How about telling us what sort of hardware you're running on, and
>    under what operating system?   Don't you think that might be slightly
>    helpful?
> 
>    I complain a *LOT* about the arrogance of IBM-PC and clone users, who
>    seem to think the entire world uses and cares about their kind of machine.
>    I complain about non-general questions being posted to net.micro.  I am
>    going to have to re-think my position, as this question has to be one of
>    the most general (and meaningless, and unanswerable) questions I have 
>    ever seen.
> 
> -- 
> 
> Disclaimer:  Disclaimer?  DISCLAIMER!? I don't need no stinking DISCLAIMER!!!
> 
> tom keller					"She's alive, ALIVE!"
> {ihnp4, dual}!ptsfa!gilbbs!mc68020
> 
> (* we may not be big, but we're small! *)

 This is really offensive.  The guy's question is neither meaningless nor 
 unanswerable.  I find an innocent misposting a lot less irritating (not
 to mention arrogant) than your "reply".  If you want to complain to
 someone send him email, don't make the entire net distribute your attempts
 at witticisms.  BTW shouldn't your posting have gone to a different group
 since it deals with netiquette and not micro's??

 To the original poster:
 You will have to do two things,

 1) The disk may not be formatted and this (along with damaged disks and
    disks formatted by sufficintly alien controllers) will cause the
    "Abort, Retry,....etc" message.  Probably the only way for you to
    detect this is to directly read the disk, perhaps using some of the
    bios code or by writing your own routine to access the controller
    chip.  You should then get an error status back. It would probably
    be sufficient to just try and read the first sector on the first track
    to determine if the disk was properly formatted.

 2) the disk may be formatted correctly but not have a dos file structure
    on it.  This should be easily detected by trying to open a file.

   Hope this helps.........
Technical Details
Message-ID: <9@fornax.uucp>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!lll-crg!lll-lcc!qantel!hplabs!tektronix!uw-beaver!ubc-vision!fornax!chapman
References: <806@aluxs.UUCP> <1036@gilbbs.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!lll-crg!lll-lcc!qantel!hplabs!tektronix!uw-beaver!ubc-vision!fornax!chapman
From: chapman@fornax.uucp (John Chapman)
Newsgroups: net.micro.pc,net.micro
Subject: Re: HELP!!...Checking a floppy diskete for blank/non-blank status
Message-ID: <9@fornax.uucp>
Date: Sun, 28-Sep-86 23:34:02 EDT
Article-I.D.: fornax.9
Posted: Sun Sep 28 23:34:02 1986
Date-Received: Thu, 2-Oct-86 19:35:49 EDT
References: <806@aluxs.UUCP> <1036@gilbbs.UUCP>
Organization: Computing Science Dept, SFU,  Burnaby, B.C. Canada
Lines: 68