Once I tried to clean the docker mess and it works , after 1 hour I faced the problem again, I don’t know what is it exactly, would you please give me a lil help?
jetson@jetson-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p1 113G 108G 115M 100% /
tmpfs 3.8G 172K 3.8G 1% /dev/shm
tmpfs 1.5G 35M 1.5G 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 763M 108K 762M 1% /run/user/1000
/dev/sda1 58G 101M 58G 1% /media/jetson/FB44-A0BA
jetson@jetson-desktop:~$
You might want to log in as root, e.g., “sudo -s” or “sudo -”. Then start at / and drill down into the largest directories with:
# From the current location:
ls -lS . | head -n 20
# From a specific location:
ls -lS /some/where | head -n 20
This sorts by size. If you want a more convenient “human” size with things like KB and MB instead of raw bytes, use the “-h”:
# From the current location:
ls -lSh . | head -n 20
# From a specific location:
ls -lSh /some/where | head -n 20
This does not tell you what directories contain though since a directory entry is more or less the metadata. If you have time, then you might try something like this which looks into subdirectories:
# From this location:
du -a . 2>/dev/null | sort -n -r | head -n 20
# From a specific location:
du -a /some/where 2>/dev/null | sort -n -r | head -n 20
Some files are expected to be large, and so unless you know what a file is doing, I would not recommend deleting it.
One place to start is in the log file directory, “/var/log”. Make sure it isn’t just a log of errors. If it is, then you need to find out what the error is before deleting.
Thank you for you great help.
root@jetson-desktop:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p1 113G 109G 0 100% /
tmpfs 3.8G 172K 3.8G 1% /dev/shm
tmpfs 1.5G 171M 1.4G 12% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 763M 112K 762M 1% /run/user/1000
/dev/sda1 58G 101M 58G 1% /media/jetson/FB44-A0BA
root@jetson-desktop:~# sudo du -xh --max-depth=1 /var
sudo du -xh --max-depth=1 /var/log
4.0K /var/crash
60K /var/spool
4.0K /var/mail
860K /var/nvidia
83G /var/log
2.2G /var/cuda-tegra-repo-ubuntu2204-12-2-local
4.0K /var/metrics
4.0K /var/opt
12M /var/snap
1.7G /var/lib
4.0K /var/local
30M /var/cache
84K /var/tmp
894M /var/cudnn-local-tegra-repo-ubuntu2204-8.9.4.25
4.4M /var/backups
88G /var
16K /var/log/installer
104K /var/log/apt
4.0K /var/log/private
4.0K /var/log/gdm3
83G /var/log
root@jetson-desktop:~# find /var/log -type f -name "*.gz" -delete
root@jetson-desktop:~# sudo du -xh --max-depth=1 /var/log
16K /var/log/installer
88K /var/log/apt
4.0K /var/log/private
4.0K /var/log/gdm3
83G /var/log
root@jetson-desktop:~# journalctl --vacuum-time=10d
Vacuuming done, freed 0B of archived journals from /run/log/journal.
Vacuuming done, freed 0B of archived journals from /run/log/journal/5dbfb12414a3456d9014d88183e338b1.
root@jetson-desktop:~# sudo du -xh --max-depth=1 /var/log
16K /var/log/installer
88K /var/log/apt
4.0K /var/log/private
4.0K /var/log/gdm3
83G /var/log
root@jetson-desktop:~# sudo rm -rf /var/log/user.log
root@jetson-desktop:~# sudo du -xh --max-depth=1 /var/log
16K /var/log/installer
88K /var/log/apt
4.0K /var/log/private
4.0K /var/log/gdm3
83G /var/log
root@jetson-desktop:~# sudo rm -rf /var/log/syslog
root@jetson-desktop:~# sudo rm -rf /var/log/messages
root@jetson-desktop:~# sudo du -xh --max-depth=1 /var/log
16K /var/log/installer
88K /var/log/apt
4.0K /var/log/private
4.0K /var/log/gdm3
6.3G /var/log
root@jetson-desktop:~# systemctl restart syslog.service
root@jetson-desktop:~#