fdisk -lDevice Start End Sectors Size Type/dev/sda3 72265728 1953523711 1881257984 897.1G Linux filesystem
df -hFilesystem Size Used Avail Use% Mounted on/dev/sda3 882G 61G 777G 8% /
They’re just measuring different quantities.
fdisk shows your partition’s size: this measures raw sectors on your drive.
df shows usable space. Starting with the 897.1GiB of your partition, you lose some space to your file system’s data structures, resulting in df’s reported 882GiB total. Then you “lose” the reserved space, which you accounted for.
网页链接
取消
评论