Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use FDISK Partition to divide an Integer hard disk Partition

Shulou Source: shulou.com Published: 2022-05-31 15:25:19 10月03日 Update

How to use FDISK partition to divide an integer hard disk partition, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

There are a large number of partitions such as 1.99GB and 3.93GB in many friends' computers, but in fact, the original intention of using FDISK partition is not like this. We want the partition size to be an integer, such as 2GB, 4GB, etc., and we clearly calculate the partition according to 1GB=1024MB 's formula, for example, if you want to divide 2GB, enter 2048MB. In fact, when partitioning, the formula of using 1GB=1024MB directly is incorrect, and the partition is not an integer partition. How can we divide an integer partition? we only need to change the formula to calculate the value of the integer partition.

Here, if we set the integer GB to "N", the correct calculation formula should be:

(Nmur1) * 4 "1024" N

The result calculated according to this formula is MB. For example, if you want to get a partition of 2GB, the formula should be:

(2-1) * 4+1024*2=2052MB

In other words, when you type 2052MB in a FDISK partition, you can get a 2GB partition, and the 2048MB we usually enter will of course be shown as 1.99GB.

For example, if you want to get a partition of 8GB, according to the formula (8-1) * 4+1024*8=8220MB, you only need to type 8220MB to get an integer partition of 8GB. With this formula, you can calculate the size of any other partition. Now look at your hard drive. Is it more comfortable without a decimal partition?

Finally, I will give you some ready-made integer hard disk partitions as follows:

10G = (10-1) * 4+1024*10=10276MB

15G = (15-1) * 4+1024*15=15416MB

20G = (20-1) * 4+1024*20=20556MB

25G = (25-1) * 4+1024*25=25696MB

30G = (30-1) * 4+1024*30=30836MB

35G = (35-1) * 4+1024*35=35986MB

40G = (40-1) * 4+1024*40=41116MB

45G = (45-1) * 4+1024*45=46256MB

50G = (50-1) * 4+1024*50=51396MB

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Integer formula input hard disk size actual actually help clear comfortable that is that is content original intention unit for this decimal want numerical article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Microsoft Shulou Information Apple Shulou Tech Info