格式 | 大小(M) |
NTFS | 102407 |
FAT32 | 102796 |
硬盤整數(shù)分區(qū)計(jì)算器,在Windows資源管理器中,我們看到的卻是9.98GB,這其實(shí)是因爲(wèi)一個(gè)特殊的算法,F(xiàn)AT32的10GB對(duì)應(yīng)10276MB,NTFS的10GB對(duì)應(yīng)10245MB。
number = 10G
NTFS計(jì)算公式:
let cylinderSize = 512 * 255 * 63 / 1024 / 1024;
let ntfs = Math.ceil((Math.ceil((number * 1024 / cylinderSize)) * cylinderSize))
FAT32計(jì)算公式:
let fat32 =((number - 1) * 4) + (1024 * number)