Solved After upgrade 14.2.to 14.3 I can't downoad 100 Kb and change password:No space left on device

sftp> get -r Usercert2026
Fetching /home/pal/Usercert2026/ to Usercert2026
Retrieving /home/pal/Usercert2026
mkdir Usercert2026: No space left on device

/home/pal >df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 899G 860G -33G 104% /
devfs 1.0K 0B 1.0K 0% /dev
fdescfs 1.0K 0B 1.0K 0% /dev/fd
linprocfs 8.0K 0B 8.0K 0% /usr/compat/linux/proc

/home/pal >du -sh
6.3M .

Everything is transferred to the server with ArchLinux without any problems
 
/home/pal >mc

/: write failed, filesystem is full
Cannot create temporary directory /tmp/mc-G0R292: No space left on device (28).
Temporary files will not be created
Press any key to continue...
 
sudo du -sk /tmp/* | sort -n
Password:
0 /tmp/periodic.hMN3bewSMl
0 /tmp/periodic.vBSg0F39ZU
4 /tmp/adminer.invalid
4 /tmp/bsdinstall_boot
4 /tmp/bsdinstall_etc
4 /tmp/ico.xyz
4 /tmp/mc-00KO92
4 /tmp/mc-06I7W2
4 /tmp/mc-1Z12V2
4 /tmp/mc-2EX4V2
4 /tmp/mc-3DLEX2
4 /tmp/mc-4YCT92
4 /tmp/mc-5B22W2
4 /tmp/mc-9IL4V2
4 /tmp/mc-AYOLZ2
4 /tmp/mc-D82RV2
4 /tmp/mc-EWR3V2
4 /tmp/mc-FIHSV2
4 /tmp/mc-GBIQX2
4 /tmp/mc-HDGIX2
4 /tmp/mc-IWULX2
4 /tmp/mc-L3C0Y2
4 /tmp/mc-NZFAZ2
4 /tmp/mc-SQDQZ2
4 /tmp/mc-U02GX2
4 /tmp/mc-Y3ZQ92
4 /tmp/mc-YIQT92
4 /tmp/mc-pal
4 /tmp/periodic.6xMBurebml
4 /tmp/periodic.ecICtWjHcg
4 /tmp/station
8 /tmp/mc-root
12 /tmp/mc-nat
24 /tmp/bsdinstall_log
2464 /tmp/AkaiKKR.rar
80064 /tmp/beke.rar
 
you can use pkg clean to remove the old cache of the installed pkgs.
freebsd-update cache is located in /vad/db/freebsd-update you may want to check how big is that directory.
in UFS there's reserved space 8% which is not available for the normal users. see the tunefs(8)

Code:
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 899G 860G -33G 104% /
 
Find out where most of your storage space went: du -sk /* | sort -n
Then try to drill down the largest directory and keep going until you know where most of the data is stored.
 
This is a completely unclear situation. If I work as root, there are no problems. But if I work as a user, there is not enough space, although the user directory is empty.
 
I already explain that in my previous post. The users doesn't have access to the all storage space. There's reserved 8% from the entire storage space which is only accessible by root. Also it's not recommended to fill up the entire disk.
 
But now as rooot also:I download sftp 100 Kb as root and now I can't change password- No space left on device

[11:10] /home/pal >sudo -i
root@bris:/ # passwd nat
Changing local password for nat
New Password:
Retype New Password:
pwd_mkdb: /etc/pwd.db to /etc/pwd.db.tmp: No space left on device
passwd: pam_chauthtok(): Error in service module
 
you can use pkg clean to remove the old cache of the installed pkgs.
freebsd-update cache is located in /vad/db/freebsd-update you may want to check how big is that directory.
in UFS there's reserved space 8% which is not available for the normal users. see the tunefs(8)

Code:
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 899G 860G -33G 104% /
ls -l /var/db/freebsd-update
total 41840
-rw-r--r-- 1 root wheel 225 Feb 16 2023 110632c05313747a82d57e7249a02067fa146064ae693f3646b80b906b70e328
-rw-r--r-- 1 root wheel 131529 Apr 12 2023 27469716e6bc41239dd6af1d2904c961ac42a56196837c088b423372a7fedd16.gz
lrwxr-xr-x 1 root wheel 14 Jul 17 15:41 f465c3739385890c221dff1a05e578c6cae0d0430e46996d319db7439f884336-rollback -> install.ETtqPr
drwxr-xr-x 2 root wheel 42033152 Jul 17 20:58 files
drwx------ 2 root wheel 512 Oct 28 2020 install.06eLoj
drwx------ 2 root wheel 512 Apr 1 2021 install.0NndDi
drwx------ 2 root wheel 512 Jul 29 2019 install.0Z0Kwx
drwx------ 2 root wheel 512 Jan 30 2017 install.3be98Z
drwx------ 2 root wheel 512 May 28 2021 install.4nAPEv
drwx------ 2 root wheel 512 Aug 26 2015 install.5i6iSa
drwx------ 2 root wheel 512 Oct 11 2016 install.5i7P1g
drwx------ 2 root wheel 512 Jul 26 2017 install.5tqxWm
drwx------ 2 root wheel 512 Sep 15 2023 install.6AXN65
drwx------ 2 root wheel 512 Dec 19 2016 install.6ITgaO
drwx------ 2 root wheel 512 May 16 2016 install.6Yq0BO
drwx------ 2 root wheel 512 Dec 10 2015 install.6bxsCp
drwx------ 2 root wheel 512 Feb 26 2021 install.6pJF4s
drwx------ 2 root wheel 512 Nov 14 2016 install.6yEV0B
drwx------ 2 root wheel 512 Mar 25 2024 install.7O6RPt
drwx------ 2 root wheel 512 Feb 6 2019 install.7OCceX
drwx------ 2 root wheel 512 Dec 4 2017 install.7rEa1d
drwx------ 2 root wheel 512 Jun 20 2019 install.8TR8bv
drwx------ 2 root wheel 512 Jul 2 2015 install.8d8lkI
drwx------ 2 root wheel 512 Dec 7 2018 install.8hTnHJ
drwx------ 2 root wheel 512 Dec 12 2016 install.8rJUSK
drwx------ 2 root wheel 512 Jul 4 2019 install.93n42W
drwx------ 2 root wheel 512 Jan 16 2017 install.9Sz8hk
drwx------ 2 root wheel 512 Nov 4 2016 install.A9XyjN
drwx------ 2 root wheel 512 Nov 14 2019 install.AB7aZS
drwx------ 2 root wheel 512 Nov 4 2024 install.AewsPR
drwx------ 2 root wheel 512 Jan 11 2017 install.BmGdLc
drwx------ 2 root wheel 512 Mar 12 2018 install.BrGZeJ
drwx------ 2 root wheel 512 Dec 11 2017 install.Cj9jkj
drwx------ 2 root wheel 512 Jun 7 2017 install.CoNAsJ
drwx------ 2 root wheel 512 Jan 24 2017 install.CodUH1
drwx------ 2 root wheel 512 Feb 13 2017 install.DNrQpS
drwx------ 2 root wheel 512 Jul 17 15:53 install.ETtqPr
drwx------ 2 root wheel 512 May 15 2018 install.EmrIxy
drwx------ 2 root wheel 512 Nov 21 2016 install.EsfUBH
drwx------ 2 root wheel 512 Oct 31 2016 install.FNrxW6
drwx------ 2 root wheel 512 Aug 12 2016 install.FmnvYy
drwx------ 2 root wheel 512 May 10 2017 install.GbPxMM
drwx------ 2 root wheel 512 Apr 11 2016 install.GnHDHO
drwx------ 2 root wheel 512 Sep 24 2015 install.HFnOdJ
drwx------ 2 root wheel 512 Feb 20 2017 install.HHPLLf
drwx------ 2 root wheel 512 Dec 31 2024 install.HURoM0
drwx------ 2 root wheel 512 Oct 3 2018 install.Hc8eYV
drwx------ 2 root wheel 512 Aug 14 2023 install.HkVZN2
drwx------ 2 root wheel 512 Apr 10 2017 install.HnrUuI
drwx------ 2 root wheel 512 Oct 26 2016 install.IKFyBp
drwx------ 2 root wheel 512 Jul 2 2021 install.INEcsm
drwx------ 2 root wheel 512 Jan 23 2023 install.IW2MLa
drwx------ 2 root wheel 512 Jun 12 2020 install.In9Nzd
drwx------ 2 root wheel 512 Oct 6 2016 install.JbtRZd
drwx------ 2 root wheel 512 Oct 5 2023 install.K8ySJ6
drwx------ 2 root wheel 512 Mar 27 2017 install.KTmsOU
drwx------ 2 root wheel 512 Jun 6 2016 install.LQsq0F
drwx------ 2 root wheel 512 Dec 20 2018 install.LVfNAG
drwx------ 2 root wheel 512 Jan 10 2017 install.M6V9kR
drwx------ 2 root wheel 512 Oct 28 2019 install.MnRR8d
drwx------ 2 root wheel 512 Aug 25 2021 install.NdwlMY
drwx------ 2 root wheel 512 Nov 13 2023 install.O0NR2a
drwx------ 2 root wheel 512 Aug 21 2019 install.O7Kfuj
drwx------ 2 root wheel 512 Mar 20 2017 install.OCnu3R
drwx------ 2 root wheel 512 Jun 12 2017 install.Odsvoh
drwx------ 2 root wheel 512 Apr 12 2023 install.P6Ubqh
drwx------ 2 root wheel 512 May 18 2016 install.PVDG1z
drwx------ 2 root wheel 512 Sep 27 2016 install.PeEyjl
drwx------ 2 root wheel 512 Jun 26 2023 install.QqdKsd
drwx------ 2 root wheel 512 Jul 26 2016 install.RW4yCC
drwx------ 2 root wheel 512 Mar 13 2017 install.RZiRrn
drwx------ 2 root wheel 512 Nov 3 2017 install.Ri3pAQ
drwx------ 2 root wheel 512 Aug 12 2019 install.RmxCnI
drwx------ 2 root wheel 512 Jul 17 15:06 install.SjPFSa
drwx------ 2 root wheel 512 Jun 7 2021 install.TPiyaw
drwx------ 2 root wheel 512 Mar 23 2022 install.Te63JT
drwx------ 2 root wheel 512 Sep 10 2024 install.TvB3TJ
drwx------ 2 root wheel 512 Oct 18 2017 install.U4KKUQ
drwx------ 2 root wheel 512 Nov 28 2016 install.UIYXI4
drwx------ 2 root wheel 512 Mar 23 2020 install.UqzuPl
drwx------ 2 root wheel 512 May 3 2017 install.VFMT7g
drwx------ 2 root wheel 512 May 16 2022 install.VNb3p3
drwx------ 2 root wheel 512 Apr 27 2020 install.W8Kb5B
drwx------ 2 root wheel 512 Sep 12 2018 install.WMN7Aa
drwx------ 2 root wheel 512 Dec 26 2016 install.WaeXft
drwx------ 2 root wheel 512 May 22 2017 install.XuGyyN
drwx------ 2 root wheel 512 Jan 3 2017 install.XwsDQb
drwx------ 2 root wheel 512 Sep 16 2020 install.XyiGOf
drwx------ 2 root wheel 512 Apr 18 2017 install.Y0BKDu
drwx------ 2 root wheel 512 Aug 8 2020 install.YBgvvZ
drwx------ 2 root wheel 512 Feb 10 2023 install.YdUvCl
drwx------ 2 root wheel 512 Feb 17 2023 install.YeWNtF
drwx------ 2 root wheel 512 Mar 22 2022 install.ZCuWIj
drwx------ 2 root wheel 512 Nov 8 2021 install.a0amGV
drwx------ 2 root wheel 512 Apr 3 2017 install.aXn6rp
drwx------ 2 root wheel 512 Dec 7 2016 install.bTvwUT
drwx------ 2 root wheel 512 Jun 1 2016 install.bydQxo
drwx------ 2 root wheel 512 Mar 6 2017 install.czccoG
drwx------ 2 root wheel 512 Sep 5 2020 install.dT2gkg
drwx------ 2 root wheel 512 Apr 28 2017 install.dYtUEo
drwx------ 2 root wheel 512 Apr 24 2017 install.eAnuzI
drwx------ 2 root wheel 512 Nov 28 2018 install.eYWLyF
drwx------ 2 root wheel 512 Feb 27 2017 install.eia4vj
drwx------ 2 root wheel 512 Aug 6 2015 install.ey8tRJ
drwx------ 2 root wheel 512 Oct 17 2016 install.fMcfyL
drwx------ 2 root wheel 512 Jun 19 2017 install.fXlID1
drwx------ 2 root wheel 512 May 15 2019 install.gL4jIa
drwx------ 2 root wheel 512 Apr 14 2021 install.gkyAYG
drwx------ 2 root wheel 512 Feb 3 2017 install.hRGtvr
drwx------ 2 root wheel 512 Aug 16 2018 install.ifDqcP
drwx------ 2 root wheel 512 Jan 31 2020 install.jvb8Xq
drwx------ 2 root wheel 512 Nov 15 2023 install.jxD3Zd
drwx------ 2 root wheel 512 Feb 7 2017 install.kANTb6
drwx------ 2 root wheel 512 Nov 21 2017 install.kIyQ4Q
drwx------ 2 root wheel 512 Aug 11 2017 install.l7RLj9
drwx------ 2 root wheel 512 Dec 13 2018 install.lO5G4m
drwx------ 2 root wheel 512 Mar 15 2018 install.mpJCsX
drwx------ 2 root wheel 512 Apr 13 2017 install.nEKHT2
drwx------ 2 root wheel 512 May 5 2016 install.nasrnF
drwx------ 2 root wheel 512 Dec 4 2020 install.no0uoC
drwx------ 2 root wheel 512 Feb 24 2017 install.oK80Pm
drwx------ 2 root wheel 512 May 29 2017 install.oyo7a7
drwx------ 2 root wheel 512 Aug 12 2024 install.qFXyjy
drwx------ 2 root wheel 512 Dec 9 2023 install.qlz4Jn
drwx------ 2 root wheel 512 Oct 24 2016 install.qud0ix
drwx------ 2 root wheel 512 Jan 14 2022 install.rp3cXW
drwx------ 2 root wheel 512 May 13 2017 install.s6WsDX
drwx------ 2 root wheel 512 Feb 8 2021 install.sA7XTl
drwx------ 2 root wheel 512 Aug 12 2024 install.sN8etB
drwx------ 2 root wheel 512 Apr 5 2018 install.sgoX6k
drwx------ 2 root wheel 512 Dec 2 2023 install.szL7IP
drwx------ 2 root wheel 512 Sep 26 2016 install.tJJE7h
drwx------ 2 root wheel 512 Sep 23 2024 install.tOHWtW
drwx------ 2 root wheel 512 May 22 2019 install.ta2b0j
drwx------ 2 root wheel 512 Apr 2 2024 install.uFBRM0
drwx------ 2 root wheel 512 Jan 29 2019 install.uIxpEu
drwx------ 2 root wheel 512 Jul 9 2020 install.uKaB3J
drwx------ 2 root wheel 512 May 13 2020 install.udwhjw
drwx------ 2 root wheel 512 Feb 2 2022 install.uveCtc
drwx------ 2 root wheel 512 Dec 12 2020 install.vDYV8D
drwx------ 2 root wheel 512 Jun 25 2018 install.vMeG8i
drwx------ 2 root wheel 512 Dec 13 2023 install.vr2f5u
drwx------ 2 root wheel 512 Aug 7 2018 install.wD1w9m
drwx------ 2 root wheel 512 Jun 26 2017 install.wFXdaY
drwx------ 2 root wheel 512 Apr 14 2021 install.waofOa
drwx------ 2 root wheel 512 Nov 7 2016 install.x1trgf
drwx------ 2 root wheel 512 Jun 27 2018 install.xmZbcu
drwx------ 2 root wheel 512 Nov 4 2019 install.yDnyB3
drwx------ 2 root wheel 512 Dec 5 2016 install.yHYqcl
drwx------ 2 root wheel 512 Jul 29 2015 install.yex9CB
drwx------ 2 root wheel 512 Apr 13 2022 install.zc4jW2
-rw-r--r-- 1 root wheel 11 Jul 17 15:05 lasteolwarn
-rw-r--r-- 1 root wheel 800 Jul 1 2015 pub.ssl
-rw-r--r-- 1 root wheel 90 Jul 17 20:57 serverlist
-rw-r--r-- 1 root wheel 90 Jul 17 20:57 serverlist_full
-rw-r--r-- 1 root wheel 25 Jul 17 20:57 serverlist_tried
-rw-r--r-- 1 root wheel 225 Jul 17 20:57 tINDEX.present
-rw-r--r-- 1 root wheel 112 Jul 17 20:57 tag
 
Also, check /var/db/pkg for metadata of packages you don't have installed any more (old versions of packages that were upgraded during the installation's livetime), and delete those to free some kb worth of disk space, hopefully enough to allow the allocation of lock files, then use pkg(8) to remove all third party applications via pkg delete --all --force . Once they're gone, delete /var/db/pkg and /var/cache/pkg to get rid of data that is no longer needed at that point, which, together with the data released by the removall of the third party packages, hopefully releases enough disk space to finish the freebsd-update. After the upgrade to 14.3-RELEASE is completed, you can reinstall the third party applications again.
 
I think I found who is clogging up the hard drive: rinetd.log . It increases by 3 GB per minute. I deleted it and stopped rinetd. And the password changes and there is enough space
 
/home/pal >df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 899G 860G -33G 104% /
899G is quite a bit of data not to know where it is though.

Everything is transferred to the server with ArchLinux without any problems
If the Arch system has a copy of the data (or access to the FreeBSD hosted copy via NFS or something similar), you can use sysutils/filelight (or I guess https://archlinux.org/packages/extra/x86_64/filelight/ ?) to identify where your storage sinks are.
 
After deleting rinetd.log

sudo df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 899G 15G 812G 2% /
devfs 1.0K 0B 1.0K 0% /dev
fdescfs 1.0K 0B 1.0K 0% /dev/fd
linprocfs 8.0K 0B 8.0K 0% /usr/compat/linux/proc
 
I couldn't clean it with :>rinetd.log because of its huge size. I had to use rm. But it is no longer needed. The user was connected via a local VPN server
 
Maybe rotate with newsyslog ?
The OS itself by default packed log files from a certain limit, but for some reason rinetd.log did not.Someone tried to pick a password with a password generator but it didn't work and the log file grew by leaps and bounds
 
Back
Top