Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 11/10/2016, à 11:01

seebz

Hibernation et dossier personnel chiffré

Edit: Il n'est pas possible d'activer le mode hibernation en ayant du chiffrement sans avoir à renseigner une passphrase au démarrage...

seebz a écrit :

On va arrêter là, il semblerait que ce ne soit pas possible d'avoir l'hibernation lorsque la swap est cryptée.

Alors, on peut soit :

1) spécifier une passphrase à renseigner à chaque démarrage (voir Enable Hibernate With Encrypted Swap)
2) désactiver le cryptage de la swap (voir le commentaire de @genma dans ce topic)

Les deux solutions ne me convenant pas, je vais donc me résigner à ne plus utiliser le mode hibernation, ceci afin de ne pas perdre l’intérêt d'avoir une home/swap cryptée.

(lien direct)


---------------------------------------------------

Salut à tous,
j'ai un soucis avec le mode hibernation... la mise en hibernation semble fonctionner mais c'est au niveau du resume/thaw que ca coince hmm

Ceci se produit sur une fresh install (16.04.1) suivie d'une mise à jour.
Je n'ai pas pensé à tester avant de faire la mise à jour.


Ma config :

$ uname -a
Linux vaio 4.4.0-42-generic #62-Ubuntu SMP Fri Oct 7 23:11:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.1 LTS
Release:	16.04
Codename:	xenial

Installé seul sur le disque (pas dual boot), boot configuré en "legacy mode" (pas UEFI).
Dossier personnel crypté mais système non crypté.


Les logs :

$ cat /var/log/pm-suspend.log 

Initial commandline parameters: 
mardi 11 octobre 2016, 13:57:52 (UTC+0200): Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate:
/usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/000record-status hibernate hibernate:
/usr/lib/pm-utils/sleep.d/000record-status hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux vaio 4.4.0-42-generic #62-Ubuntu SMP Fri Oct 7 23:11:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Module                  Size  Used by
rfcomm                 69632  12
bnep                   20480  2
snd_hda_codec_hdmi     53248  1
drbg                   32768  1
ansi_cprng             16384  0
snd_hda_codec_realtek    86016  1
snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
xts                    16384  1
gf128mul               16384  1 xts
dm_crypt               28672  1
snd_hda_intel          40960  3
microread_mei          16384  0
microread              16384  1 microread_mei
mei_phy                16384  1 microread_mei
crc_ccitt              16384  1 microread
hci                    45056  2 mei_phy,microread
nfc                   102400  2 hci,microread
snd_hda_codec         135168  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core           73728  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
intel_rapl             20480  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_rawmidi            32768  1 snd_seq_midi
kvm                   540672  0
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
cryptd                 20480  0
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
joydev                 20480  0
input_leds             16384  0
serio_raw              16384  0
snd_timer              32768  2 snd_pcm,snd_seq
wl                   6365184  0
uvcvideo               90112  0
videobuf2_vmalloc      16384  1 uvcvideo
btusb                  45056  0
videobuf2_memops       16384  1 videobuf2_vmalloc
btrtl                  16384  1 btusb
videobuf2_v4l2         28672  1 uvcvideo
btbcm                  16384  1 btusb
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
btintel                16384  1 btusb
v4l2_common            16384  1 videobuf2_v4l2
bluetooth             520192  37 bnep,btbcm,btrtl,btusb,rfcomm,btintel
videodev              176128  4 uvcvideo,v4l2_common,videobuf2_core,videobuf2_v4l2
rtsx_pci_ms            20480  0
memstick               20480  1 rtsx_pci_ms
lpc_ich                24576  0
cfg80211              565248  1 wl
snd                    81920  17 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
media                  24576  2 uvcvideo,videodev
hid_multitouch         20480  0
soundcore              16384  1 snd
shpchp                 36864  0
mei_me                 36864  0
mei                    98304  4 mei_phy,mei_me,microread_mei
sony_laptop            61440  0
mac_hid                16384  0
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,ppdev,parport_pc
autofs4                40960  2
hid_generic            16384  0
usbhid                 49152  0
hid                   118784  3 hid_multitouch,hid_generic,usbhid
rtsx_pci_sdmmc         24576  0
i915                 1208320  4
i2c_algo_bit           16384  1 i915
drm_kms_helper        155648  1 i915
psmouse               126976  0
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
ahci                   36864  2
sysimgblt              16384  1 drm_kms_helper
r8169                  81920  0
fb_sys_fops            16384  1 drm_kms_helper
libahci                32768  1 ahci
mii                    16384  1 r8169
drm                   364544  6 i915,drm_kms_helper
rtsx_pci               53248  2 rtsx_pci_ms,rtsx_pci_sdmmc
video                  40960  2 i915,sony_laptop
fjes                   28672  0
              total       utilisé      libre     partagé tamp/cache   disponible
Mem:        8054104      466848     6849552       82168      737704     7233180
Partition d'échange:     8266236           0     8266236
/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:
/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.

Running hook /etc/pm/sleep.d/10_grub-common hibernate hibernate:
/etc/pm/sleep.d/10_grub-common hibernate hibernate: success.

Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate hibernate hibernate:
/etc/pm/sleep.d/10_unattended-upgrades-hibernate hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/40inputattach hibernate hibernate:
/usr/lib/pm-utils/sleep.d/40inputattach hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/50unload_alx hibernate hibernate:
/usr/lib/pm-utils/sleep.d/50unload_alx hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate:
Selected interface 'wlp7s0'
OK
/usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:
/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:
/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:
/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/95anacron hibernate hibernate:
/usr/lib/pm-utils/sleep.d/95anacron hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate:
/usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:
/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
Kernel modesetting video driver detected, not using quirks.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:
/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.

Running hook /etc/pm/sleep.d/novatel_3g_suspend hibernate hibernate:
/etc/pm/sleep.d/novatel_3g_suspend hibernate hibernate: success.

mardi 11 octobre 2016, 13:57:53 (UTC+0200): performing hibernate
$ dmesg | grep PM:
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
... plusieurs lignes de ce type ...
[    0.000000] PM: Registered nosave memory: [mem 0xffd00000-0xffffffff]
[    0.102528] PM: Registering ACPI NVS region [mem 0xaaebf000-0xaafbefff] (1048576 bytes)
[    1.068549] PM: Hibernation image not present or could not be loaded.
dmesg a écrit :

[    1.068549] PM: Hibernation image not present or could not be loaded.

^^^ Une piste


Les partitions :

# blkid
/dev/sda1: UUID="7e41060a-334a-48a2-8c1f-4406c1c634b7" TYPE="ext4" PARTUUID="82b4d9d7-01"
/dev/sda5: UUID="c62d6ee6-5d70-4f19-83ed-c87bc6d054e8" TYPE="swap" PARTUUID="82b4d9d7-05"
/dev/mapper/cryptswap1: UUID="fb7a28a7-8326-446b-b6d3-85ae485041b6" TYPE="swap"

mais ....

$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=ef6793d2-8ff7-4408-934b-19bb7028b1e1

^^^ Ah bon ?!?


Config grub :

$ cat /etc/default/grub 
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

(config par défaut, je n'ai rien changé).


J'imagine que le problème est lié au fait que les UUID ne correspondent pas, mais je préfère avoir un avis expert avant de faire n'importe quoi.
A noter aussi que la machine permet l'hibernation, et que ce n'est pas un problème de taille de swap.

Help me please smile

Dernière modification par seebz (Le 14/10/2016, à 14:37)

Hors ligne

#2 Le 11/10/2016, à 11:14

pingouinux

Re : Hibernation et dossier personnel chiffré

Bonjour,
Le numéro d'UUID ne correspond pas, et c'est sans doute à cause du chiffrement du swap.
Si tu relances blkid après un redémarrage, les UUID auront sans doute changé.

Hors ligne

#3 Le 11/10/2016, à 11:21

seebz

Re : Hibernation et dossier personnel chiffré

pingouinux a écrit :

Bonjour,
Le numéro d'UUID ne correspond pas, et c'est sans doute à cause du chiffrement du swap.
Si tu relances blkid après un redémarrage, les UUID auront sans doute changé.

Effectivement, le UUID de la partition swap change, mais pas le UUID indiqué dans le fichier /etc/initramfs-tools/conf.d/resume.

Comment faire pour que ca corresponde ?
À noter que le cryptage du dossier personnel s'est fait lors de l'installation et non manuellement par la suite.

Hors ligne

#4 Le 11/10/2016, à 11:34

pingouinux

Re : Hibernation et dossier personnel chiffré

Je ne sais pas s'il existe une autre méthode, mais quand j'ai eu le même problème, j'ai arrêté de chiffrer mon swap.

Hors ligne

#5 Le 11/10/2016, à 11:40

Bougron

Re : Hibernation et dossier personnel chiffré

Hors ligne

#6 Le 11/10/2016, à 11:49

seebz

Re : Hibernation et dossier personnel chiffré

Merci Bougron, je regarde/essaye ça à tête reposée wink

Dernière modification par seebz (Le 11/10/2016, à 11:52)

Hors ligne

#7 Le 11/10/2016, à 12:55

xinu

Re : Hibernation et dossier personnel chiffré

@seebz

Donne aussi le résultat des commandes suivantes :

cat /etc/fstab 
free -m

Asus PM8H61-MX USB3   Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz DDR3 8Go
Ubuntu 16.04 LTS - ESM 64 bits. Bureau Unity.     Ubuntu 20.04 LTS 64 bits . Gnome 3.36.8

Hors ligne

#8 Le 11/10/2016, à 13:07

pingouinux

Re : Hibernation et dossier personnel chiffré

Et peut-être aussi celui de

cat /etc/crypttab

Hors ligne

#9 Le 11/10/2016, à 14:19

seebz

Re : Hibernation et dossier personnel chiffré

J'ai ré-installé sans LVM (histroire de s'y retrouver plus facilement avec les partitions),
même installation qu'avant (home et swap crypté),
mais le problème persiste.

Je n'ai pas pensé à tester avant de faire les mises à jour (dsl).

À votre demande :

$ 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>
# / was on /dev/sda1 during installation
UUID=7e41060a-334a-48a2-8c1f-4406c1c634b7 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
#UUID=c62d6ee6-5d70-4f19-83ed-c87bc6d054e8 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0
$ free -m
              total       utilisé      libre     partagé tamp/cache   disponible
Mem:           7865         521        6679         106         664        6970
Partition d'échange:        8072           0        8072
$ cat /etc/crypttab
cryptswap1 UUID=c62d6ee6-5d70-4f19-83ed-c87bc6d054e8 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64

La première tentative de resume/thaw suivant la commande sudo pm-hibernate (cf Tester si l'hibernation fonctionne) génère une erreur...

# ls /var/crash/
susres.2016-10-11_13:58:23.200499.crash
# cat /var/crash/susres.*
ProblemType: KernelOops
Annotation: This occurred during a previous hibernation, and prevented the system from resuming properly.
Architecture: amd64
Date: Tue Oct 11 13:58:22 2016
DistroRelease: Ubuntu 16.04
ExecutablePath: /usr/share/apport/apportcheckresume
ExecutableTimestamp: 1463563065
Failure: hibernate/resume
InterpreterPath: /usr/bin/python3.5
Package: linux-image-4.4.0-42-generic 4.4.0-42.62
ProcCmdline: /usr/bin/python3 /usr/share/apport/apportcheckresume
ProcCwd: /
ProcEnviron:
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
ProcMaps:
 00400000-007a9000 r-xp 00000000 08:01 26087868                           /usr/bin/python3.5
 009a9000-009ab000 r--p 003a9000 08:01 26087868                           /usr/bin/python3.5
 009ab000-00a42000 rw-p 003ab000 08:01 26087868                           /usr/bin/python3.5
 00a42000-00a73000 rw-p 00000000 00:00 0 
 01ce0000-02027000 rw-p 00000000 00:00 0                                  [heap]
 7fbfc5076000-7fbfc5177000 rw-p 00000000 00:00 0 
 7fbfc5177000-7fbfc518e000 r-xp 00000000 08:01 26092762                   /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
 7fbfc518e000-7fbfc538d000 ---p 00017000 08:01 26092762                   /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
 7fbfc538d000-7fbfc538e000 r--p 00016000 08:01 26092762                   /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
 7fbfc538e000-7fbfc538f000 rw-p 00017000 08:01 26092762                   /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
 7fbfc538f000-7fbfc53a6000 r-xp 00000000 08:01 4067830                    /lib/x86_64-linux-gnu/libresolv-2.23.so
 7fbfc53a6000-7fbfc55a6000 ---p 00017000 08:01 4067830                    /lib/x86_64-linux-gnu/libresolv-2.23.so
 7fbfc55a6000-7fbfc55a7000 r--p 00017000 08:01 4067830                    /lib/x86_64-linux-gnu/libresolv-2.23.so
 7fbfc55a7000-7fbfc55a8000 rw-p 00018000 08:01 4067830                    /lib/x86_64-linux-gnu/libresolv-2.23.so
 7fbfc55a8000-7fbfc55aa000 rw-p 00000000 00:00 0 
 7fbfc55aa000-7fbfc55c0000 r-xp 00000000 08:01 4067716                    /lib/x86_64-linux-gnu/libgcc_s.so.1
 7fbfc55c0000-7fbfc57bf000 ---p 00016000 08:01 4067716                    /lib/x86_64-linux-gnu/libgcc_s.so.1
 7fbfc57bf000-7fbfc57c0000 rw-p 00015000 08:01 4067716                    /lib/x86_64-linux-gnu/libgcc_s.so.1
 7fbfc57c0000-7fbfc5932000 r-xp 00000000 08:01 26083509                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
 7fbfc5932000-7fbfc5b32000 ---p 00172000 08:01 26083509                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
 7fbfc5b32000-7fbfc5b3c000 r--p 00172000 08:01 26083509                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
 7fbfc5b3c000-7fbfc5b3e000 rw-p 0017c000 08:01 26083509                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
 7fbfc5b3e000-7fbfc5b42000 rw-p 00000000 00:00 0 
 7fbfc5b42000-7fbfc5cab000 r-xp 00000000 08:01 26092124                   /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0.0
 7fbfc5cab000-7fbfc5eaa000 ---p 00169000 08:01 26092124                   /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0.0
 7fbfc5eaa000-7fbfc5eb0000 r--p 00168000 08:01 26092124                   /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0.0
 7fbfc5eb0000-7fbfc5eb1000 rw-p 0016e000 08:01 26092124                   /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0.0
 7fbfc5eb1000-7fbfc5ef5000 r-xp 00000000 08:01 26215596                   /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so
 7fbfc5ef5000-7fbfc60f5000 ---p 00044000 08:01 26215596                   /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so
 7fbfc60f5000-7fbfc60f6000 r--p 00044000 08:01 26215596                   /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so
 7fbfc60f6000-7fbfc60fe000 rw-p 00045000 08:01 26215596                   /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so
 7fbfc60fe000-7fbfc613e000 rw-p 00000000 00:00 0 
 7fbfc613e000-7fbfc614f000 r-xp 00000000 08:01 26217689                   /usr/lib/python3.5/lib-dynload/_json.cpython-35m-x86_64-linux-gnu.so
 7fbfc614f000-7fbfc634e000 ---p 00011000 08:01 26217689                   /usr/lib/python3.5/lib-dynload/_json.cpython-35m-x86_64-linux-gnu.so
 7fbfc634e000-7fbfc634f000 r--p 00010000 08:01 26217689                   /usr/lib/python3.5/lib-dynload/_json.cpython-35m-x86_64-linux-gnu.so
 7fbfc634f000-7fbfc6350000 rw-p 00011000 08:01 26217689                   /usr/lib/python3.5/lib-dynload/_json.cpython-35m-x86_64-linux-gnu.so
 7fbfc6350000-7fbfc6390000 rw-p 00000000 00:00 0 
 7fbfc6390000-7fbfc63ee000 r-xp 00000000 08:01 4067602                    /lib/x86_64-linux-gnu/libssl.so.1.0.0
 7fbfc63ee000-7fbfc65ee000 ---p 0005e000 08:01 4067602                    /lib/x86_64-linux-gnu/libssl.so.1.0.0
 7fbfc65ee000-7fbfc65f2000 r--p 0005e000 08:01 4067602                    /lib/x86_64-linux-gnu/libssl.so.1.0.0
 7fbfc65f2000-7fbfc65f9000 rw-p 00062000 08:01 4067602                    /lib/x86_64-linux-gnu/libssl.so.1.0.0
 7fbfc65f9000-7fbfc6610000 r-xp 00000000 08:01 26217143                   /usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-x86_64-linux-gnu.so
 7fbfc6610000-7fbfc6810000 ---p 00017000 08:01 26217143                   /usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-x86_64-linux-gnu.so
 7fbfc6810000-7fbfc6811000 r--p 00017000 08:01 26217143                   /usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-x86_64-linux-gnu.so
 7fbfc6811000-7fbfc6816000 rw-p 00018000 08:01 26217143                   /usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-x86_64-linux-gnu.so
 7fbfc6816000-7fbfc69d6000 rw-p 00000000 00:00 0 
 7fbfc69d6000-7fbfc6bf0000 r-xp 00000000 08:01 4067601                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
 7fbfc6bf0000-7fbfc6def000 ---p 0021a000 08:01 4067601                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
 7fbfc6def000-7fbfc6e0b000 r--p 00219000 08:01 4067601                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
 7fbfc6e0b000-7fbfc6e17000 rw-p 00235000 08:01 4067601                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
 7fbfc6e17000-7fbfc6e1a000 rw-p 00000000 00:00 0 
 7fbfc6e1a000-7fbfc6e1f000 r-xp 00000000 08:01 26217146                   /usr/lib/python3.5/lib-dynload/_hashlib.cpython-35m-x86_64-linux-gnu.so
 7fbfc6e1f000-7fbfc701f000 ---p 00005000 08:01 26217146                   /usr/lib/python3.5/lib-dynload/_hashlib.cpython-35m-x86_64-linux-gnu.so
 7fbfc701f000-7fbfc7020000 r--p 00005000 08:01 26217146                   /usr/lib/python3.5/lib-dynload/_hashlib.cpython-35m-x86_64-linux-gnu.so
 7fbfc7020000-7fbfc7021000 rw-p 00006000 08:01 26217146                   /usr/lib/python3.5/lib-dynload/_hashlib.cpython-35m-x86_64-linux-gnu.so
 7fbfc7021000-7fbfc7061000 rw-p 00000000 00:00 0 
 7fbfc7061000-7fbfc7082000 r-xp 00000000 08:01 4067745                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
 7fbfc7082000-7fbfc7281000 ---p 00021000 08:01 4067745                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
 7fbfc7281000-7fbfc7282000 r--p 00020000 08:01 4067745                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
 7fbfc7282000-7fbfc7283000 rw-p 00021000 08:01 4067745                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
 7fbfc7283000-7fbfc728a000 r-xp 00000000 08:01 26217703                   /usr/lib/python3.5/lib-dynload/_lzma.cpython-35m-x86_64-linux-gnu.so
 7fbfc728a000-7fbfc7489000 ---p 00007000 08:01 26217703                   /usr/lib/python3.5/lib-dynload/_lzma.cpython-35m-x86_64-linux-gnu.so
 7fbfc7489000-7fbfc748a000 r--p 00006000 08:01 26217703                   /usr/lib/python3.5/lib-dynload/_lzma.cpython-35m-x86_64-linux-gnu.so
 7fbfc748a000-7fbfc748c000 rw-p 00007000 08:01 26217703                   /usr/lib/python3.5/lib-dynload/_lzma.cpython-35m-x86_64-linux-gnu.so
 7fbfc748c000-7fbfc749b000 r-xp 00000000 08:01 4067677                    /lib/x86_64-linux-gnu/libbz2.so.1.0.4
 7fbfc749b000-7fbfc769a000 ---p 0000f000 08:01 4067677                    /lib/x86_64-linux-gnu/libbz2.so.1.0.4
 7fbfc769a000-7fbfc769b000 r--p 0000e000 08:01 4067677                    /lib/x86_64-linux-gnu/libbz2.so.1.0.4
 7fbfc769b000-7fbfc769c000 rw-p 0000f000 08:01 4067677                    /lib/x86_64-linux-gnu/libbz2.so.1.0.4
 7fbfc769c000-7fbfc76a0000 r-xp 00000000 08:01 26217667                   /usr/lib/python3.5/lib-dynload/_bz2.cpython-35m-x86_64-linux-gnu.so
 7fbfc76a0000-7fbfc789f000 ---p 00004000 08:01 26217667                   /usr/lib/python3.5/lib-dynload/_bz2.cpython-35m-x86_64-linux-gnu.so
 7fbfc789f000-7fbfc78a0000 r--p 00003000 08:01 26217667                   /usr/lib/python3.5/lib-dynload/_bz2.cpython-35m-x86_64-linux-gnu.so
 7fbfc78a0000-7fbfc78a1000 rw-p 00004000 08:01 26217667                   /usr/lib/python3.5/lib-dynload/_bz2.cpython-35m-x86_64-linux-gnu.so
 7fbfc78a1000-7fbfc7921000 rw-p 00000000 00:00 0 
 7fbfc7942000-7fbfc7a82000 rw-p 00000000 00:00 0 
 7fbfc7a82000-7fbfc7a8d000 r-xp 00000000 08:01 4067777                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
 7fbfc7a8d000-7fbfc7c8c000 ---p 0000b000 08:01 4067777                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
 7fbfc7c8c000-7fbfc7c8d000 r--p 0000a000 08:01 4067777                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
 7fbfc7c8d000-7fbfc7c8e000 rw-p 0000b000 08:01 4067777                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
 7fbfc7c8e000-7fbfc7c94000 rw-p 00000000 00:00 0 
 7fbfc7c94000-7fbfc7c9f000 r-xp 00000000 08:01 4067787                    /lib/x86_64-linux-gnu/libnss_nis-2.23.so
 7fbfc7c9f000-7fbfc7e9e000 ---p 0000b000 08:01 4067787                    /lib/x86_64-linux-gnu/libnss_nis-2.23.so
 7fbfc7e9e000-7fbfc7e9f000 r--p 0000a000 08:01 4067787                    /lib/x86_64-linux-gnu/libnss_nis-2.23.so
 7fbfc7e9f000-7fbfc7ea0000 rw-p 0000b000 08:01 4067787                    /lib/x86_64-linux-gnu/libnss_nis-2.23.so
 7fbfc7ea0000-7fbfc7eb6000 r-xp 00000000 08:01 4067771                    /lib/x86_64-linux-gnu/libnsl-2.23.so
 7fbfc7eb6000-7fbfc80b5000 ---p 00016000 08:01 4067771                    /lib/x86_64-linux-gnu/libnsl-2.23.so
 7fbfc80b5000-7fbfc80b6000 r--p 00015000 08:01 4067771                    /lib/x86_64-linux-gnu/libnsl-2.23.so
 7fbfc80b6000-7fbfc80b7000 rw-p 00016000 08:01 4067771                    /lib/x86_64-linux-gnu/libnsl-2.23.so
 7fbfc80b7000-7fbfc80b9000 rw-p 00000000 00:00 0 
 7fbfc80b9000-7fbfc80c1000 r-xp 00000000 08:01 4067773                    /lib/x86_64-linux-gnu/libnss_compat-2.23.so
 7fbfc80c1000-7fbfc82c0000 ---p 00008000 08:01 4067773                    /lib/x86_64-linux-gnu/libnss_compat-2.23.so
 7fbfc82c0000-7fbfc82c1000 r--p 00007000 08:01 4067773                    /lib/x86_64-linux-gnu/libnss_compat-2.23.so
 7fbfc82c1000-7fbfc82c2000 rw-p 00008000 08:01 4067773                    /lib/x86_64-linux-gnu/libnss_compat-2.23.so
 7fbfc82c2000-7fbfc8cea000 r--p 00000000 08:01 26091299                   /usr/lib/locale/locale-archive
 7fbfc8cea000-7fbfc8df2000 r-xp 00000000 08:01 4067748                    /lib/x86_64-linux-gnu/libm-2.23.so
 7fbfc8df2000-7fbfc8ff1000 ---p 00108000 08:01 4067748                    /lib/x86_64-linux-gnu/libm-2.23.so
 7fbfc8ff1000-7fbfc8ff2000 r--p 00107000 08:01 4067748                    /lib/x86_64-linux-gnu/libm-2.23.so
 7fbfc8ff2000-7fbfc8ff3000 rw-p 00108000 08:01 4067748                    /lib/x86_64-linux-gnu/libm-2.23.so
 7fbfc8ff3000-7fbfc900c000 r-xp 00000000 08:01 4067869                    /lib/x86_64-linux-gnu/libz.so.1.2.8
 7fbfc900c000-7fbfc920b000 ---p 00019000 08:01 4067869                    /lib/x86_64-linux-gnu/libz.so.1.2.8
 7fbfc920b000-7fbfc920c000 r--p 00018000 08:01 4067869                    /lib/x86_64-linux-gnu/libz.so.1.2.8
 7fbfc920c000-7fbfc920d000 rw-p 00019000 08:01 4067869                    /lib/x86_64-linux-gnu/libz.so.1.2.8
 7fbfc920d000-7fbfc9233000 r-xp 00000000 08:01 4067709                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
 7fbfc9233000-7fbfc9433000 ---p 00026000 08:01 4067709                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
 7fbfc9433000-7fbfc9435000 r--p 00026000 08:01 4067709                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
 7fbfc9435000-7fbfc9436000 rw-p 00028000 08:01 4067709                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
 7fbfc9436000-7fbfc9438000 r-xp 00000000 08:01 4067859                    /lib/x86_64-linux-gnu/libutil-2.23.so
 7fbfc9438000-7fbfc9637000 ---p 00002000 08:01 4067859                    /lib/x86_64-linux-gnu/libutil-2.23.so
 7fbfc9637000-7fbfc9638000 r--p 00001000 08:01 4067859                    /lib/x86_64-linux-gnu/libutil-2.23.so
 7fbfc9638000-7fbfc9639000 rw-p 00002000 08:01 4067859                    /lib/x86_64-linux-gnu/libutil-2.23.so
 7fbfc9639000-7fbfc963c000 r-xp 00000000 08:01 4067702                    /lib/x86_64-linux-gnu/libdl-2.23.so
 7fbfc963c000-7fbfc983b000 ---p 00003000 08:01 4067702                    /lib/x86_64-linux-gnu/libdl-2.23.so
 7fbfc983b000-7fbfc983c000 r--p 00002000 08:01 4067702                    /lib/x86_64-linux-gnu/libdl-2.23.so
 7fbfc983c000-7fbfc983d000 rw-p 00003000 08:01 4067702                    /lib/x86_64-linux-gnu/libdl-2.23.so
 7fbfc983d000-7fbfc99fd000 r-xp 00000000 08:01 4067678                    /lib/x86_64-linux-gnu/libc-2.23.so
 7fbfc99fd000-7fbfc9bfc000 ---p 001c0000 08:01 4067678                    /lib/x86_64-linux-gnu/libc-2.23.so
 7fbfc9bfc000-7fbfc9c00000 r--p 001bf000 08:01 4067678                    /lib/x86_64-linux-gnu/libc-2.23.so
 7fbfc9c00000-7fbfc9c02000 rw-p 001c3000 08:01 4067678                    /lib/x86_64-linux-gnu/libc-2.23.so
 7fbfc9c02000-7fbfc9c06000 rw-p 00000000 00:00 0 
 7fbfc9c06000-7fbfc9c1e000 r-xp 00000000 08:01 4067824                    /lib/x86_64-linux-gnu/libpthread-2.23.so
 7fbfc9c1e000-7fbfc9e1d000 ---p 00018000 08:01 4067824                    /lib/x86_64-linux-gnu/libpthread-2.23.so
 7fbfc9e1d000-7fbfc9e1e000 r--p 00017000 08:01 4067824                    /lib/x86_64-linux-gnu/libpthread-2.23.so
 7fbfc9e1e000-7fbfc9e1f000 rw-p 00018000 08:01 4067824                    /lib/x86_64-linux-gnu/libpthread-2.23.so
 7fbfc9e1f000-7fbfc9e23000 rw-p 00000000 00:00 0 
 7fbfc9e23000-7fbfc9e49000 r-xp 00000000 08:01 4067650                    /lib/x86_64-linux-gnu/ld-2.23.so
 7fbfc9e7d000-7fbfc9ebd000 rw-p 00000000 00:00 0 
 7fbfc9eee000-7fbfca033000 rw-p 00000000 00:00 0 
 7fbfca03f000-7fbfca046000 r--s 00000000 08:01 26218246                   /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
 7fbfca046000-7fbfca048000 rw-p 00000000 00:00 0 
 7fbfca048000-7fbfca049000 r--p 00025000 08:01 4067650                    /lib/x86_64-linux-gnu/ld-2.23.so
 7fbfca049000-7fbfca04a000 rw-p 00026000 08:01 4067650                    /lib/x86_64-linux-gnu/ld-2.23.so
 7fbfca04a000-7fbfca04b000 rw-p 00000000 00:00 0 
 7ffd9c686000-7ffd9c6a7000 rw-p 00000000 00:00 0                          [stack]
 7ffd9c7e6000-7ffd9c7e8000 r--p 00000000 00:00 0                          [vvar]
 7ffd9c7e8000-7ffd9c7ea000 r-xp 00000000 00:00 0                          [vdso]
 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
ProcStatus:
 Name:	apportcheckresu
 State:	R (running)
 Tgid:	952
 Ngid:	0
 Pid:	952
 PPid:	839
 TracerPid:	0
 Uid:	0	0	0	0
 Gid:	0	0	0	0
 FDSize:	64
 Groups:	
 NStgid:	952
 NSpid:	952
 NSpgid:	839
 NSsid:	839
 VmPeak:	   89228 kB
 VmSize:	   89228 kB
 VmLck:	       0 kB
 VmPin:	       0 kB
 VmHWM:	   22292 kB
 VmRSS:	   22292 kB
 VmData:	   10616 kB
 VmStk:	     136 kB
 VmExe:	    3748 kB
 VmLib:	    9988 kB
 VmPTE:	     184 kB
 VmPMD:	      12 kB
 VmSwap:	       0 kB
 HugetlbPages:	       0 kB
 Threads:	1
 SigQ:	1/31302
 SigPnd:	0000000000000000
 ShdPnd:	0000000000000000
 SigBlk:	0000000000000000
 SigIgn:	0000000001001000
 SigCgt:	0000000180000002
 CapInh:	0000000000000000
 CapPrm:	0000003fffffffff
 CapEff:	0000003fffffffff
 CapBnd:	0000003fffffffff
 CapAmb:	0000000000000000
 Seccomp:	0
 Cpus_allowed:	ff
 Cpus_allowed_list:	0-7
 Mems_allowed:	00000000,00000001
 Mems_allowed_list:	0
 voluntary_ctxt_switches:	75
 nonvoluntary_ctxt_switches:	51
SleepLog:
 Initial commandline parameters: 
 mardi 11 octobre 2016, 13:57:52 (UTC+0200): Running hooks for hibernate.
 Running hook /usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/000record-status hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/000record-status hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
 Linux vaio 4.4.0-42-generic #62-Ubuntu SMP Fri Oct 7 23:11:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
 Module                  Size  Used by
 rfcomm                 69632  12
 bnep                   20480  2
 snd_hda_codec_hdmi     53248  1
 drbg                   32768  1
 ansi_cprng             16384  0
 snd_hda_codec_realtek    86016  1
 snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
 xts                    16384  1
 gf128mul               16384  1 xts
 dm_crypt               28672  1
 snd_hda_intel          40960  3
 microread_mei          16384  0
 microread              16384  1 microread_mei
 mei_phy                16384  1 microread_mei
 crc_ccitt              16384  1 microread
 hci                    45056  2 mei_phy,microread
 nfc                   102400  2 hci,microread
 snd_hda_codec         135168  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
 snd_hda_core           73728  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
 snd_hwdep              16384  1 snd_hda_codec
 snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
 intel_rapl             20480  0
 x86_pkg_temp_thermal    16384  0
 intel_powerclamp       16384  0
 coretemp               16384  0
 snd_seq_midi           16384  0
 snd_seq_midi_event     16384  1 snd_seq_midi
 snd_rawmidi            32768  1 snd_seq_midi
 kvm                   540672  0
 snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
 irqbypass              16384  1 kvm
 crct10dif_pclmul       16384  0
 crc32_pclmul           16384  0
 cryptd                 20480  0
 snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
 joydev                 20480  0
 input_leds             16384  0
 serio_raw              16384  0
 snd_timer              32768  2 snd_pcm,snd_seq
 wl                   6365184  0
 uvcvideo               90112  0
 videobuf2_vmalloc      16384  1 uvcvideo
 btusb                  45056  0
 videobuf2_memops       16384  1 videobuf2_vmalloc
 btrtl                  16384  1 btusb
 videobuf2_v4l2         28672  1 uvcvideo
 btbcm                  16384  1 btusb
 videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
 btintel                16384  1 btusb
 v4l2_common            16384  1 videobuf2_v4l2
 bluetooth             520192  37 bnep,btbcm,btrtl,btusb,rfcomm,btintel
 videodev              176128  4 uvcvideo,v4l2_common,videobuf2_core,videobuf2_v4l2
 rtsx_pci_ms            20480  0
 memstick               20480  1 rtsx_pci_ms
 lpc_ich                24576  0
 cfg80211              565248  1 wl
 snd                    81920  17 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
 media                  24576  2 uvcvideo,videodev
 hid_multitouch         20480  0
 soundcore              16384  1 snd
 shpchp                 36864  0
 mei_me                 36864  0
 mei                    98304  4 mei_phy,mei_me,microread_mei
 sony_laptop            61440  0
 mac_hid                16384  0
 parport_pc             32768  0
 ppdev                  20480  0
 lp                     20480  0
 parport                49152  3 lp,ppdev,parport_pc
 autofs4                40960  2
 hid_generic            16384  0
 usbhid                 49152  0
 hid                   118784  3 hid_multitouch,hid_generic,usbhid
 rtsx_pci_sdmmc         24576  0
 i915                 1208320  4
 i2c_algo_bit           16384  1 i915
 drm_kms_helper        155648  1 i915
 psmouse               126976  0
 syscopyarea            16384  1 drm_kms_helper
 sysfillrect            16384  1 drm_kms_helper
 ahci                   36864  2
 sysimgblt              16384  1 drm_kms_helper
 r8169                  81920  0
 fb_sys_fops            16384  1 drm_kms_helper
 libahci                32768  1 ahci
 mii                    16384  1 r8169
 drm                   364544  6 i915,drm_kms_helper
 rtsx_pci               53248  2 rtsx_pci_ms,rtsx_pci_sdmmc
 video                  40960  2 i915,sony_laptop
 fjes                   28672  0
               total       utilisé      libre     partagé tamp/cache   disponible
 Mem:        8054104      466848     6849552       82168      737704     7233180
 Partition d'échange:     8266236           0     8266236
 /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
 
 Running hook /etc/pm/sleep.d/10_grub-common hibernate hibernate:
 /etc/pm/sleep.d/10_grub-common hibernate hibernate: success.
 
 Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate hibernate hibernate:
 /etc/pm/sleep.d/10_unattended-upgrades-hibernate hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/40inputattach hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/40inputattach hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/50unload_alx hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/50unload_alx hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate:
 Selected interface 'wlp7s0'
 OK
 /usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: not applicable.
 
 Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: not applicable.
 
 Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/95anacron hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/95anacron hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate: not applicable.
 
 Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/95led hibernate hibernate: not applicable.
 
 Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
 Kernel modesetting video driver detected, not using quirks.
 /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.
 
 Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:
 /usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
 
 Running hook /etc/pm/sleep.d/novatel_3g_suspend hibernate hibernate:
 /etc/pm/sleep.d/novatel_3g_suspend hibernate hibernate: success.
 
 mardi 11 octobre 2016, 13:57:53 (UTC+0200): performing hibernate
Tags: resume hibernate
Uname: Linux 4.4.0-42-generic x86_64
UserGroups: 

edit: Complément d'info (je sais pas si ça aide)

$ dmesg | grep -i swap
[    1.049303] zswap: loaded using pool lzo/zbud
[    9.299402] Adding 8266236k swap on /dev/mapper/cryptswap1.  Priority:-1 extents:1 across:8266236k SSFS

Dernière modification par seebz (Le 11/10/2016, à 14:27)

Hors ligne

#10 Le 12/10/2016, à 10:06

seebz

Re : Hibernation et dossier personnel chiffré

Je me permet de relancer le sujet....

@pingouinux, @Bougron, @xinu, vous avez une idée ?

Hors ligne

#11 Le 12/10/2016, à 11:57

xinu

Re : Hibernation et dossier personnel chiffré

Que donne :

swapon -s

J'ai aussi trouvé ceci Swap crypté  Original

Il faut que l'UUID soit correcte dans le fichier /etc/initramfs-tools/conf.d/resume et ne pas oublier de finir par un :

sudo  update-initramfs -u

Dernière modification par xinu (Le 12/10/2016, à 12:27)


Asus PM8H61-MX USB3   Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz DDR3 8Go
Ubuntu 16.04 LTS - ESM 64 bits. Bureau Unity.     Ubuntu 20.04 LTS 64 bits . Gnome 3.36.8

Hors ligne

#12 Le 12/10/2016, à 12:34

seebz

Re : Hibernation et dossier personnel chiffré

xinu a écrit :

Que donne :

swapon -s
$ swapon -s
Filename				Type		Size	Used	Priority
/dev/dm-0                              	partition	8266236	0	-1
xinu a écrit :

J'ai aussi trouvé ceci Swap crypté  Original

Il faut que l'UUID soit correcte dans le fichier /etc/initramfs-tools/conf.d/resume et ne pas oublier de finir par un :

sudo  update-initramfs -u

Je regarde et teste ça dans l'aprèm, c'est fou qu'un bug de 2014 ne soit toujours pas corrigé o_O

En tout cas, merci beaucoup de m'aider

Hors ligne

#13 Le 14/10/2016, à 12:04

seebz

Re : Hibernation et dossier personnel chiffré

Re-salut,
je reviens vers vous après quelques tentatives, hélas infructueuses.



J'ai "Regénéré le swap" comme indiqué. Problème, la commande "mkswap" affiche mkswap: impossible d'ouvrir /dev/sda5: Périphérique ou ressource occupé, même en ayant démonté swap (swapoff -a) et partition (umount).
J'ai donc effectué les commandes à partir d'une session "live", notamment en suivant les instructions indiquées ici.

J'ai du mal m'y prendre car je me suis retrouvé sans swap ou encore avec ma partion /dev/sda5 sans UUID.
J'ai bien entendu mis à jour le tout avec la commande update-initramfs -u.

J'ai donc, non sans mal, annulé toutes les modifications effectuées (jusqu'à forcer le UUID de /dev/sda5) afin de retrouver le système tel qu'il était avant.

(les infos des messages précédents devraient donc encore être correct)



xinu a écrit :

J'ai aussi trouvé ceci Swap crypté  Original

Les bugs semblent concerner une swap manquante et/ou non fonctionnelle... or ce n'est pas mon cas :

$ free -m
              total       utilisé      libre     partagé tamp/cache   disponible
Mem:           7865         758        6372         126         734        6710
Partition d'échange:        8072           0        8072
$ swapon -s
Filename				Type		Size	Used	Priority
/dev/dm-0                              	partition	8266236	0	-1


Je cherche des nouvelles pistes, si vous en avez de votre coté, n'hésitez par à me le faire savoir.

Hors ligne

#14 Le 14/10/2016, à 12:43

Bougron

Re : Hibernation et dossier personnel chiffré

Bonjour
Si tu peux refaire un point du contenu des fichiers afin d'avoir tout dans le même échange. De mémoire

cat /etc/initramfs-tools/conf.d/resume
cat /etc/fstab
cat /etc/crypttab
sudo blkid 

Hors ligne

#15 Le 14/10/2016, à 13:22

seebz

Re : Hibernation et dossier personnel chiffré

Bougron a écrit :

Bonjour
Si tu peux refaire un point du contenu des fichiers afin d'avoir tout dans le même échange....

J'ai suivi ce guide mais cela implique de renseigner une passphrase à chaque boot, ce qui ne me convient pas.

Je "revert-back" et fais une synthèse des fichiers au plus vite.

Hors ligne

#16 Le 14/10/2016, à 13:57

seebz

Re : Hibernation et dossier personnel chiffré

$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=c62d6ee6-5d70-4f19-83ed-c87bc6d054e8

À noter que j'ai, lors d'un test, changé le UUID pour correspondre avec le UUID de /dev/sda5 sans résultat probant.
Ce fichier ne semble pas changer automatiquement, même avec la commande update-initramfs.




$ 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>
# / was on /dev/sda1 during installation
UUID=7e41060a-334a-48a2-8c1f-4406c1c634b7 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
#UUID=c62d6ee6-5d70-4f19-83ed-c87bc6d054e8 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0
$ cat /etc/crypttab
cryptswap1 UUID=c62d6ee6-5d70-4f19-83ed-c87bc6d054e8 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
$ sudo blkid 
/dev/sda1: UUID="7e41060a-334a-48a2-8c1f-4406c1c634b7" TYPE="ext4" PARTUUID="82b4d9d7-01"
/dev/sda5: UUID="c62d6ee6-5d70-4f19-83ed-c87bc6d054e8" TYPE="swap" PARTUUID="82b4d9d7-05"
/dev/mapper/cryptswap1: UUID="1a0dd0ac-60ec-456a-a26d-77b8e405c6d4" TYPE="swap"

Hors ligne

#17 Le 14/10/2016, à 14:22

Bougron

Re : Hibernation et dossier personnel chiffré

seebz a écrit :

J'ai suivi ce guide mais cela implique de renseigner une passphrase à chaque boot, ce qui ne me convient pas.

Il est très bien fait ce guide. Mais j'ai compris que si tu ne l'applique pas, tu te trouves dans le contexte
Many people have asked how to get hibernation to work with encrypted folders. The problem is that the swap partition is also encrypted, but with a random key, so on restarting there is no way to resume.

Hors ligne

#18 Le 14/10/2016, à 14:27

seebz

Re : Hibernation et dossier personnel chiffré

On va arrêter là, il semblerait que ce ne soit pas possible d'avoir l'hibernation lorsque la swap est cryptée.

Alors, on peut soit :

1) spécifier une passphrase à renseigner à chaque démarrage (voir Enable Hibernate With Encrypted Swap)
2) désactiver le cryptage de la swap (voir le commentaire de @genma dans ce topic)

Les deux solutions ne me convenant pas, je vais donc me résigner à ne plus utiliser le mode hibernation, ceci afin de ne pas perdre l’intérêt d'avoir une home/swap cryptée.

Quoi qu'il en soit, je remercie @Bougron, @pingouinux et @xinu pour l'aide apportée wink

Hors ligne