ish-don-sink-so
January 5th, 2004, 10:53
hey people,
i have a problem in that /var says its full but i have nothing large on my machine, i didnt think i partitioned it at all, i think the whole thing is on / :)
20 gig. I was thinking it could be logs but i am not sure what to delete or how i should retreive the disk space so i dont get all errors.
ben
bsdjunkie
January 5th, 2004, 11:15
Try running the following to check disk usage in /var:
du -a /var
If everything is in / you may also want to to a df -h as well.
Strog
January 5th, 2004, 13:15
I've been using du -hd1 / to get a nice list of usage in my root directories. Too bad Open/Net doesn't have that option. :( There's a similar setup for linux du that I've been using at work on the ftp server to get usage of user's home directories.
It's a good way to get a feel of how much space your partitions are needing if you want to break it down.
[code:1:c288913219]
[dale@hydrogen dale]$ du -hd1 /
1.5K /dev
54G /export
246K /tmp
9.0G /usr
9.3M /var
2.4M /stand
1.4M /etc
2.0K /cdrom
2.0K /dist
7.7M /bin
36M /boot
2.0K /mnt
2.0K /proc
40K /root
24M /sbin
63G /
[/code:1:c288913219]
frisco
January 5th, 2004, 13:53
I've been using du -hd1 / to get a nice list of usage in my root directories. Too bad Open/Net doesn't have that option. :(
You can get similar functionality out of du -sh /*
[code:1:fc615590ea]
mogu:~ frisco$ du -hd1 .
8.0K ./.ssh
0B ./Desktop
0B ./Documents
1.5M ./Library
0B ./Movies
0B ./Music
0B ./Pictures
0B ./Public
20K ./Sites
1.5M .
mogu:~ frisco$ du -sh *
0B ./Desktop
0B ./Documents
1.5M ./Library
0B ./Movies
0B ./Music
0B ./Pictures
0B ./Public
20K ./Sites
[/code:1:fc615590ea]
Note some absences in the second, this is somewhat correctable with different expressions.