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 1OUM1X-0005v9-9i for garchives@archives.gentoo.org; Thu, 01 Jul 2010 15:50:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69E17E0768; Thu, 1 Jul 2010 15:49:33 +0000 (UTC) Received: from mail-pw0-f53.google.com (mail-pw0-f53.google.com [209.85.160.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 2FD31E0768 for ; Thu, 1 Jul 2010 15:49:33 +0000 (UTC) Received: by pwj4 with SMTP id 4so298447pwj.40 for ; Thu, 01 Jul 2010 08:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=MTq26G/PTn0nVjGtxyomr7yZ7IYl1UBb3hO1KSBYP0Q=; b=HLUoMLoylnh/TrxC3jXMYuMqBTSHO0DBEIZwmbS2XMNEGJfeNV4MuWL3Lg4Q470ibO JTvJlf+AdyHiIPKRrrngPnXCUVO7q6OE4aToGmICkWFPNZLjVDx5XMSX1HF/Lq0SPnYw 0HYyL1pWNw57gJVY1xu4tuQhnlVRQfJPZTCpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=CANIxW07OfldmSJZzuWClgsRrLJ4Iddkq58wlhNGjRpQdABJXiKo9cAroIkgqVvpJQ Awuf5zQfI87BvbqlBhgpb3zNXgCXrzDC8RRtYaVmGdr02rRqofWy1Xu74MIgUpbgMtMb U9/AGEv3LgoC3UMYGQLOZ3rPiBmPN2jCUxGwY= Received: by 10.115.99.2 with SMTP id b2mr12441218wam.131.1277999369766; Thu, 01 Jul 2010 08:49:29 -0700 (PDT) Received: from [192.168.0.12] ([209.20.133.224]) by mx.google.com with ESMTPS id n32sm88871272wag.19.2010.07.01.08.49.28 (version=SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 08:49:28 -0700 (PDT) Message-ID: <4C2CB906.8030906@gmail.com> Date: Thu, 01 Jul 2010 08:49:26 -0700 From: Bill Longman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100628 Thunderbird/3.0.5 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] activating swap by udev event References: <20100701151624.11bd166f@zaphod.digimed.co.uk> <20100701162653.592b261c@zaphod.digimed.co.uk> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 845c814f-2c92-43b4-80af-46b5aff36924 X-Archives-Hash: 0f15771144786ce5587283c54a57c809 On 07/01/2010 08:44 AM, SpaceCake wrote: > 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? Also > I'm thinking how can I instruct udev to turn off swap when the device is > removed, but this is another story :) Here's what I have in my /etc/fstab file for one of my USB keys. I assume you could just change it to say swap instead. UUID=BA62-89BD /mnt/key auto noauto,user,exec,nosuid 0 0