RobotKernal-UESTC/Docs/Linux开发板遇到问题和解决方案/存储空间清理问题.md

20 lines
670 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Ubuntu存储空间占用过多问题
> 更新:詹力 2024/02/29
机器人上面Ubuntu核心板在使用一段时间后会发现存储空间可能会被占满。可以输入命令`df -h`查看当前系统的存储占用情况。
经过实际的分析发现下面几个问题存在占用空间过大的问题:
```shell
# 1.ros的log占用过大, 占用命令清理
rosclean purge
# 2. openCV源码编译发现占用6G
...
# 3. ORB-SLAM-Master占用6G
...
# 4. 最坑的是vscode /home/firefly/.cache/vscode-cpptools占用17G
rm -r /home/firefly/.cache/vscode-cpptools
```
经过上面的处理,发现原来占满的磁盘几乎都空了。