disk-linux-清理Ubuntu系统下的100%使用率的loop磁盘分区

清理Ubuntu系统下的100%使用率的loop磁盘分区

sudo apt autoremove --purge snapd

循环定位最大文件目录

du -h --max-depth=1

实例演示

root@zuiyoujie:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.8G     0  1.8G   0% /dev
tmpfs           371M  780K  370M   1% /run
/dev/nvme0n1p1   97G  2.8G   95G   3% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/loop0       89M   89M     0 100% /snap/core/7169
/dev/loop1       18M   18M     0 100% /snap/amazon-ssm-agent/1335
/dev/loop2       94M   94M     0 100% /snap/core/8935
/dev/loop3       18M   18M     0 100% /snap/amazon-ssm-agent/1566
tmpfs           371M     0  371M   0% /run/user/0
root@zuiyoujie:~# sudo apt autoremove --purge snapd
root@zuiyoujie:~# df-h
df-h: command not found
root@zuiyoujie:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.8G     0  1.8G   0% /dev
tmpfs           371M  768K  370M   1% /run
/dev/nvme0n1p1   97G  2.5G   95G   3% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           371M     0  371M   0% /run/user/0
root@zuiyoujie:~# fdisk -l
Disk /dev/nvme0n1: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x34283f9c

Device         Boot Start       End   Sectors  Size Id Type
/dev/nvme0n1p1 *     2048 209715166 209713119  100G 83 Linux
root@zuiyoujie:~# 
posted @ 2023-05-17 18:00  天生帅才  阅读(613)  评论(0编辑  收藏  举报
// 百度统计