Precise hard drive integer Partitioning Method

Source: Internet
Author: User
[Reference] General Algorithm for calculating hard drive integer partitions (from computer reports): partition size = (partition size-1) × 4 + 1024 × partition size
If you calculate the X-1 according to the hard disk partition integer G formula) * 4 + 1024 * X = Y where X is the value of the integer partition you want, in the unit of G, Y is the number you should enter when partitioning. The unit is M,

For example, 40 GB = (40-1) × 4 + 1024 × 40 = 41116 MB. The calculation method is as follows:
5G = 5136 MB
10G = 10276 MB
15G = 15416 MB
20G = 20556 MB
30G = 30836 MB
40G = 41116 MB

Enter the above data within 30 GB. For example, if you enter 10276 GB for 10 GB, the data displayed in Windows Resource Manager is exactly 10.00 GB, and the data displayed in the management tools-disk management interface is 10.04 GB, if you enter 41116 for 40 GB, the Windows Resource Manager displays 40.01 GB.
Therefore, the formula above is not very accurate.

The most accurate hard disk partitioning algorithm is as follows (from network search ):

The hard disk generally has 255 heads and 63 sectors, so the size of each cylinder is:
512 byte x 255x63 = 8225280 bytes = 7.84423828125 MB
40x1024 MB = 40960 MB
The number of required cylinders is 40960. 84423828125 = 5221.66
The integer must be 5222 cylindrical
The MB count is 5222x7.84423828125 = 40962.6123046875 MB.
No matter how many digits after the decimal point enter 1, that is, 40963 MB, windows considers it as 40 GB.
This method is applicable to NTFS and FAT32.

The following is the exact calculation result from 10 Gb to GB in an ascending order of 10 GB:
10 GB = 10245 MB
20 GB = 20482 MB
30 GB = 30726 MB
40 GB = 40963 MB
50 GB = 51208 MB
60 GB = 61444 MB
70 GB = 71681 MB
80 GB = 81926 MB
90 GB = 92162 MB
100 GB = 102407 MB
110 GB = 112644 MB
120 GB = 122888 MB
130 GB = 133125 MB
140 GB = 143362 MB
150 GB = 153606 MB
160 GB = 163843 MB
170 GB = 174088 MB
180 GB = 184324 MB
190 GB = 194561 MB

The exact partition result is displayed in the management tool-disk management interface and Windows resource manager as an integer. 10 GB means 10.00 GB, 20 GB means 20.00 GB, and 40 GB means 40.00 GB.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.