From: | SpaceCake <spacecakex@×××××.com> |
---|---|
To: | gentoo-user@l.g.o |
Subject: | [gentoo-user] activating swap by udev event |
Date: | Thu, 01 Jul 2010 13:50:19 |
Message-Id: | AANLkTikEOU4NJc5OjYsd8ewVwnH6N1RZ_lI0YzAjUq34@mail.gmail.com |
1 | Hi, |
2 | |
3 | |
4 | I would like to increase the speed of my machine by putting some swap on a |
5 | fast pendrive. It is working manually by starting a script |
6 | |
7 | swapon -s |
8 | swapon -p -1 /dev/sdb1 |
9 | swapoff /dev/sda6 |
10 | swapon -p -2 /dev/sda6 |
11 | swapon -s |
12 | |
13 | but, I would like to make it automatic by creating an udev rule, so when I |
14 | plug in that device the swap space is automatically activated and the |
15 | priority is changed. I've tried to google for a solution like this, but I |
16 | did not find. Maybe you already have some script at hand :) can you please |
17 | share this with me? |
18 | |
19 | Thanks |
20 | Laszlo |
Subject | Author |
---|---|
Re: [gentoo-user] activating swap by udev event | Neil Bothwick <neil@××××××××××.uk> |
Re: [gentoo-user] activating swap by udev event | Nils Larsson <nisselarsson@××××.se> |