🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7781

Re: How does DOS know a HD is unformatted?

#7781
From: Ralf Zessin
Date: Tue, 26 Jan 1993 13:30
23 lines
1489 bytes
In <1jhn42INNfma@news.cerf.net> cmd@nic.cerf.net (Jeff Blaalid) writes:

]I am writing a block device driver for hard disks, and am having
]trouble figuring out how to tell DOS when a disk is unformatted.
]Normally, if you try to access an unformatted disk, you get the
]"Invalid media type" error from command.com.

]I have tried returning "Invalid media" from the media check command,
]but that causes the "Invalid media type" error to happen when you
]start fdisk.  Putting an invalid media descriptor in the BPB returned
]from Build BPB doesn't help, either, because DOS seems to ignore it.
]There just doesn't seem to be any documentation on how a device driver
]is supposed to tell DOS that a disk is unformatted.

]Thanks in advance to any kind souls who have a solution.

]Sam Lin

If there is a valid fat + root-directory , it's formatted otherwise
not. This are the two things missing after low-level format and
partitioning.

	- Ralf
Technical Details
Message-ID: <1702@diane.informatik.uni-frankfurt.de.informatik.uni-frankfurt.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!Sirius.dfn.de!informatik.uni-frankfurt.de!helena.rbi.informatik.uni-frankfurt.de!zessin
References: <1jhn42INNfma@news.cerf.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!Sirius.dfn.de!informatik.uni-frankfurt.de!helena.rbi.informatik.uni-frankfurt.de!zessin
From: zessin@helena.rbi.informatik.uni-frankfurt.de (Ralf Zessin)
Newsgroups: comp.os.msdos.programmer
Subject: Re: How does DOS know a HD is unformatted?
Message-ID: <1702@diane.informatik.uni-frankfurt.de.informatik.uni-frankfurt.de>
Date: 26 Jan 93 13:30:26 GMT
References: <1jhn42INNfma@news.cerf.net>
Sender: news@informatik.uni-frankfurt.de.informatik.uni-frankfurt.de
Lines: 23