You are not logged in.

#1 2010-01-25 22:11:01

PiklesOnFire
Member
From: USA
Registered: 2009-04-10
Posts: 21
Website

[SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Hello all, I was wondering if anyone has been able to get an encrypted lvm to resume from suspend?
Every time I try, it looks like it came back, but then I have no access to the hard drive.
ls says input/output error.
xfce4-panel keeps popping up "resource missing" messages with little boxes instead of text for the title.

Any help with this would be amazing big_smile

Last edited by PiklesOnFire (2010-01-28 08:22:21)


System Error: Signature not found.
(ohnoze!!!)

Offline

#2 2010-01-26 00:46:59

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Yeah, of course this is working without a hitch for lots of people. Sorry I have no insight into why you're having problems. Questions that may help people help you: Are you in a position to swear that the same installation (kernel, drivers, settings, version of pm-utils, etc) works fine on your hardware when the (same) drives aren't encrypted lvm? Are you using dm-crypt/LUKS or another sort of encryption? On top of lvm, or lvm on top of your encryption? Which parts of your filesystem are on the encrypted lvm partitions? Presumably not /boot, are any other parts not? Can you resume from hibernation? Are you really _entirely_ sure your hardware setup resumes from suspend with your system even when encrypted lvm is not part of the equation?

Offline

#3 2010-01-26 02:22:10

PiklesOnFire
Member
From: USA
Registered: 2009-04-10
Posts: 21
Website

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Yep, everything works fine when not encrypted. I even installed a second IDENTICAL copy, minus encryption, and used every method i could find, they ALL worked, none are working w/ the crypted lvm.
Yes, it is a dm-crypt/LUKS, and it's the entire LVM is on an encrypted block (I always get mixed up when saying this on top of that, so hopefully this is clear).
Every bit of my system is crypted LVM except /boot. It resides on a usb thumb drive.
I haven't even tried Hibernation (doh!) because I'm really more concerned about suspend atm.
And yes, i'm 100% entirely sure it comes from suspend when not encrypted. Give me a couple hours, I'm going to take my dar image and put it back on usb, and test it again, because I want to 100% sure ;p


System Error: Signature not found.
(ohnoze!!!)

Offline

#4 2010-01-26 02:45:59

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Hmm, that's my setup too (dm-crypt installed first, LVM on top of it), except mine's even more complex. What kind of hardware are you using: internal laptop hard drive? not a solid-state drive. What filesystem are you using on the drive (though I expect this isn't part of the problem). What method are you using to suspend: just bare /usr/sbin/pm-suspend from pm-utils? Anything other than pm-utils running which might be controlling your laptop drive, like laptop-mode-tools?

Offline

#5 2010-01-26 02:52:35

PiklesOnFire
Member
From: USA
Registered: 2009-04-10
Posts: 21
Website

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Yep! internal drive, not ssd. it's all xfs except swap, obviously, and boot, which is ext3.
i've tried every suspend option i could find, including tuxonice, which simply REFUSES to suspend.

btw - the hardware is a dell E1705, radeon X1400, i can post lspci if needed, though.


System Error: Signature not found.
(ohnoze!!!)

Offline

#6 2010-01-26 04:04:17

PiklesOnFire
Member
From: USA
Registered: 2009-04-10
Posts: 21
Website

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

BTW - Using pm-utils I can recover from a hibernation. It's just suspending that doesn't work for some reason. fml tongue


System Error: Signature not found.
(ohnoze!!!)

Offline

#7 2010-01-26 09:19:32

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

pm-utils writes to a log file, on my machine it's /var/log/pm-suspend.log, though I don't remember if that's the default or if I renamed it. Does that tell us anything useful? Any useful error messages in the block where it's trying to resume?

Offline

#8 2010-01-26 20:07:08

PiklesOnFire
Member
From: USA
Registered: 2009-04-10
Posts: 21
Website

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

I can't SEE any errors when it's trying to resume... My system just locks up.
I'm not 100% sure, but I think it's not remounting my drive (at least, that's how it appears)

here is a copy of my /var/log/pm-suspend.log

Initial commandline parameters: 
Mon Jan 25 23:04:51 EST 2010: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/00auto-quirk suspend suspend: Adding quirks from HAL: --quirk-none 
success.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend: Linux 3clips3 2.6.32-ARCH #1 SMP PREEMPT Tue Jan 19 06:08:04 UTC 2010 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz GenuineIntel GNU/Linux
Module                  Size  Used by
rfcomm                 30441  4 
sco                     6956  2 
bridge                 40873  0 
stp                     1140  1 bridge
llc                     2901  2 bridge,stp
bnep                    6964  2 
l2cap                  29101  16 rfcomm,bnep
crc16                   1041  1 l2cap
xt_limit                1288  8 
ipt_LOG                 4383  8 
ipt_MASQUERADE          1170  0 
xt_DSCP                 1579  0 
nf_conntrack_irc        2639  0 
nf_conntrack_ftp        4864  0 
radeon                523714  2 
ttm                    31045  1 radeon
drm_kms_helper         21971  1 radeon
drm                   126588  5 radeon,ttm,drm_kms_helper
i2c_algo_bit            4219  1 radeon
ipv6                  237532  12 
xt_tcpudp               1943  19 
ipt_REJECT              1801  1 
xt_state                 967  6 
iptable_filter          1082  1 
iptable_mangle          1353  0 
iptable_nat             3198  0 
nf_nat                 12383  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4       8951  9 iptable_nat,nf_nat
nf_conntrack           46129  7 ipt_MASQUERADE,nf_conntrack_irc,nf_conntrack_ftp,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4           827  1 nf_conntrack_ipv4
ip_tables               8669  3 iptable_filter,iptable_mangle,iptable_nat
x_tables               10432  9 xt_limit,ipt_LOG,ipt_MASQUERADE,xt_DSCP,xt_tcpudp,ipt_REJECT,xt_state,iptable_nat,ip_tables
ext3                  113026  1 
jbd                    38906  1 ext3
mbcache                 4278  1 ext3
arc4                    1058  2 
ecb                     1545  2 
snd_seq_dummy           1099  0 
iwl3945                68529  0 
b44                    24073  0 
snd_seq_oss            25304  0 
snd_seq_midi_event      4452  1 snd_seq_oss
ssb                    39958  1 b44
iwlcore                82082  1 iwl3945
snd_seq                42628  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4313  3 snd_seq_dummy,snd_seq_oss,snd_seq
sdhci_pci               4910  0 
sdhci                  13921  1 sdhci_pci
pcmcia                 27513  1 ssb
mac80211              149018  2 iwl3945,iwlcore
iTCO_wdt                6745  0 
dell_laptop             1745  0 
intel_agp              23225  0 
mmc_core               45164  2 ssb,sdhci
pcmcia_core            25611  2 ssb,pcmcia
led_class               1933  3 iwl3945,iwlcore,sdhci
mii                     3218  1 b44
crc_itu_t               1041  0 
iTCO_vendor_support     1453  1 iTCO_wdt
cfg80211              106663  3 iwl3945,iwlcore,mac80211
fan                     2598  0 
video                  14871  0 
output                  1404  1 video
psmouse                55619  0 
agpgart                23331  3 ttm,drm,intel_agp
wmi                     4083  0 
btusb                   9768  2 
bluetooth              44621  9 rfcomm,sco,bnep,l2cap,btusb
rfkill                 12320  4 dell_laptop,cfg80211,bluetooth
ac                      2255  0 
i2c_i801                7122  0 
button                  3638  0 
battery                 7328  0 
sg                     21079  0 
i2c_core               15369  4 radeon,drm,i2c_algo_bit,i2c_i801
serio_raw               3620  0 
processor              25790  2 
thermal                 9326  0 
usblp                   9595  0 
evdev                   6970  22 
joydev                  7768  0 
dcdbas                  4408  1 dell_laptop
snd_hda_codec_idt      43564  1 
snd_hda_intel          18697  0 
snd_hda_codec          56728  2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep               5102  1 snd_hda_codec
snd_pcm_oss            33693  0 
snd_pcm                57479  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              16117  2 snd_seq,snd_pcm
snd_page_alloc          5809  2 snd_hda_intel,snd_pcm
snd_mixer_oss          14810  1 snd_pcm_oss
snd                    43847  11 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               5007  1 snd
rtc_cmos                7504  0 
rtc_core               12011  1 rtc_cmos
rtc_lib                 1450  1 rtc_core
xfs                   509690  4 
exportfs                3034  1 xfs
twofish                 5393  2 
twofish_common         12945  1 twofish
xts                     1869  1 
gf128mul                6402  1 xts
usbhid                 33419  0 
hid                    61053  1 usbhid
dm_crypt               10450  1 
dm_mod                 54323  12 dm_crypt
ums_onetouch            2886  0 
sr_mod                 13161  0 
usb_storage            33430  4 ums_onetouch
cdrom                  31625  1 sr_mod
sd_mod                 24101  7 
pata_acpi               2264  0 
ata_generic             2235  0 
ata_piix               17757  1 
uhci_hcd               19092  0 
libata                135162  3 pata_acpi,ata_generic,ata_piix
scsi_mod               78933  5 sg,sr_mod,usb_storage,sd_mod,libata
ehci_hcd               31434  0 
usbcore               118921  8 btusb,usblp,usbhid,ums_onetouch,usb_storage,uhci_hcd,ehci_hcd
             total       used       free     shared    buffers     cached
Mem:       2073256     390808    1682448          0         12      67308
-/+ buffers/cache:     323488    1749768
Swap:      5242872     134360    5108512
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
/usr/lib/pm-utils/sleep.d/01grub suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/11netcfg suspend suspend: success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
/usr/lib/pm-utils/sleep.d/90clock suspend suspend: success.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/99laptop-mode suspend suspend: success.
/usr/lib/pm-utils/sleep.d/99video suspend suspend: kernel.acpi_video_flags = 0
success.
Mon Jan 25 23:04:53 EST 2010: performing suspend

It doesn't even show it trying to resume =/


System Error: Signature not found.
(ohnoze!!!)

Offline

#9 2010-01-27 00:55:10

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Looks like you've got laptop-mode installed. I don't. I think most everything it does can be done more directly, it's just an extra layer of complication. Anyway, you can try removing that and seeing if that improves the suspend/resume situation at all.

Also, I don't know what encryption you're using but in my case I have to load the module aes_x86_64. That doesn't show up in your modules list. Probably if you needed it you wouldn't even be able to boot, but I thought I'd mention it in case.

Offline

#10 2010-01-27 20:50:41

PiklesOnFire
Member
From: USA
Registered: 2009-04-10
Posts: 21
Website

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

heh, I tried it before I even installed laptop-mode-tools ;p
but, after removing it, still no success.

I'm using twofish encryption, and it's module is in that list, so i'm still at a loss.

For the time being, until I can figure out what's wrong, I have just aliased suspend to pm-hibernate, as again, hibernation works without a hitch.


System Error: Signature not found.
(ohnoze!!!)

Offline

#11 2010-01-27 22:07:25

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Sorry we haven't made progress. Isn't it ridiculous that in 2010 suspend/resume is still so much a black art?

Offline

#12 2010-01-28 08:25:44

PiklesOnFire
Member
From: USA
Registered: 2009-04-10
Posts: 21
Website

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Profjim wrote:

Sorry we haven't made progress. Isn't it ridiculous that in 2010 suspend/resume is still so much a black art?

I JUST solved the issue.
After days of searching, I found a post where someone had mentioned they had a password set for their hard disk.
This is a feature available w/ some BIOS, and that, as well as the fact that I had an "admin" password set in the BIOS was causing the issue.

In short, the disk gets unlocked at boot, but when resuming from suspend it doesn't prompt for it again, therefore leaving the disk locked.
What I was seeing was simply an image pulled from RAM, explaining why all other hardware was functional except the Hard Disk.

SUSPEND AND HIBERNATE NOW BOTH FULLY WORK!!!!!!!  big_smile

Hope this helps someone else out as well!!

EDIT: I have actually wrote a blog, to hopefully prevent others from having this issue as well: http://my.opera.com/PiklesOnFire/blog/t … om-suspend

Last edited by PiklesOnFire (2010-01-28 08:50:05)


System Error: Signature not found.
(ohnoze!!!)

Offline

#13 2010-01-28 09:26:36

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Good that you solved it, and this is good to know as well. I don't use my BIOS password, but I was planning to do so someday. It sounds like it should be broken on resume regardless of whether one's using disk encruption, then, no?

Offline

#14 2010-01-28 10:38:41

PiklesOnFire
Member
From: USA
Registered: 2009-04-10
Posts: 21
Website

Re: [SOLVED] Problem Suspending with Encrypted LVM - hard disk/BIOS psswd

Profjim wrote:

Good that you solved it, and this is good to know as well. I don't use my BIOS password, but I was planning to do so someday. It sounds like it should be broken on resume regardless of whether one's using disk encruption, then, no?

No, because the drive is still decrypted in the ram's mind.
But it's not "unlocked" as per the motherboard's mind.

it's sorta complicated, but it makes sense. lol.


System Error: Signature not found.
(ohnoze!!!)

Offline

Board footer

Powered by FluxBB