The most accurate Algorithm for hard disk integer partitioning

Source: Internet
Author: User

From: Microsoft 7b7m

General Formula: partition size = (partition size-1) × 4 + 1024 × partition size if according to the above hard disk partition formula (X-1) * 4 + 1024 * x = y where X is the value of the integer partition you want, in the unit of G, and Y is the number you should enter in the partition, in the unit of M. According to the calculation method: 5G = 5136 MB 10g = 10276 MB 15g = 15416 MB 20g = 20556 MB 30g = 30836 MB 40g = 41116 MB 30g, enter the above data. 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 partition Algorithm The hard disk generally has 255 heads and 63 sectors, so the size of each cylinder is 512 byte x 255x63 = 8225280 bytes7.84423828125 MB. If you want to divide it into 40 GB, then 40x1024 MB = 40960 MB requires the number of cylinders to be 40960 bytes 7. 84423828125 = 5221.66 take the integer to both 5222 cylinders and divide the number of M into 5222x7.84423828125 = 40962.6123046875 MB. No matter how many digits after the decimal point, enter 1, that is, 40963 MB, windows considers it 40 GB. This method is applicable to the NTFS format. The FAT32 format is 20482mb and displayed as 19.9 GB in WINXP. The following is a precise calculation result of an increase of 10 Gb to 200 GB and an increase of 10 GB: 10 GB = 10245 mb20 GB = 20482 mb30 GB = 30726 mb40 GB = 40963 mb50 GB = 51208 mb60 GB = 61444 mb70 GB = 71681 mb80 GB = 81926 mb90 GB = 92162 mb100 GB = 102407 MB 110 GB = 112644 mb120 GB = 122888 mb130 GB = 133125 mb140 GB = 143362 mb150 GB = 153606 mb160 GB = 163843 mb170 GB = 174088 mb180 GB = 184324 mb190 GB = 194561 mb200 GB = 204806 MB

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.