Translated message

A translation of this page exists in English.

df コマンドが出力するディスク使用サイズが正しくありません

Solution Verified - Updated -

Issue

  • df コマンドの出力するディスク使用サイズと、インストールの際に指定したディスクのサイズが違うのはなぜですか?
# blockdev --getsize64 /dev/sda1
524288000

# df /dev/sda1
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1               495844    186096    284148  40% /boot
  • df コマンドは具体的にどこの情報を参照し、どのような方法で使用率を算出していますか?

Environment

  • Red Hat Enterprise Linux (RHEL) のすべてのバージョン
  • ext2/ext3/ext4 ファイルシステム

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content