PDA

View Full Version : [ubuntu] DF Output Odd


terazen
July 1st, 2009, 10:46 AM
I was looking at this a second ago and for /dev/sda1 it is saying 211G available and 60G used which adds up to 271G and not 285G that df reports. How does this math work?

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 285G 60G 211G 23% /
varrun 2.0G 52K 2.0G 1% /var/run
varlock 2.0G 0 2.0G 0% /var/lock
udev 2.0G 44K 2.0G 1% /dev
devshm 2.0G 0 2.0G 0% /dev/shm

TwiceOver
July 1st, 2009, 10:49 AM
You lose 5% by default so that the disk can never truely become completely full. Some sort of administrative buffer.

You can change that setting using tune2fs... I can't remember the exact command.

ian dobson
July 1st, 2009, 01:47 PM
Hi,

mkfs reserves 5% for user root, so that when the fs is full for normal users root can still login and tidy things up.

Regards
Ian Dobson