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