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 1OUMAd-0006gn-3v for garchives@archives.gentoo.org; Thu, 01 Jul 2010 15:59:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8E02E09CC; Thu, 1 Jul 2010 15:59:16 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id A2A21E09CC for ; Thu, 1 Jul 2010 15:59:16 +0000 (UTC) Received: by wyf28 with SMTP id 28so1090300wyf.40 for ; Thu, 01 Jul 2010 08:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=a0LBpUYOdaK9WgZ0U/cYSU0yAWhR8h2DeYkR+LxQna0=; b=CvKNZyFONTnTydYOuUYmnBoTQPaqX9jORJqIk6RR13XRQ9cvWFWvhxPUXISGdQBpvL tonu6MU1wFyBQl293FJJFYWEQIkXHHN2pEV1rFW4cPZjX7WPTVmNnh5Ly4a4Swxw8Mc6 J+4Xkni9WfHHhnzLe3zd1r7M5bcheVXJeVe4Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=E4N7GeeVaPTCV4GdHhNoWhFL6ut7LhbPld5UK4KmP1h/Vn7j5FMfheEQoUsBblkV0i QEHaYo6glmprARg97fKfCQgOm2IGA65Nn0PzC8JQ28+CuJm+i9/D0ocJSoRovSk9P9G4 XrlxI512Une9F/HlZ4/WpcHW3akXsEvSe80bs= 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 Received: by 10.204.69.136 with SMTP id z8mr7098523bki.97.1277999954491; Thu, 01 Jul 2010 08:59:14 -0700 (PDT) Received: by 10.204.56.20 with HTTP; Thu, 1 Jul 2010 08:59:13 -0700 (PDT) In-Reply-To: <4C2CB906.8030906@gmail.com> References: <20100701151624.11bd166f@zaphod.digimed.co.uk> <20100701162653.592b261c@zaphod.digimed.co.uk> <4C2CB906.8030906@gmail.com> Date: Thu, 1 Jul 2010 17:59:13 +0200 Message-ID: Subject: Re: [gentoo-user] activating swap by udev event From: SpaceCake To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=001636c5c2404ff1e4048a558d7b X-Archives-Salt: fb2605fe-aa6f-4dbc-a92b-5692c1a6b154 X-Archives-Hash: 47c5b57bf2a862776f2673fb35205650 --001636c5c2404ff1e4048a558d7b Content-Type: text/plain; charset=ISO-8859-1 that's good if I want to mount at a specific location, but for swap I need the device name, but this is changes depending on how many other usb drives are connected. Looks lik this is a tricky question :) L: 2010/7/1 Bill Longman > 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 > > --001636c5c2404ff1e4048a558d7b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable that's good if I want to mount at a specific location, but for swap I n= eed the device name, but this is changes depending on how many other usb dr= ives are connected. Looks lik this is a tricky question=A0 :)

L:


2010/7/1 Bill Longman = <bill.longman@gmail.com>= ;
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? Als= o
> I'm thinking how can I instruct udev to turn off swap when the dev= ice 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.

<fs> =A0 =A0 =A0 =A0 =A0 <mntpt> =A0<fs> <opts> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dump/pass>
UUID=3DBA62-89BD /mnt/key auto noauto,user,exec,nosuid 0 0


--001636c5c2404ff1e4048a558d7b--