Return-Path: Received: from mout.gmx.com (mout.gmx.com [74.208.4.201]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sat, 22 Oct 2016 23:50:07 +0200 (CEST) Received: from ulgy_thing ([64.134.244.7]) by mail.gmx.com (mrgmxus001) with ESMTPSA (Nemesis) id 0MSM8r-1cLOeA2VnX-00TTx4 for ; Sat, 22 Oct 2016 23:44:57 +0200 Date: Sat, 22 Oct 2016 09:55:19 -0400 From: David Niklas Message-ID: <20161022095519.00911f8c@ulgy_thing> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [dm-crypt] How to suspend to disk with random encrypted swap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hello, I use a random encrypted swap partition, and I want to suspend my system to disk. I'm having two problems. 1. How does the kernel know where to resume from/at all? 2. How do I get the random passphrase for decrypting the swap (and remember it)? Gentoo linux cryptsetup 1.7.2 ###### /etc/conf.d/dmcrypt ######### swap=swap options=' -c aes -h sha256 -d /dev/urandom ' source='/dev/sda2' #################################### Thanks, David