The Computer Oracle

What size should I make a partition to appear as a standard number e.g 100Gb

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Melt

--

Chapters
00:00 What Size Should I Make A Partition To Appear As A Standard Number E.G 100gb
00:45 Answer 1 Score 3
00:56 Accepted Answer Score 26
02:09 Answer 3 Score 8
02:20 Answer 4 Score 0
03:16 Thank you

--

Full question
https://superuser.com/questions/217012/w...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #windowsvista #partitioning

#avk47



ACCEPTED ANSWER

Score 26


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).




ANSWER 2

Score 8


For every 10GB add 8MB.

For every 100GB add 80MB.

For Perfect 100GB Drive.

100GB Drive = 100 X 1024 = 102400MB (Displayed as 99.99GB)

Perfect 100GB Drive = 10 x 10240 + 10 x 8 = 102480MB (Displayed as 100.00GB)




ANSWER 3

Score 3


make it purely as a power of 2

2^10kB=1MB

2^10 MB =1 GB

so, make it 2^20 kB for 1 GB

100GB=(2^20)*100 kB

so, specify the size as 1 048 57600 kB

Its like that because acc. to HDD manufacturers, 1kB=1000 Bytes, while the computer identifies 1kB=1024 Bytes




ANSWER 4

Score 0


I'm OCD and this has plagued me for years. The 1024 thing doesn't work, apparently because there's some administrative overhead (partition table or superblock or some such) that the OS subtracts from the physical space before it displays the free space, even with a spanking-new (=empty) partition.

Today I installed Linux and tried 1032 (1024 plus a smidge) and the swap partition I wanted to come out as exactly 8gb game out as 7.69. I booted the same box using a Live Windows thumb drive and it agreed that that partition was 7.69gb. So I interpolated and came up with 1073.6, which struck me as too high but I figured I'd try it and see.

So I partitioned my swap slice as 8,589mb during the install and the OS reports it at 8.0gb on the nose. And the other partitions I wanted to come out on the even GB also came out point-zero exact.