home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / MISC / TNH_PC.ZIP / THOMAS.NL < prev    next >
Encoding:
Text File  |  1987-01-14  |  1.4 KB  |  47 lines

  1. POKing Around On The Fixed Disk
  2.  
  3.              Chris Thomas
  4.                  UCLA
  5.  
  6. The other day I was investigating how
  7. many files I could put on my fixed
  8. disk. The DOS manual indicated that
  9. the format of the disk depends on how
  10. much of it is allocated for DOS. So I
  11. POKEd around and found that when
  12. allocated entirely for DOS use, the
  13. 20740 sectors on the 10MB Fixed Disk
  14. are allocated as follows:
  15.  
  16.  # of
  17. Sectors            Use
  18. --------        -----------
  19. 1       System boot and partition map
  20. 1       DOS boot record
  21. 8       FAT
  22. 8       FAT - duplicate copy
  23. 32      Directory
  24. 20688   Data sectors (2586 clusters)
  25. 2       Unused sectors(not mapped
  26.           by FAT)
  27. 68      Cylinder 305, used by
  28.           diagnostic routines
  29.  
  30. There are eight sectors per cluster,
  31. meaning the smallest file takes 4K.
  32. This is necessitated by the
  33. architecture of the File Allocation
  34. Table, which allows a maximum of 4087
  35. clusters. The directory has space for
  36. 512 files, unless there is some other
  37. limitation in DOS.
  38.  
  39. One result of this exploration is
  40. that I feel much pressure to use
  41. subdirectories to keep from running
  42. out of directory space.  Although
  43. subdirectories are fine for some
  44. data, many things only coexist with
  45. subdirectories and don't actually
  46. support them.
  47.