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 <gentoo-user+bounces-112345-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1OURqO-0005Tt-E2
	for garchives@archives.gentoo.org; Thu, 01 Jul 2010 22:02:52 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8F8EEE0AF2;
	Thu,  1 Jul 2010 22:02:28 +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 52C0DE0AF2
	for <gentoo-user@lists.gentoo.org>; Thu,  1 Jul 2010 22:02:28 +0000 (UTC)
Received: by wyf28 with SMTP id 28so1274848wyf.40
        for <gentoo-user@lists.gentoo.org>; Thu, 01 Jul 2010 15:02:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:from:to:subject:date
         :user-agent:cc:references:in-reply-to:mime-version:content-type
         :content-transfer-encoding:message-id;
        bh=J9/BlsZ7EfAf1+n8TAvbXTELOcUiKCn8fcOhjiPZsBc=;
        b=u841ud4SsKQpNNF4d06SzkeUGtyYGhVf9GW5hw8KDp84H3afBNLjrhfxVNkx+RS04V
         /y2PrFKLYYNhyO3evYn76rQP9ydepk9P+dH2uUBbJUNqGb/Qk/SVD0gnO+fWoqU6C7U2
         oG44nOamvzU3fBFPUJhF4KHFsdM37uxvAAkxI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:to:subject:date:user-agent:cc:references:in-reply-to
         :mime-version:content-type:content-transfer-encoding:message-id;
        b=cJd5Klk7K+HlFTt3KjWYLe3Mk2AN/Vu7THEcoJypsbMNoJPe4JoqczGnqNr40vjI4B
         wW5Hyg1EmZ1wxPn2SrtuPG3CEGnngXZ5axXoBGZ8rfTWnHVnC/JI/7IPnigLvMmujBCt
         /W+MKbI+F5vjTvHnJNPIeeOBLpsd8cvaTJwGE=
Received: by 10.227.155.20 with SMTP id q20mr82112wbw.74.1278021747736;
        Thu, 01 Jul 2010 15:02:27 -0700 (PDT)
Received: from nazgul.localnet (196-210-140-126.dynamic.isadsl.co.za [196.210.140.126])
        by mx.google.com with ESMTPS id b23sm1890968wbb.2.2010.07.01.15.02.20
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Thu, 01 Jul 2010 15:02:22 -0700 (PDT)
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] activating swap by udev event
Date: Thu, 1 Jul 2010 23:59:09 +0200
User-Agent: KMail/1.13.3 (Linux/2.6.34-ck-r1; KDE/4.4.4; x86_64; ; )
Cc: Neil Bothwick <neil@digimed.co.uk>
References: <AANLkTikEOU4NJc5OjYsd8ewVwnH6N1RZ_lI0YzAjUq34@mail.gmail.com> <201007012146.16265.alan.mckinnon@gmail.com> <20100701225056.2059ac87@zaphod.digimed.co.uk>
In-Reply-To: <20100701225056.2059ac87@zaphod.digimed.co.uk>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <201007012359.09342.alan.mckinnon@gmail.com>
X-Archives-Salt: 6d0640ca-b2e8-4085-add6-390362835141
X-Archives-Hash: 7c138905452dcd51f52e2039d19c60a9

On Thursday 01 July 2010 23:50:56 Neil Bothwick wrote:
> On Thu, 1 Jul 2010 21:46:15 +0200, Alan McKinnon wrote:
> > That will never work in a zillion years for all the good reasons
> > mentioned elsewhere in this thread.
> > 
> > You MUST disable swap THEN remove the device. This sequence is
> > inviolate.
> 
> You could use a udev rule to enable the swap, but it has to be removed
> manually. But it does raise the question of why you would want swap on a
> USB stick in the first place. It must be slower than hard disk swap, and
> will wear out the flash memory. Instead of all this messing around, just
> increase the size of your swap partition, or add another one.

Or deal with the actual underlying issue which is probably 

"get more RAM"


-- 
alan dot mckinnon at gmail dot com