0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu 24.04で暗号化ディスク(LUKS)が解除できない問題の対処メモ

0
Posted at

はじめに

Ubuntu 24.04で、カーネルアップグレード後に暗号化された起動ディスクを解除できなくなった。その対処方法を紹介する。

動作確認環境

  • Ubuntu 24.04 x86_64
    • Linuxカーネル
      • 6.14.0-37 暗号化解除NG
      • 6.14.0-36 暗号化解除OK

不具合の現象

OSの起動画面までは進むが、暗号化解除パスワード入力画面が表示されず、そのまま起動処理が停止する。
OSの起動ログを確認すると以下のようになっており、暗号化解除できていないことがわかる。

Gave up waiting for root file system device. Common problems:
ALERT! /dev/mapper/ubuntu-vg-ubuntu--lv does not exist.

カーネル6.14.0-37でinitramfsやcryptsetup周りに不具合がある可能性がある。

対処方法

Linuxカーネル6.14.0-36では正常に動作するので、OS起動時にGRUBのメニュー画面で「Advanced options for Ubuntu」を選択して、Linuxカーネル6.14.0-36を選んで起動する。
:::note info
GRUBメニューが出ない環境(高速起動など)の場合は、OS起動時にShift や Escキーを押してGRUBメニューを表示させる。
:::

uname -rで、現在起動中のカーネルが6.14.0-36になっているか確認する。

ログインに成功したら、起動しないLinuxカーネル6.14.0-37をアンインストールする。※現在起動中のカーネルでないことを uname -r で確認してから実行すること。

sudo apt remove linux-image-6.14.0-37-generic

また、問題が解消されるまでカーネルの自動アップデートを防ぐため、以下を設定しておく。

sudo apt-mark hold linux-generic linux-image-generic linux-headers-generic

※この設定によりカーネル更新が停止するため、問題解消後は必ず解除すること。

カーネル削除後、念のためinitramfsを更新する。

sudo update-initramfs -u

その後、再起動する。

まとめ

Ubuntu 24.04で、カーネルアップデート後にLUKS暗号化ディスクが解除できなくなる問題について、回避策として旧カーネルでの起動と問題カーネルの削除方法を紹介した。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?