From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OUMHQ-0007IN-Ok for garchives@archives.gentoo.org; Thu, 01 Jul 2010 16:06:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CF8CE0826; Thu, 1 Jul 2010 16:05:49 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 1DEC9E0826 for ; Thu, 1 Jul 2010 16:05:49 +0000 (UTC) Received: from weird.localnet (p4FF04CFC.dip.t-dialin.net [79.240.76.252]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id 7BB6C4A800C for ; Thu, 1 Jul 2010 18:05:48 +0200 (CEST) From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] activating swap by udev event Date: Thu, 1 Jul 2010 18:05:46 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.33-tuxonice-r2; KDE/4.4.4; x86_64; ; ) References: <20100701162653.592b261c@zaphod.digimed.co.uk> In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201007011805.47295.wonko@wonkology.org> X-Archives-Salt: 9339568b-ccc5-48d5-8eba-db89225daf0f X-Archives-Hash: 39988ebf7539388169e5bd5c0d94d4d7 SpaceCake writes: > So, it solves the first problem, identifiying the device, but how can I > tell to udev to use always /dev/sds (for example) for this device? I think, you can's. But you can add SYMLINK="swap" to make the device appear as /dev/swap, too. > Also I'm thinking how can I instruct udev to turn off swap when the > device is removed, but this is another story :) I doubt this is possible at all. If you unplug it, the memory that has been swapped there is lost. Wonko