I've just installed FreeBSD with xfce, nvidia drivers and some basic stuff like browser but it's already consumes more than 30 GiB of disk space. Is it how it's supposed to be?
That seems a bit to much. The base system takes ≈ 500 MB, application files are stored under /usr/local, you can check the size of that directory runninginstalled FreeBSD with xfce, nvidia drivers and some basic stuff like browser but it's already consumes more than 30 GiB of disk space
du -sh /usr/local
(du(1)), if the size is not near 30G run du -hd5 / | sort -hr > dspace.txt
(sort(1)) to check where the data with the most disk usage went. du -sk /* | sort -n
I used pkg to install everything, never used ports. Xfce file manager shows that there's only 177368 items, totalling 9.1 GiB (9755066953 bytes) but 30 GiB is still missing (404.3 GiB of 447.5 GiB free) so i assume it could be a filesystem problem(I use UFS).Did you build from ports or did you use packages? If you built from ports I'm guessing you have a lot of work directories now filled with various build artifacts. You should clean those.
In any case, look what's eating your disk space:du -sk /* | sort -n
Yeah i think that's the cause, i'm new to freebsd so i don't know much about UFS and ZFS filesystems.Goodness, the 30GBfairy is at it again.
UFS reserves, what, 10%? That's pretty close to your missing GBs.
(Apologies, it's a long time since I've used UFS)
Terminal commands gave me the same resultsUse the commands in a terminal, the XFCE file manager may not show everything.
Post the output fromTerminal commands gave me the same results
du -sk /* | sort -n
so we can have a look too.Post the output fromdu -sk /* | sort -n
so we can have a look too.
0 /home 0 /sys 3 /dev 4 /entropy 4 /media 4 /mnt 4 /net 4 /proc 8 /COPYRIGHT 28 /root 32 /tmp 200 /libexec 1656 /bin 3204 /etc 7120 /sbin 11828 /rescue 13332 /lib 160976 /boot 1506084 /var 5977064 /usr
Ok, that seems to be in order. That ~6 GB in /usr/ is expected. What doesdf -h
output?
Filesystem Size Used Avail Capacity Mounted on /dev/ada0s1a 447G 7.4G 404G 2% / devfs 1.0K 1.0K 0B 100% /dev
Ok, thanksAs you can see by the "Used" column, there's not much in use. The difference between Size and Avail is due to the reservation as [USER=55125]mark_j[/USER] noted.