I got the following problem:
df -h
shows:
ubuntu@:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 32G 9.6G 21G 33% /
udev 819M 12K 819M 1% /dev
tmpfs 331M 200K 331M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 827M 0 827M 0% /run/shm
Here i can see that I have 21GB available in the 32G /
partition.
However, when I try df -i
I get
ubuntu@:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvda1 2097152 2096964 188 100% /
udev 209564 382 209182 1% /dev
tmpfs 211573 274 211299 1% /run
none 211573 4 211569 1% /run/lock
none 211573 1 211572 1% /run/shm
Here I see the usage is 100%. I'm not sure why the usage is shown differently in both.
Secondly the /root
folder looks very strange to me:
ubuntu@:/$ ls -al
total 132240
drwxr-xr-x 24 root root 4096 Jan 8 15:04 .
drwxr-xr-x 24 root root 4096 Jan 8 15:04 ..
drwxr-xr-x 2 root root 4096 Mar 27 2013 bin
drwxr-xr-x 3 root root 4096 Mar 21 2013 boot
drwx------ 5 root root 135319552 Apr 1 14:11 root
drwxr-xr-x 18 root root 640 Apr 1 14:03 run
drwxr-xr-x 2 root root 4096 Mar 27 2013 sbin
Why the size of the root directory is so huge? If I go into the /root
directory and type in ls
the terminal does not even respond. So I'm confused with this.
Any suggestions will be helpful.
Thanks.