当前位置:网站首页>Armbain系统根分区空间不足处理
Armbain系统根分区空间不足处理
2022-07-01 22:02:00 【江湖有缘】
Armbain系统根分区空间不足处理
一、系统检查
1.查看debain版本
[email protected]:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
2.查看CPU信息
[email protected]:~# cat /proc/cpuinfo
Processor : ARMv7 Processor rev 1 (v7l)
processor : 0
BogoMIPS : 1.02
processor : 1
BogoMIPS : 1.02
processor : 2
BogoMIPS : 1.02
processor : 3
BogoMIPS : 1.02
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc05
CPU revision : 1
Hardware : Amlogic Meson8B
Revision : 000a
Serial : 1b00000000000000
二、检查磁盘情况
[email protected]:~# df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 395M 0 395M 0% /dev
tmpfs tmpfs 80M 6.8M 73M 9% /run
/dev/system ext4 6.8G 6.4G 67M 99% /
tmpfs tmpfs 397M 0 397M 0% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 397M 0 397M 0% /sys/fs/cgroup
tmpfs tmpfs 397M 2.7M 394M 1% /tmp
/dev/boot vfat 32M 15M 18M 46% /boot
/dev/sda1 ext4 110G 18G 87G 18% /data
/dev/zram0 ext4 49M 19M 27M 41% /var/log
tmpfs tmpfs 80M 0 80M 0% /run/user/0
三、分析各级目录占用空间
1.总体查看根分区下目录大小
[email protected]:~# du -ah --max-depth=1 /
15M /boot
255M /root
4.0K /home
16K /opt
47M /lib
du: cannot access '/proc/22290/task/22290/fd/4': No such file or directory
du: cannot access '/proc/22290/task/22290/fdinfo/4': No such file or directory
du: cannot access '/proc/22290/fd/4': No such file or directory
du: cannot access '/proc/22290/fdinfo/4': No such file or directory
0 /proc
du: cannot access '/sys/kernel/slab/L2TP/IPv6': No such file or directory
du: cannot access '/sys/kernel/slab/L2TP/IP': No such file or directory
0 /sys
347M /var
4.0K /srv
4.0K /.pearrc
0 /dev
13M /sbin
4.0K /lost+found
4.0K /selinux
2.7M /tmp
18G /data
4.9M /etc
6.8M /run
4.0K /mnt
9.0M /bin
4.3G /www
1.5G /usr
4.0K /media
25G /
2.对根分区下目录按占用空间大小排序
[email protected]:~# du --max-depth=1 / |sort -rn
du: cannot access '/proc/12708/task/12708/fd/4': No such file or directory
du: cannot access '/proc/12708/task/12708/fdinfo/4': No such file or directory
du: cannot access '/proc/12708/fd/4': No such file or directory
du: cannot access '/proc/12708/fdinfo/4': No such file or directory
du: cannot access '/sys/kernel/slab/L2TP/IPv6': No such file or directory
du: cannot access '/sys/kernel/slab/L2TP/IP': No such file or directory
25221742 /
18547804 /data
4435832 /www
1523092 /usr
354984 /var
260912 /root
47372 /lib
14854 /boot
13048 /sbin
9136 /bin
6916 /run
4988 /etc
2756 /tmp
16 /opt
4 /srv
4 /selinux
4 /mnt
4 /media
4 /lost+found
4 /home
0 /sys
0 /proc
0 /dev
四、清理不重要的占用空间最大目录及文件
[email protected]:/www# rm -rf ./* [email protected]:/www# 五、逻辑卷扩充空间
如果磁盘分区采用lvm逻辑卷,可以直接扩展分区
pvcreate /dev/sdc3 #创建新物理卷pv
vgextend vg01 /dev/sdc3 # 扩展卷组
lvextend -L +2G /dev/vg01/lv01 #扩展逻辑卷
xfs_growfs /mnt/lv01/ #使扩展生效
边栏推荐
- MySQL -- index of InnoDB storage engine
- 死锁的处理策略—预防死锁、避免死锁、检测和解除死锁
- vSphere+、vSAN+来了!VMware 混合云聚焦:原生、快速迁移、混合负载
- Congratulations on the release of friends' new book (send welfare)
- 阿洛迷茫后的思考
- ECMAScript 2022 was officially released. Have you heard about it?
- Explain ThreadLocal in detail
- The fixed assets management subsystem reports are divided into what categories and which accounts are included
- Share some feelings of a programmer who has experienced layoffs twice a year
- Understanding of inverted residuals
猜你喜欢
![[JUC learning road day 9] barrier derivatives](/img/7d/25a49afa470cfef5b7b383918d6a7d.png)
[JUC learning road day 9] barrier derivatives

今日睡眠质量记录71分

台积电全球员工薪酬中位数约46万,CEO约899万;苹果上调日本的 iPhone 售价 ;Vim 9.0 发布|极客头条

Fiori applications are shared through the enhancement of adaptation project

思科考试--路由的概念和配置考试

正则系列之组和范围(Groups and Ranges)

思科考试--冗余网络

SAP intelligent robot process automation (IRPA) solution sharing
![[MySQL] index classification](/img/73/fb9f28457b373ad35d2f6068387b47.png)
[MySQL] index classification

Unable to climb hill sort, directly insert sort
随机推荐
测试人进阶技能:单元测试报告应用指南
Yolov5.5 call local camera
Quantifiers of regular series
mixconv代码
447 Bili Bili noodles warp 1
ECMAScript 2022 正式发布,有你了解过的吗?
Lc669. Prune binary search tree
Deep learning -- data operation
Turn -- bring it and use it: share a gadget for checking memory leaks
陈天奇的机器学习编译课(免费)
Metauniverse may become a new direction of Internet development
[MySQL] index classification
Vsphere+ and vsan+ are coming! VMware hybrid cloud focus: native, fast migration, mixed load
Awoo's favorite problem (priority queue)
Little red book scheme jumps to the specified page
Intelligent computing architecture design of Internet
ESP自动下载电路设计
el-input文本域字数限制,超过显示变红并禁止输入
I graduated from college in 14 years and changed to software testing in 3 months. My monthly salary was 13.5k. At the age of 32, I finally found the right direction
转--拿来即用:分享一个检查内存泄漏的小工具