First question:
When I run df -h
I can see this:
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad4s1a 9.7G 8.0G 918M 90% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad4s1d 1.8T 6.7G 1.6T 0% /home
procfs 4.0K 4.0K 0B 100% /proc
linprocfs 4.0K 4.0K 0B 100% /usr/compat/linux/proc
devfs 1.0K 1.0K 0B 100% /var/named/dev
Why doesnt it show directories like:
/var
/etc
/usr
? On my earlier dedicated server, I was able to view every partition size available, but here I got only /home
and /
…
Second question:
How I can increase the /var
partition size? Because after 2 hours of working, this partition is became full…
Best Answer
The df command reports disk space usage by file system. Your
/var
/etc
and/usr
are not a separate file systems they are part of the/
file system. You only have 2 file systems/
and/home
.If you can reinstall the system you could change the partitions to create a
/var
file system of a suitable size.If you can't then you could try creating a link
/var
->/home/var
but the specifics of how to do this depend on the access you have tot he system.