当前位置:网站首页>Treatment of insufficient space in the root partition of armbain system
Treatment of insufficient space in the root partition of armbain system
2022-07-01 23:01:00 【Fate in the Jianghu】
Armbain Insufficient space in the system root partition
One 、 System check
1. see debain edition
[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. see CPU Information
[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
Two 、 Check disk condition
[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
3、 ... and 、 Analyze the space occupied by directories at all levels
1. Overall, check the directory size under the root partition
[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. Sort the directories under the root partition according to the occupied space
[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
Four 、 Clean up unimportant directories and files that occupy the largest space
[email protected]:/www# rm -rf ./* [email protected]:/www#
5、 ... and 、 Logical volume expansion space
If the disk partition adopts lvm Logic volume , You can directly expand partitions
pvcreate /dev/sdc3 # Create a new physical volume pv
vgextend vg01 /dev/sdc3 # To expand the volume group
lvextend -L +2G /dev/vg01/lv01 # Extended logical volume
xfs_growfs /mnt/lv01/ # Make the extension effective
边栏推荐
- Understanding of transactions in MySQL
- Chen Tianqi's machine learning compilation course (free)
- 有些能力,是工作中学不来的,看看这篇超过90%同行
- Cloud Vulnerability Global Database
- SAP 智能机器人流程自动化(iRPA)解决方案分享
- Single step debugging analysis of rxjs observable of operator
- 思科--WAN 的概念考试外部工具
- 激发新动能 多地发力数字经济
- [literacy] deep / shallow, local / global features in machine learning image processing
- Flynk SQL client uses comparison and is familiar with official documents
猜你喜欢
Use three JS realize the 'ice cream' earth, and let the earth cool for a summer
【Kotlin 第三方 】coil koltin协程图片加载库Coil类似Glide的图片加载第三方
Genicam gentl standard ver1.5 (4) Chapter 5 acquisition engine
MySQL -- deduction of index storage model
思科考试--冗余网络
转--原来gdb的底层调试原理这么简单
台积电全球员工薪酬中位数约46万,CEO约899万;苹果上调日本的 iPhone 售价 ;Vim 9.0 发布|极客头条
使用3DMax制作一个象棋棋子
14年本科毕业,3个月转行软件测试月薪13.5k,32的岁我终于找对了方向
MySQL -- index of InnoDB storage engine
随机推荐
A few minutes before work, I found out V-model and The difference between sync
redis配置文件中常用配置详解[通俗易懂]
[daily training] 66 add one-tenth
There is no signal in HDMI in computer games caused by memory, so it crashes
Armbain系统根分区空间不足处理
MySQL -- index of MyISAM storage engine
leetcode - 287. Find duplicates
聊一聊Zabbix都监控哪些参数
死锁的处理策略—预防死锁、避免死锁、检测和解除死锁
Two schemes of transforming the heat map of human posture estimation into coordinate points
Flynk SQL client uses comparison and is familiar with official documents
Single step debugging analysis of rxjs observable of operator
Rust language - Introduction to Xiaobai 05
Little red book scheme jumps to the specified page
Understanding of transactions in MySQL
[image segmentation] 2021 segformer neurips
Réimpression de l'article csdn
Sogou wechat app reverse (II) so layer
Cisco -- highly available and reliable network examination
思科考试--冗余网络