Swap partition with encrypted system - Ubuntu 18.04












0















I have installed Ubuntu 18.04 with this method.
In the partitionating step I have created space for the swap.



The problem is that the system fails to hibernate. I suppose for problems related to the encryption.



Here it is my situation:



Device         Start       End   Sectors   Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 191895551 191328256 91,2G Microsoft basic data
/dev/sda4 191895552 193943551 2048000 1000M Linux filesystem
/dev/sda5 499095552 500117503 1021952 499M Windows recovery environment
/dev/sda6 193943552 468375551 274432000 130,9G Linux filesystem
/dev/sda7 468375552 499095551 30720000 14,7G Linux swap

Partition table entries are not in disk order.


Disk /dev/mapper/cryptroot: 130,9 GiB, 140507086848 bytes, 274427904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/vgroot-lvroot: 130,9 GiB, 140504989696 bytes, 274423808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


In particular, /dev/sda6 is for the system and /dev/sda7 is for the swap.



The fstab file:



sivlab@sivlab:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/vgroot-lvroot / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda4 during installation
UUID=81ea5ac9-432d-49fe-a5d8-57cf7699dd46 /boot ext4 defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=DE9B-E87B /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda7 during installation
UUID=99bcf18a-4af0-40c3-9fef-9686debf5d48 none swap sw 0 0


The cryttab file:



sivlab@sivlab:~$ cat /etc/crypttab 
# <target name> <source device> <key file> <options>
cryptroot UUID=eb2b2b1d-fd35-4693-9abb-9a899301916e none luks,discard


swapon command:



sivlab@sivlab:~$ swapon
NAME TYPE SIZE USED PRIO
/dev/sda7 partition 14,7G 0B -2


Is there a way, to make hibernation available on an encrypted system?










share|improve this question























  • 18.04 should work with a swap file rather than swap partition. Encryption should not be a problem, however what works for me as far as encrypted swap partition goes: help.ubuntu.com/community/ManualFullSystemEncryption/…

    – C.S.Cameron
    4 mins ago
















0















I have installed Ubuntu 18.04 with this method.
In the partitionating step I have created space for the swap.



The problem is that the system fails to hibernate. I suppose for problems related to the encryption.



Here it is my situation:



Device         Start       End   Sectors   Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 191895551 191328256 91,2G Microsoft basic data
/dev/sda4 191895552 193943551 2048000 1000M Linux filesystem
/dev/sda5 499095552 500117503 1021952 499M Windows recovery environment
/dev/sda6 193943552 468375551 274432000 130,9G Linux filesystem
/dev/sda7 468375552 499095551 30720000 14,7G Linux swap

Partition table entries are not in disk order.


Disk /dev/mapper/cryptroot: 130,9 GiB, 140507086848 bytes, 274427904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/vgroot-lvroot: 130,9 GiB, 140504989696 bytes, 274423808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


In particular, /dev/sda6 is for the system and /dev/sda7 is for the swap.



The fstab file:



sivlab@sivlab:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/vgroot-lvroot / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda4 during installation
UUID=81ea5ac9-432d-49fe-a5d8-57cf7699dd46 /boot ext4 defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=DE9B-E87B /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda7 during installation
UUID=99bcf18a-4af0-40c3-9fef-9686debf5d48 none swap sw 0 0


The cryttab file:



sivlab@sivlab:~$ cat /etc/crypttab 
# <target name> <source device> <key file> <options>
cryptroot UUID=eb2b2b1d-fd35-4693-9abb-9a899301916e none luks,discard


swapon command:



sivlab@sivlab:~$ swapon
NAME TYPE SIZE USED PRIO
/dev/sda7 partition 14,7G 0B -2


Is there a way, to make hibernation available on an encrypted system?










share|improve this question























  • 18.04 should work with a swap file rather than swap partition. Encryption should not be a problem, however what works for me as far as encrypted swap partition goes: help.ubuntu.com/community/ManualFullSystemEncryption/…

    – C.S.Cameron
    4 mins ago














0












0








0








I have installed Ubuntu 18.04 with this method.
In the partitionating step I have created space for the swap.



The problem is that the system fails to hibernate. I suppose for problems related to the encryption.



Here it is my situation:



Device         Start       End   Sectors   Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 191895551 191328256 91,2G Microsoft basic data
/dev/sda4 191895552 193943551 2048000 1000M Linux filesystem
/dev/sda5 499095552 500117503 1021952 499M Windows recovery environment
/dev/sda6 193943552 468375551 274432000 130,9G Linux filesystem
/dev/sda7 468375552 499095551 30720000 14,7G Linux swap

Partition table entries are not in disk order.


Disk /dev/mapper/cryptroot: 130,9 GiB, 140507086848 bytes, 274427904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/vgroot-lvroot: 130,9 GiB, 140504989696 bytes, 274423808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


In particular, /dev/sda6 is for the system and /dev/sda7 is for the swap.



The fstab file:



sivlab@sivlab:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/vgroot-lvroot / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda4 during installation
UUID=81ea5ac9-432d-49fe-a5d8-57cf7699dd46 /boot ext4 defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=DE9B-E87B /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda7 during installation
UUID=99bcf18a-4af0-40c3-9fef-9686debf5d48 none swap sw 0 0


The cryttab file:



sivlab@sivlab:~$ cat /etc/crypttab 
# <target name> <source device> <key file> <options>
cryptroot UUID=eb2b2b1d-fd35-4693-9abb-9a899301916e none luks,discard


swapon command:



sivlab@sivlab:~$ swapon
NAME TYPE SIZE USED PRIO
/dev/sda7 partition 14,7G 0B -2


Is there a way, to make hibernation available on an encrypted system?










share|improve this question














I have installed Ubuntu 18.04 with this method.
In the partitionating step I have created space for the swap.



The problem is that the system fails to hibernate. I suppose for problems related to the encryption.



Here it is my situation:



Device         Start       End   Sectors   Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 191895551 191328256 91,2G Microsoft basic data
/dev/sda4 191895552 193943551 2048000 1000M Linux filesystem
/dev/sda5 499095552 500117503 1021952 499M Windows recovery environment
/dev/sda6 193943552 468375551 274432000 130,9G Linux filesystem
/dev/sda7 468375552 499095551 30720000 14,7G Linux swap

Partition table entries are not in disk order.


Disk /dev/mapper/cryptroot: 130,9 GiB, 140507086848 bytes, 274427904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/vgroot-lvroot: 130,9 GiB, 140504989696 bytes, 274423808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


In particular, /dev/sda6 is for the system and /dev/sda7 is for the swap.



The fstab file:



sivlab@sivlab:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/vgroot-lvroot / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda4 during installation
UUID=81ea5ac9-432d-49fe-a5d8-57cf7699dd46 /boot ext4 defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=DE9B-E87B /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda7 during installation
UUID=99bcf18a-4af0-40c3-9fef-9686debf5d48 none swap sw 0 0


The cryttab file:



sivlab@sivlab:~$ cat /etc/crypttab 
# <target name> <source device> <key file> <options>
cryptroot UUID=eb2b2b1d-fd35-4693-9abb-9a899301916e none luks,discard


swapon command:



sivlab@sivlab:~$ swapon
NAME TYPE SIZE USED PRIO
/dev/sda7 partition 14,7G 0B -2


Is there a way, to make hibernation available on an encrypted system?







partitioning encryption swap hibernate






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 9 hours ago









sivlabsivlab

162




162













  • 18.04 should work with a swap file rather than swap partition. Encryption should not be a problem, however what works for me as far as encrypted swap partition goes: help.ubuntu.com/community/ManualFullSystemEncryption/…

    – C.S.Cameron
    4 mins ago



















  • 18.04 should work with a swap file rather than swap partition. Encryption should not be a problem, however what works for me as far as encrypted swap partition goes: help.ubuntu.com/community/ManualFullSystemEncryption/…

    – C.S.Cameron
    4 mins ago

















18.04 should work with a swap file rather than swap partition. Encryption should not be a problem, however what works for me as far as encrypted swap partition goes: help.ubuntu.com/community/ManualFullSystemEncryption/…

– C.S.Cameron
4 mins ago





18.04 should work with a swap file rather than swap partition. Encryption should not be a problem, however what works for me as far as encrypted swap partition goes: help.ubuntu.com/community/ManualFullSystemEncryption/…

– C.S.Cameron
4 mins ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1122785%2fswap-partition-with-encrypted-system-ubuntu-18-04%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 Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1122785%2fswap-partition-with-encrypted-system-ubuntu-18-04%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

GameSpot

日野市

Tu-95轟炸機