![ブートセクションのストレージ容量が不足しています。使用していないものを削除できますか?](https://rvso.com/image/97240/%E3%83%96%E3%83%BC%E3%83%88%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E3%82%B9%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B8%E5%AE%B9%E9%87%8F%E3%81%8C%E4%B8%8D%E8%B6%B3%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%82%82%E3%81%AE%E3%82%92%E5%89%8A%E9%99%A4%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%81%8B%3F.png)
/boot に割り当てた 512MiB のパーティションがありますが、LinuxMint はアップデート時にそこに多くのものを追加し続け、ディスク使用量について不満を言っています。
A はdf -h
次のようになります:
Filesystem Size Used Avail Use% Mounted on
udev 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 9,5M 1,6G 1% /run
/dev/sdb5 48G 13G 35G 27% /
tmpfs 7,8G 326M 7,5G 5% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup
/dev/sdb7 183G 59G 125G 33% /home
/dev/sdb1 484M 473M 12M 98% /boot
cgmfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs 1,6G 60K 1,6G 1% /run/user/1000
未使用のカーネルをクリーンアップして/boot
クリーンな状態に保つにはどうすればよいでしょうか?
編集
# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-extra-4.4.0-45-generic (4.4.0-45.66) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-45-generic
Warning: No support for locale: en_US.utf8
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-45-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-45-generic (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-extra-4.4.0-45-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
答え1
どのパッケージがすべてのカーネルを提供しているかを調べるには、
dpkg -S /boot/vmlinuz*
これらは のスペースを占有するパッケージです/boot
。不要になったパッケージは削除できます (通常は、最後の 2 つのバージョンを保持し、現在実行中のカーネルを保持するようにしてください)。