Linux не выходит из спящего режима с зашифрованным разделом подкачкиLinux

Ответить Пред. темаСлед. тема
Гость
 Linux не выходит из спящего режима с зашифрованным разделом подкачки

Сообщение Гость »


I have a LUKS setup with an encrypted swap partition. I have no intention to use the hibernation / suspend-to-disk feature so I set up the encrypted swap partition without such support. Reference documentation.

My understanding is that the encrypted swap partition is encrypted with a random key which is overwritten on every boot, so resuming from hibernation is impossible in this setup.

A few days ago I accidentally used systemctl hibernate command to put the system into hibernation. When I try to resume from hibernation, there is a 120s timer before a timeout happens and the resume process fails. The system just boots into a fresh start.

The error in systemd journal:

dev-disk-by\x2duuid-4e9d677c\x2d42d1\x2d4072\x2d91d6\x2d456a25d34d52.device: Job dev-disk-by\x2duuid-4e9d677c\x2d42d1\x2d4072\x2d91d6\x2d456a25d34d52.device/start timed out. Timed out waiting for device /dev/disk/by-uuid/4e9d677c-42d1-4072-91d6-456a25d34d52. Dependency failed for Resume from hibernation. systemd-hibernate-resume.service: Job systemd-hibernate-resume.service/start failed with result 'dependency'. dev-disk-by\x2duuid-4e9d677c\x2d42d1\x2d4072\x2d91d6\x2d456a25d34d52.device: Job dev-disk-by\x2duuid-4e9d677c\x2d42d1\x2d4072\x2d91d6\x2d456a25d34d52.device/start failed with result 'timeout'. I try to reboot multiple times, but each time there is always a 120s timeout followed by the error that the device timed out. The device with that UUID 4e9d677c-... does not actually exist as it is the the UUID belongs to the transient encrypted swap partition.

I assume that the suspend flag is set somewhere so the system always tries to resume when booting but the process failed due to some other reasons.

Is there a way to clear / reset the suspend flag, so that it directly boots freshly without trying to resuming (and failing)?


Источник: https://stackoverflow.com/questions/781 ... -partition
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение
  • В статистике спящего режима в чем разница между загрузкой и выборкой
    Гость » » в форуме JAVA
    0 Ответы
    43 Просмотры
    Последнее сообщение Гость
  • Миграция из спящего режима с 5.6 на 6.2
    Гость » » в форуме JAVA
    0 Ответы
    25 Просмотры
    Последнее сообщение Гость
  • Невозможно импортировать файл конфигурации спящего режима в eclipse
    Anonymous » » в форуме JAVA
    0 Ответы
    28 Просмотры
    Последнее сообщение Anonymous
  • Временно пропустить проверку спящего режима
    Anonymous » » в форуме JAVA
    0 Ответы
    21 Просмотры
    Последнее сообщение Anonymous
  • Вход в систему Использование спящего режима для получения имени пользователя и пароля
    Anonymous » » в форуме JAVA
    0 Ответы
    35 Просмотры
    Последнее сообщение Anonymous

Вернуться в «Linux»