Hi,
This is not really a problem, but I am curious!
When I run
df command, the sum of free and used space doesn't tally up to total space. Now I found an explanation in this thread:
http://www.linuxquestions.org/questi...n-size-316091/
The amount of "reserved" space seems a little too high as OP of the thread had commented, but may be that's what needed.
Now my question is is there a way to change/specify this amount of "reserved" space manually?
Also is there a way where you can see the actual disk usage for every mounted partition including the hidden "reserved" space? Because sometimes this mismatch makes the output of df very confusing!
I am attaching output of
df, and
fdisk from my NFS server. The amount of reserved space seems to be close to 5% of the total partition size.
Code:
[root@cretaceous ~]# df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 14877092 3788520 10320668 27% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
/dev/sda5 1399271668 1230547024 96499220 93% /export
/dev/sda1 101086 33459 62408 35% /boot
tmpfs 1027440 0 1027440 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
nfsd
[root@cretaceous ~]# fdisk -l
Disk /dev/sda: 1499.2 GB, 1499212021760 bytes
255 heads, 63 sectors/track, 182268 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1925 15358140 83 Linux
/dev/sda3 1926 2435 4096575 82 Linux swap / Solaris
/dev/sda4 2436 182268 1444508572+ 5 Extended
/dev/sda5 2436 182268 1444508541 83 Linux
[root@cretaceous ~]# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/export /export ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
0 0 0 - /proc/fs/nfsd