df コマンドが出力するディスク使用サイズが正しくありません
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
