Fedora 上的 /boot 分區已滿

Fedora 上的 /boot 分區已滿

當我啟動系統時,我收到一條錯誤訊息,該訊息/boot已滿,而且當我嘗試時dnf upgrade,我收到一條Transaction test error訊息說kernel-core-5.5.10-200.fc31.x86_64需要 38 MB in /boot.

我已經使用了sudo dnf remove <old kernels>兩次,因為rpm -qa kernel向我展示了三種不同的內核,所以我只留下了我現在使用的內核。

我嘗試使用package-cleanup --oldkernels --count=2,但由於某種原因它告訴我該--oldkernels選項不可用: package-cleanup has to be executed with one of the options: --dupes, --leaves, --orphans, --problems or --cleandupes

這是我的ls -Shla /boot

total 218M
-rw-------.  1 root root  80M 03-16 01:07 initramfs-0-rescue-4251ae127a3e4220b94ebab6645dba6c.img
-rw-------.  1 root root  31M 03-16 01:08 initramfs-5.3.7-301.fc31.x86_64.img
-rw-------.  1 root root  29M 03-19 09:06 initramfs-5.5.9-200.fc31.x86_64.img
-rw-------.  1 root root  27M 03-16 04:40 initramfs-5.5.8-200.fc31.x86_64.img
-rwxr-xr-x.  1 root root  11M 03-05 22:42 vmlinuz-5.5.8-200.fc31.x86_64
-rwxr-xr-x.  1 root root  11M 03-12 15:10 vmlinuz-5.5.9-200.fc31.x86_64
-rwxr-xr-x.  1 root root 8,9M 03-16 01:08 vmlinuz-0-rescue-4251ae127a3e4220b94ebab6645dba6c
-rwxr-xr-x.  1 root root 8,9M 10-21 21:34 vmlinuz-5.3.7-301.fc31.x86_64
-rw-------.  1 root root 4,9M 03-12 15:09 System.map-5.5.9-200.fc31.x86_64
-rw-------.  1 root root 4,9M 03-05 22:42 System.map-5.5.8-200.fc31.x86_64
-rw-------.  1 root root 4,3M 10-21 21:33 System.map-5.3.7-301.fc31.x86_64
-rw-r--r--.  1 root root 213K 03-05 22:42 config-5.5.8-200.fc31.x86_64
-rw-r--r--.  1 root root 213K 03-12 15:09 config-5.5.9-200.fc31.x86_64
-rw-r--r--.  1 root root 209K 10-21 21:33 config-5.3.7-301.fc31.x86_64
-rw-r--r--.  1 root root 181K 2019-08-02  elf-memtest86+-5.01
-rw-r--r--.  1 root root 179K 2019-08-02  memtest86+-5.01
drwx------.  6 root root  16K 1970-01-01  efi
drwx------.  2 root root  12K 03-16 01:05 lost+found
dr-xr-xr-x. 18 root root 4,0K 03-16 05:29 ..
drwxr-xr-x.  2 root root 3,0K 10-24 01:12 extlinux
dr-xr-xr-x.  7 root root 1,0K 03-19 09:06 .
drwx------.  3 root root 1,0K 01-13 18:14 grub2
drwxr-xr-x.  3 root root 1,0K 03-16 01:07 loader
-rw-r--r--.  1 root root  166 10-21 21:30 .vmlinuz-5.3.7-301.fc31.x86_64.hmac
-rw-r--r--.  1 root root  166 03-05 22:40 .vmlinuz-5.5.8-200.fc31.x86_64.hmac
-rw-r--r--.  1 root root  166 03-12 15:07 .vmlinuz-5.5.9-200.fc31.x86_64.hmac

另外,我/boot在安裝時為分割區分配空間時,將其設定為250 MiB。
我該怎麼解決呢?我應該刪除其中一些文件,使用一些魔法命令還是其他東西?

相關內容