home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12484 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. Path: sparky!uunet!math.fu-berlin.de!Sirius.dfn.de!informatik.uni-frankfurt.de!helena.rbi.informatik.uni-frankfurt.de!zessin
  2. From: zessin@helena.rbi.informatik.uni-frankfurt.de (Ralf Zessin)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: How does DOS know a HD is unformatted?
  5. Message-ID: <1702@diane.informatik.uni-frankfurt.de.informatik.uni-frankfurt.de>
  6. Date: 26 Jan 93 13:30:26 GMT
  7. References: <1jhn42INNfma@news.cerf.net>
  8. Sender: news@informatik.uni-frankfurt.de.informatik.uni-frankfurt.de
  9. Lines: 23
  10.  
  11. In <1jhn42INNfma@news.cerf.net> cmd@nic.cerf.net (Jeff Blaalid) writes:
  12.  
  13. ]I am writing a block device driver for hard disks, and am having
  14. ]trouble figuring out how to tell DOS when a disk is unformatted.
  15. ]Normally, if you try to access an unformatted disk, you get the
  16. ]"Invalid media type" error from command.com.
  17.  
  18. ]I have tried returning "Invalid media" from the media check command,
  19. ]but that causes the "Invalid media type" error to happen when you
  20. ]start fdisk.  Putting an invalid media descriptor in the BPB returned
  21. ]from Build BPB doesn't help, either, because DOS seems to ignore it.
  22. ]There just doesn't seem to be any documentation on how a device driver
  23. ]is supposed to tell DOS that a disk is unformatted.
  24.  
  25. ]Thanks in advance to any kind souls who have a solution.
  26.  
  27. ]Sam Lin
  28.  
  29. If there is a valid fat + root-directory , it's formatted otherwise
  30. not. This are the two things missing after low-level format and
  31. partitioning.
  32.  
  33.     - Ralf
  34.