How to hibernate Debian with Secure Boot enabled and fully encrypted disk?How to hibernate Debian with...

Beginner in need of a simple explanation of the difference between order of evaluation and precedence/associativity

Will using a resistor in series with a LED to control its voltage increase the total energy expenditure?

The cat ate your input again!

In which case does the Security misconfiguration vulnerability apply to?

Is it possible to grow new organs through exposure to radioactivity?

Weird resistor with dots around it

Why command hierarchy, if the chain of command is standing next to each other?

If I animate and control a zombie, does it benefit from Undead Fortitude when it's reduced to 0 HP?

Running code generated in realtime in JavaScript with eval()

Does Nightpack Ambusher's second ability trigger if I cast spells during the end step?

How to Check all AD userers for "blank" password?

A torrent of foreign terms

Boss wants me to ignore a software API license prohibiting mass download

How was the murder committed?

Why are Tucker and Malcolm not dead?

Telephone number in spoken words

(A room / an office) where an artist works

Do I have to cite common CS algorithms?

What can Amex do if I cancel their card after using the sign up bonus miles?

How much can I judge a company based on a phone screening?

How big are the Choedan Kal?

How would timezones work on a planet 100 times the size of our Earth

Are there really no countries that protect Freedom of Speech as the United States does?

My cat is a houdini



How to hibernate Debian with Secure Boot enabled and fully encrypted disk?


How to hibernate Debian with swapfile on home partition of fully encrypted disk?How to hibernate in Debian JessieDebian 8 hibernate and suspend not workingHow can I secure the initrd and grub.cfg using secure boot?How to boot Arch Linux installation medium with Secure Boot enabled?Resuming Linux from hibernate on ThinkPad X220 fails with black screen or rebootLatest Ubuntu and Secure BootHow to install Debian with full disk encryption for UEFI?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















I'd like to be able to hibernate another one of my Debian/KDE machines because it's practical and I'd like to save some energy.
I can't hibernate another one which has a swapfile and Secure Boot currently disabled.



The machine runs Debian10/KDE, has Secure Boot enabled and currently doesn't have a swapfile but a swap-partition (which is larger than the RAM). The hard disk is fully encrypted. I already tried the following:




  • In the DE I went to Leave but unlike on my other machine there is no entry for "Hibernate". When I search for "Hibernate" the button appears but I can't right click it for more info and nothing happens when I click it.

  • Installing uswsusp and then running sudo s2disk. This returns:


s2disk: Could not open the snapshot device. Reason: Operation not permitted



  • Installing hibernate and running sudo hibernate. This returns:


hibernate:Warning: Tuxonice binary signature file not found.  
UdevQt: unhandlet device action "unbind"
UdevQt: unhandled device action "unbind"
UdevQt: unhandlet device action "bind"
UdevQt: unhandled device action "bind"



  • Installing pm-utils and the executing sudo pm-hibernate. This returns nothing and nothing happens.

  • Running sudo systemctl hibernate.


Failed to hibernate system via logind: Sleep verb "hibernate" not supported


Searching syslog for "error" or "hibern" doesn't show anything.



Is it because of security issues? I intend to change the swap-partition to a swapfile later. Hibernating with Secure Boot should be fine when the disk is fully encrypted.










share|improve this question



























  • For some reason I only got this to work with openSUSE installer and its handling/configuration of GRUB2. I assume that you are using LVM on LUKS with /, /home and swap all inside the LVM container?

    – Ned64
    16 hours ago













  • Please post your kernel commandline (cat /proc/cmdline, it needs resume) and lsblk output.

    – Ned64
    16 hours ago













  • sudo lvdisplay shows that all 3 partitions are inside the volume group. cmdline has: BOOT_IMAGE=/vmlinuz-4.19.0.5-amd64 root=/dev/mapper/Debian-root ro quiet apparmor=1 security=apparmor. lsblk also shows all 3 partitions being part of the same crypt container. What do you mean with it needing resume? Do I need to edit uswsusp.conf and grub as described here?: wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition

    – mYnDstrEAm
    13 hours ago






  • 1





    Let's stay with a swap partition for the moment and get it to work because I believe doing that in a file is more complicated. I see your problem and will start with an answer when I can access the laptop where it works.

    – Ned64
    13 hours ago


















2















I'd like to be able to hibernate another one of my Debian/KDE machines because it's practical and I'd like to save some energy.
I can't hibernate another one which has a swapfile and Secure Boot currently disabled.



The machine runs Debian10/KDE, has Secure Boot enabled and currently doesn't have a swapfile but a swap-partition (which is larger than the RAM). The hard disk is fully encrypted. I already tried the following:




  • In the DE I went to Leave but unlike on my other machine there is no entry for "Hibernate". When I search for "Hibernate" the button appears but I can't right click it for more info and nothing happens when I click it.

  • Installing uswsusp and then running sudo s2disk. This returns:


s2disk: Could not open the snapshot device. Reason: Operation not permitted



  • Installing hibernate and running sudo hibernate. This returns:


hibernate:Warning: Tuxonice binary signature file not found.  
UdevQt: unhandlet device action "unbind"
UdevQt: unhandled device action "unbind"
UdevQt: unhandlet device action "bind"
UdevQt: unhandled device action "bind"



  • Installing pm-utils and the executing sudo pm-hibernate. This returns nothing and nothing happens.

  • Running sudo systemctl hibernate.


Failed to hibernate system via logind: Sleep verb "hibernate" not supported


Searching syslog for "error" or "hibern" doesn't show anything.



Is it because of security issues? I intend to change the swap-partition to a swapfile later. Hibernating with Secure Boot should be fine when the disk is fully encrypted.










share|improve this question



























  • For some reason I only got this to work with openSUSE installer and its handling/configuration of GRUB2. I assume that you are using LVM on LUKS with /, /home and swap all inside the LVM container?

    – Ned64
    16 hours ago













  • Please post your kernel commandline (cat /proc/cmdline, it needs resume) and lsblk output.

    – Ned64
    16 hours ago













  • sudo lvdisplay shows that all 3 partitions are inside the volume group. cmdline has: BOOT_IMAGE=/vmlinuz-4.19.0.5-amd64 root=/dev/mapper/Debian-root ro quiet apparmor=1 security=apparmor. lsblk also shows all 3 partitions being part of the same crypt container. What do you mean with it needing resume? Do I need to edit uswsusp.conf and grub as described here?: wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition

    – mYnDstrEAm
    13 hours ago






  • 1





    Let's stay with a swap partition for the moment and get it to work because I believe doing that in a file is more complicated. I see your problem and will start with an answer when I can access the laptop where it works.

    – Ned64
    13 hours ago














2












2








2








I'd like to be able to hibernate another one of my Debian/KDE machines because it's practical and I'd like to save some energy.
I can't hibernate another one which has a swapfile and Secure Boot currently disabled.



The machine runs Debian10/KDE, has Secure Boot enabled and currently doesn't have a swapfile but a swap-partition (which is larger than the RAM). The hard disk is fully encrypted. I already tried the following:




  • In the DE I went to Leave but unlike on my other machine there is no entry for "Hibernate". When I search for "Hibernate" the button appears but I can't right click it for more info and nothing happens when I click it.

  • Installing uswsusp and then running sudo s2disk. This returns:


s2disk: Could not open the snapshot device. Reason: Operation not permitted



  • Installing hibernate and running sudo hibernate. This returns:


hibernate:Warning: Tuxonice binary signature file not found.  
UdevQt: unhandlet device action "unbind"
UdevQt: unhandled device action "unbind"
UdevQt: unhandlet device action "bind"
UdevQt: unhandled device action "bind"



  • Installing pm-utils and the executing sudo pm-hibernate. This returns nothing and nothing happens.

  • Running sudo systemctl hibernate.


Failed to hibernate system via logind: Sleep verb "hibernate" not supported


Searching syslog for "error" or "hibern" doesn't show anything.



Is it because of security issues? I intend to change the swap-partition to a swapfile later. Hibernating with Secure Boot should be fine when the disk is fully encrypted.










share|improve this question
















I'd like to be able to hibernate another one of my Debian/KDE machines because it's practical and I'd like to save some energy.
I can't hibernate another one which has a swapfile and Secure Boot currently disabled.



The machine runs Debian10/KDE, has Secure Boot enabled and currently doesn't have a swapfile but a swap-partition (which is larger than the RAM). The hard disk is fully encrypted. I already tried the following:




  • In the DE I went to Leave but unlike on my other machine there is no entry for "Hibernate". When I search for "Hibernate" the button appears but I can't right click it for more info and nothing happens when I click it.

  • Installing uswsusp and then running sudo s2disk. This returns:


s2disk: Could not open the snapshot device. Reason: Operation not permitted



  • Installing hibernate and running sudo hibernate. This returns:


hibernate:Warning: Tuxonice binary signature file not found.  
UdevQt: unhandlet device action "unbind"
UdevQt: unhandled device action "unbind"
UdevQt: unhandlet device action "bind"
UdevQt: unhandled device action "bind"



  • Installing pm-utils and the executing sudo pm-hibernate. This returns nothing and nothing happens.

  • Running sudo systemctl hibernate.


Failed to hibernate system via logind: Sleep verb "hibernate" not supported


Searching syslog for "error" or "hibern" doesn't show anything.



Is it because of security issues? I intend to change the swap-partition to a swapfile later. Hibernating with Secure Boot should be fine when the disk is fully encrypted.







debian kde hibernate secure-boot






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 16 hours ago









Bart

1,0621 gold badge3 silver badges17 bronze badges




1,0621 gold badge3 silver badges17 bronze badges










asked 17 hours ago









mYnDstrEAmmYnDstrEAm

8986 gold badges19 silver badges47 bronze badges




8986 gold badges19 silver badges47 bronze badges
















  • For some reason I only got this to work with openSUSE installer and its handling/configuration of GRUB2. I assume that you are using LVM on LUKS with /, /home and swap all inside the LVM container?

    – Ned64
    16 hours ago













  • Please post your kernel commandline (cat /proc/cmdline, it needs resume) and lsblk output.

    – Ned64
    16 hours ago













  • sudo lvdisplay shows that all 3 partitions are inside the volume group. cmdline has: BOOT_IMAGE=/vmlinuz-4.19.0.5-amd64 root=/dev/mapper/Debian-root ro quiet apparmor=1 security=apparmor. lsblk also shows all 3 partitions being part of the same crypt container. What do you mean with it needing resume? Do I need to edit uswsusp.conf and grub as described here?: wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition

    – mYnDstrEAm
    13 hours ago






  • 1





    Let's stay with a swap partition for the moment and get it to work because I believe doing that in a file is more complicated. I see your problem and will start with an answer when I can access the laptop where it works.

    – Ned64
    13 hours ago



















  • For some reason I only got this to work with openSUSE installer and its handling/configuration of GRUB2. I assume that you are using LVM on LUKS with /, /home and swap all inside the LVM container?

    – Ned64
    16 hours ago













  • Please post your kernel commandline (cat /proc/cmdline, it needs resume) and lsblk output.

    – Ned64
    16 hours ago













  • sudo lvdisplay shows that all 3 partitions are inside the volume group. cmdline has: BOOT_IMAGE=/vmlinuz-4.19.0.5-amd64 root=/dev/mapper/Debian-root ro quiet apparmor=1 security=apparmor. lsblk also shows all 3 partitions being part of the same crypt container. What do you mean with it needing resume? Do I need to edit uswsusp.conf and grub as described here?: wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition

    – mYnDstrEAm
    13 hours ago






  • 1





    Let's stay with a swap partition for the moment and get it to work because I believe doing that in a file is more complicated. I see your problem and will start with an answer when I can access the laptop where it works.

    – Ned64
    13 hours ago

















For some reason I only got this to work with openSUSE installer and its handling/configuration of GRUB2. I assume that you are using LVM on LUKS with /, /home and swap all inside the LVM container?

– Ned64
16 hours ago







For some reason I only got this to work with openSUSE installer and its handling/configuration of GRUB2. I assume that you are using LVM on LUKS with /, /home and swap all inside the LVM container?

– Ned64
16 hours ago















Please post your kernel commandline (cat /proc/cmdline, it needs resume) and lsblk output.

– Ned64
16 hours ago







Please post your kernel commandline (cat /proc/cmdline, it needs resume) and lsblk output.

– Ned64
16 hours ago















sudo lvdisplay shows that all 3 partitions are inside the volume group. cmdline has: BOOT_IMAGE=/vmlinuz-4.19.0.5-amd64 root=/dev/mapper/Debian-root ro quiet apparmor=1 security=apparmor. lsblk also shows all 3 partitions being part of the same crypt container. What do you mean with it needing resume? Do I need to edit uswsusp.conf and grub as described here?: wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition

– mYnDstrEAm
13 hours ago





sudo lvdisplay shows that all 3 partitions are inside the volume group. cmdline has: BOOT_IMAGE=/vmlinuz-4.19.0.5-amd64 root=/dev/mapper/Debian-root ro quiet apparmor=1 security=apparmor. lsblk also shows all 3 partitions being part of the same crypt container. What do you mean with it needing resume? Do I need to edit uswsusp.conf and grub as described here?: wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition

– mYnDstrEAm
13 hours ago




1




1





Let's stay with a swap partition for the moment and get it to work because I believe doing that in a file is more complicated. I see your problem and will start with an answer when I can access the laptop where it works.

– Ned64
13 hours ago





Let's stay with a swap partition for the moment and get it to work because I believe doing that in a file is more complicated. I see your problem and will start with an answer when I can access the laptop where it works.

– Ned64
13 hours ago










0






active

oldest

votes














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535347%2fhow-to-hibernate-debian-with-secure-boot-enabled-and-fully-encrypted-disk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535347%2fhow-to-hibernate-debian-with-secure-boot-enabled-and-fully-encrypted-disk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...