Last active
December 25, 2015 10:19
-
-
Save uroshekic/6960323 to your computer and use it in GitHub Desktop.
Partition size on Windows 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://superuser.com/questions/217012/what-size-should-i-make-a-partition-to-appear-as-a-standard-number-e-g-100gb/217069#217069 | |
There's a difference between the partition size that is specified in MB in the installer, and the disk capacity that is shown in Windows Explorer. That difference is the size of one block or "allocation unit", which is 4KB for any NTFS volume over 2GB; and that block is the first block on the partition, to hold the boot sector of the disk (512 bytes). The rest of the block is unused, so that all blocks are "aligned" on the disk. | |
So if you declare a partition to be 20480 MB, that's exactly 20.00 GB (or GiB, for sticklers). But the resulting disk capacity will be (20480 MB - 4 KB, shown as) 19.99 GB. It appears that Windows Explorer does not round up or to nearest, but truncates after two decimal places at most. | |
So you can create a partition that is one MB larger than the desired size, and after 4 KB is subtracted for the boot block, the disk capacity should be shown as you want. But it is still not exactly that size. | |
While the installer and DISKPART work in MB, the partition table is expressed in sectors, so you can manually edit it to create a partition that is exactly the size you want plus 8 sectors (4 KB). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment