home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / misc / 6107 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.os.msdos.misc
  2. Path: sparky!uunet!microsoft!hexnut!jenk
  3. From: jenk@microsoft.com (Jen Kilmer)
  4. Subject: Re: Hard disk size, partition table
  5. Message-ID: <1992Nov11.073917.27018@microsoft.com>
  6. Date: 11 Nov 92 07:39:17 GMT
  7. Organization: Microsoft Corporation
  8. References: <1992Nov10.214010.7272@aio.jsc.nasa.gov>
  9. Lines: 33
  10.  
  11. In article <1992Nov10.214010.7272@aio.jsc.nasa.gov> mulcihy@sweetpea.jsc.nasa.gov David Mulcihy writes:
  12. >I had two logical drives and wanted to make one larger logical drive.
  13. >Using a binary editor I changed the partition table and the number of
  14. >sectors on the drive. However DOS does not think the drive is any larger
  15. >than before. Where does DOS get the information about the size of the
  16. >drive? 
  17. From the Bios Parameter Block (aka BPB) in the first sector of the
  18. logical drive. The MS-DOS Programmer's Reference and most other
  19. programmer-oriented MS-DOS books will have the layout.
  20.  
  21. However, if you are enlarging the logical drive, the file table 
  22. won't be big enough. The True Fix (TM) involves reformatting. Don't
  23. just reformat, tho, it'll use the old size from the BPB (sigh). I would
  24. suggest zeroing the boot sector using a sector editor, then formatting.
  25. Yes, this erases your info.  Or you *could* go into the BPB and 
  26. change the allocation unit size to something big enough that the
  27. current file table could access the whole disk, then manually update
  28. your file system to reflect the new structure.  
  29.  
  30. note #1: when you delete partitions with FDisk, the old boot sector
  31. and file table are erased, avoiding this problem. 
  32.  
  33. note #2: to zero the boot sector of C: with debug, use the following commands:
  34.  
  35. f 200 l 200 0
  36. w 200 2 0 1
  37. q
  38.  
  39. Of D:, the W command would be "W 200 3 0 1", of E:, "W 200 4 0 1", etc.
  40.  
  41.  
  42. -jen
  43. not speaking for microsoft
  44.