From du output to a drive purchase

Disk-usage tools on Linux and many backup programs report totals in blocks of 1,024 bytes, so a photo archive or a server volume appears as a ten-digit number of kibibytes. Drives and cloud storage tiers are sold in decimal terabytes, where one TB is 10^12 bytes. Deciding whether a 2 TB drive will hold a given archive requires a bridge between the two. This page provides it. Enter the KiB total, leave the target on TB, and compare the result with the labeled capacity of the drive. The conversion also helps when a vendor quotes a price per terabyte and your inventory is recorded in kibibytes. A price of 15 per TB, an illustrative figure, applied to 1.8944 TB comes to 28.42, which is the number to put in a budget line.

The arithmetic in two steps

A kibibyte is 1,024 bytes and a terabyte is 1,000,000,000,000 bytes. The relation is TB = KiB × 1,024 / 10^12 = KiB × 1.024e-9. Going back, 1 TB corresponds to 976,562,500 KiB. These two numbers come from combining a binary prefix and a decimal one, and they remain exact: multiplying a KiB total by 1.024 and then shifting nine decimal places yields no rounding error. The BIPM SI Brochure defines tera as 10^12, and the IEC binary prefixes are listed in NIST SP 811, so each side of the conversion rests on a published definition.

The 10 KiB example, in scientific notation

The default value of 10 KiB returns 1.024e-8 TB, which is 0.00000001024 terabyte. A number like this is awkward to read, so the page shows it in exponent form. The exponent of minus eight means the leading digit sits in the eighth decimal place. Such small outputs say that terabytes are the wrong unit for small files, and in practice you would switch to kB or MB. The example is still useful because it shows the proportion: a terabyte is roughly one hundred million times larger than this ten-kibibyte file, and the factor 1.024 in the mantissa is the 2.4 percent binary excess.

A photo archive on a backup drive

Suppose du reports 1,850,000,000 KiB for a family photo and video archive. The page converts this to 1.8944 TB. A 2 TB backup drive has room for it, with about 0.106 TB spare, which is just over 5 percent. A growing archive of 3,200,000,000 KiB equals 3.2768 TB and will not fit on that drive. In that case a 4 TB disk is the next common size, giving 0.7232 TB of headroom. Running the numbers before buying avoids the usual surprise that a disk sold as 2 TB seems barely larger than a collection that du reports as nearly the same figure.

Checking the capacity of the drive itself

A drive sold as 2 TB stores 2,000,000,000,000 bytes, which is 1,953,125,000 KiB. Entering that number returns 2 TB, a check that confirms the label. Operating systems that show binary units report about 1.82 for the same drive, and the missing 0.18 comes from the difference in units, since no space has been lost. The conversion can also tell you the least number of KiB a file system must be able to track on such a disk. A 4 TB drive holds 3,906,250,000 KiB. Keeping those reference counts handy makes it easier to read utilization reports from different tools. A volume that is 90 percent full on a 4 TB drive holds 3.6 TB, which is 3,515,625,000 KiB.

Cloud storage and tiered pricing

Object storage services bill per gigabyte-month or per terabyte-month in decimal units, but internal accounting scripts often work with block counts. A bucket measured at 540,000,000 KiB is 0.55296 TB. At a rate of 20 per TB-month, an illustrative price, the monthly charge is 11.06. A bucket ten times larger costs ten times as much, so the arithmetic is simple once the unit is right. If the provider rounds up to the next terabyte or charges per gigabyte, convert to the unit in the price list first, then apply the rate and any minimum charge. A bucket ten times larger, at 5,400,000,000 KiB, is 5.5296 TB and costs 110.59 at the same illustrative rate.

Planning growth with a ratio

Storage planners track growth in KiB per day because tools print it that way. A system that adds 25,000,000 KiB per day adds 0.0256 TB, so a month brings about 0.768 TB. A backup job that copies the full archive weekly needs room for several of these generations at once, so multiply the converted size by the number of copies you keep before comparing it with a drive. Dividing the free space in TB by the daily growth gives the days until the disk fills, and the exercise shows quickly whether a 4 TB volume with 0.7232 TB free lasts a month or a year. Convert once and carry decimal terabytes through the rest of the planning sheet, which keeps the numbers consistent with the way vendors quote capacity. At that growth, 0.7232 TB of free space lasts about 28 days, a short runway that argues for ordering the next disk now.

Usable space in a NAS or RAID set

Network storage boxes advertise usable space in decimal terabytes after redundancy. Four 4 TB disks in a RAID 5 set give three disks of usable space, which is 12 TB, or 11,718,750,000 KiB. Operating systems that count in binary report about 10.91 TiB for that volume, and the file system keeps some of it for its own metadata. If a monitoring tool lists used space in KiB, convert the figure with this page and subtract it from 12 to get the free space in the unit the box was sold in. Doing so before adding a fifth disk shows how much of the purchase is actually available.

Keeping significant digits

Reports sometimes show terabytes with one decimal, which hides several hundred gigabytes. A total of 1.8944 TB becomes 1.9 TB, and a margin of 0.106 TB disappears. Keep at least three decimals while planning, and round for presentation only. If the output appears in scientific notation, it means the value is small. Copy it with its exponent intact. A pasted figure of 1.024 for a number that was 1.024e-8 is off by eight orders of magnitude, and the unit label alone will not reveal it.