他のハードドライブエラーのため、debian 12 に 'initramfs-tools' を完全にインストールできません。

他のハードドライブエラーのため、debian 12 に 'initramfs-tools' を完全にインストールできません。

Linuxカーネルを更新するたびにエラー/警告が表示されますが、これは常に心配です。initramfs-toolsコンテンツの一部だけがダウンロードされ、残りのスペースがないと言われています。

1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for libc-bin (2.36-9+deb12u3) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-13-amd64
zstd: error 70 : Write error : cannot write block : No space left on device 
E: mkinitramfs failure zstd -q -9 -T0 70
update-initramfs: failed for /boot/initrd.img-6.1.0-13-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-13-amd64
zstd: error 70 : Write error : cannot write block : No space left on device 
E: mkinitramfs failure zstd -q -9 -T0 70
update-initramfs: failed for /boot/initrd.img-6.1.0-13-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
  • ブートパーティションを確認した結果、82%しか使用しておらず、42MBの空き容量が残っていて十分です。

  • Debian 11(buster)からDebian 12(bookworm)にアップデートした後、これらのエラーが発生しました。現在のカーネルはです6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux。アップデート以降、下図のように「ハードディスクの状態警告」が表示されることがありますが、この問題に関連しているかどうかはわかりません。 ここに画像の説明を入力してください。

  • 関連パーティションをテストしましたが、smartctlすべて通過し、これまで問題はありませんでした...

私が言及しなければならないもう一つのことは、bookwormにアップグレードした後、カーネルアップデートがあるたびに2番目に古いカーネルを手動で削除する必要があることです。以前のBusterではこれを行う必要はありませんでした。これを行うには、rootとして次のコマンドを実行します。

apt-get autoremove
apt-get autoclean

そしてもちろん

update-initramfs
update-grub

initramfs-toolsこれで、実行後の問題により、update-grub次のエラーが発生します。

Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinuz-6.1.0-13-amd64
Found initrd image: /boot/initrd.img-6.1.0-13-amd64
Found linux image: /boot/vmlinuz-6.1.0-12-amd64
Found initrd image: /boot/initrd.img-6.1.0-12-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

この問題は私のブートパーティションとLinuxカーネルに関連しているので非常に心配です。誰も修正を知っていますか?ハードドライブの警告は私が興味を持っている必要があります関連ですか?

ベストアンサー1

まあ、私も最近同じ道を行っていますが残念ながら良いニュースがありませんね。私の場合、Debianカーネル6.1.0-15-amd64がリリースされた後、ベアメタルからマシン(たとえば1つ以上)を再構築しました。 (個人的に、私はDebianの「安定性」を不安定にする個人やグループに「安定性」という言葉が何を意味するのかを言いたいです!)私が作ったばかりのマシンを不安定にしたのは幸運です。私のラップトップは常に手動で更新されます(つまり、無人アップデートは実行されません)。だから私は手動アップデートでこの災害から私のラップトップを手に入れました。 「安定性」が壊れるようにしたDebianは恥ずかしいことです!

おすすめ記事