Solved why 4.8T used and 5.2T size? I am missing 0.5T??

Code:
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/da0              5.3T    4.8T     67G    99%    /a

/dev/da0 on /a (ufs, local, soft-updates)
 
By default UFS reserves 8 % of the total disk space for the system. You can change the percentage using tunefs(8).
For backup and mostly-read/seldom-write media, I usually set it to 0 %. For system disks I leave it at 8 %.

5.2-8% = 4.8
 
By default UFS reserves 8% for 'root' so almost Your 0.5T (5.2T * 8% = 0.41T).

You can change that with tunefs command.

Root is on zfs...
This is a usb external drive..

Code:
Filesystem            Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default    464G    4.0G    460G     1%    /
devfs                 1.0K    1.0K      0B   100%    /dev
zroot/tmp             461G    1.5G    460G     0%    /tmp
zroot/usr/home        829G    369G    460G    45%    /usr/home
zroot/usr/ports       462G    2.0G    460G     0%    /usr/ports
zroot/usr/src         460G     88K    460G     0%    /usr/src
zroot/var/audit       460G     88K    460G     0%    /var/audit
zroot/var/crash       460G    374M    460G     0%    /var/crash
zroot/var/log         460G    356K    460G     0%    /var/log
zroot/var/mail        460G    112K    460G     0%    /var/mail
zroot/var/tmp         460G    104K    460G     0%    /var/tmp
zroot                 460G     88K    460G     0%    /zroot
/dev/da0              5.3T    4.7T    139G    97%    /a

zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)
zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls)
zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)
zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/mail on /var/mail (zfs, local, nfsv4acls)
zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot on /zroot (zfs, local, noatime, nfsv4acls)
/dev/da0 on /a (ufs, local, soft-updates)
 
By default UFS reserves 8% for 'root' ...
By default, most file systems (including in particular UFS) reserve a few percent (8% sounds plausible) that can only written by privileged users, of which the user named "root" is the most typical example (there are others, I think FreeBSD by default gives you a user called "toor" which uses a different shell, I sometimes make a user named "boot" that uses bash instead of ksh, and so on).

Has nothing to do with the file system mounted "/", which is often called the root file system.

Clearer now?
 
I thanked you because it explains how I ended up with a slice filled to 120% of its capacity once,
while uncompressing a large image file with not enough free space while running as root user.
 
Back
Top