我正在 Oracle VirtualBox 上运行 Fedora Workstation VM。使用虚拟机大约一个月后,我在登录时收到“文件系统根磁盘空间不足”弹出窗口。磁盘使用分析器显示:
我运行这个来检查大文件
find / -type f -exec ls -s {} \; | sort -n -r | head -20
并得到这些结果:
[root@localhost ~]# find / -type f -exec ls -s {} \; | sort -n -r | head -20
find: ‘/run/user/1000/gvfs’: Permission denied
ls: cannot access '/proc/3355/task/3355/fdinfo/5': No such file or directory
ls: cannot access '/proc/3355/fdinfo/6': No such file or directory
1786352 /run/media/joe/Fedora-WS-Live-29-1-2/LiveOS/squashfs.img
210116 /usr/lib/locale/locale-archive
137672 /usr/lib/jvm/java-11-openjdk-11.0.ea.28-2.fc29.x86_64/lib/modules
119748 /usr/lib64/firefox/libxul.so
69396 /boot/initramfs-0-rescue-83995d8e04c4471c85be9b18e488ac62.img
59032 /usr/lib64/libLLVM-7.so
56264 /usr/share/GeoIP/GeoLite2-City.mmdb
49268 /var/cache/PackageKit/29/hawkey/fedora-filenames.solvx
49268 /var/cache/dnf/fedora-filenames.solvx
49257 /run/media/joe/Fedora-WS-Live-29-1-2/isolinux/initrd.img
49257 /run/media/joe/Fedora-WS-Live-29-1-2/images/pxeboot/initrd.img
47856 /var/cache/PackageKit/29/metadata/fedora-29-x86_64/repodata/55059fb25f8577d2a18d0883247b604dade9f3f68b5b54593ec1809acc57e5fc-filelists.xml.gz
47856 /var/cache/dnf/fedora-8c9e363c32277c01/repodata/55059fb25f8577d2a18d0883247b604dade9f3f68b5b54593ec1809acc57e5fc-filelists.xml.gz
46492 /usr/libexec/webkit2gtk-4.0/WebKitPluginProcess2
45380 /usr/lib64/libwebkit2gtk-4.0.so.37.33.3
43020 /var/lib/rpm/Packages
40072 /usr/lib64/libopenblas-r0.3.3.so
33576 /usr/lib64/firefox/browser/omni.ja
26224 /usr/lib64/libicudata.so.62.1
25276 /usr/share/fonts/google-noto-cjk/NotoSerifCJK-Bold.ttc
[root@localhost ~]#
有任何想法吗?
答案1
有问题的(虚拟)分区是5.7GB,对于 Fedora 的工作实例来说并不算大。
最简单的事情是增加分区的大小。