Hi everybody,
I have a strange problem regarding disk usage on a CentOS plain box.
df command shows 75GBs used..
Code:
[root@server.com:~]df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 121G 75G 40G 66% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
/dev/sda2 9,7G 154M 9,1G 2% /tmp
/dev/sda1 99M 24M 71M 25% /boot
tmpfs 2,0G 0 2,0G 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
But du command shows only 23 GBs:
Code:
[root@server.com:~]du -shc /
23G /
23G total
[root@server.com:~]du -shc /*
8,0M /bin
18M /boot
136K /dev
65M /etc
624M /home
328M /lib
18M /lib64
16K /lost+found
8,0K /media
8,0K /misc
954M /mnt
8,0K /opt
242M /php-cache
0 /proc
888K /root
33M /sbin
8,0K /selinux
4,0K /service
8,0K /srv
0 /sys
3,3M /tmp
1,5G /usr
20G /var
23G total
Other disk info that may help:
Code:
[root@server.com:~]fdisk -l
Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 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 1318 10482412+ 83 Linux
/dev/sda3 1319 1579 2096482+ 82 Linux swap / Solaris
/dev/sda4 1580 17769 130046175 83 Linux
[root@server.com:~]cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/tmp /tmp 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
What is wrong here? Am I missing something?
What's the real usage for / ? 23 or 75 gb?
Thanks!