Gentoo Archives: gentoo-user

From: SpaceCake <spacecakex@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] activating swap by udev event
Date: Thu, 01 Jul 2010 15:59:24
Message-Id: AANLkTin5L8ayngYbEzgaJScBTlVJF-5Sy5CGDU-elfOs@mail.gmail.com
In Reply to: Re: [gentoo-user] activating swap by udev event by Bill Longman
1 that's good if I want to mount at a specific location, but for swap I need
2 the device name, but this is changes depending on how many other usb drives
3 are connected. Looks lik this is a tricky question :)
4
5 L:
6
7
8 2010/7/1 Bill Longman <bill.longman@×××××.com>
9
10 > On 07/01/2010 08:44 AM, SpaceCake wrote:
11 > > So, it solves the first problem, identifiying the device, but how can I
12 > > tell to udev to use always /dev/sds (for example) for this device? Also
13 > > I'm thinking how can I instruct udev to turn off swap when the device is
14 > > removed, but this is another story :)
15 >
16 > Here's what I have in my /etc/fstab file for one of my USB keys. I
17 > assume you could just change it to say swap instead.
18 >
19 > <fs> <mntpt> <fs> <opts> <dump/pass>
20 > UUID=BA62-89BD /mnt/key auto noauto,user,exec,nosuid 0 0
21 >
22 >

Replies

Subject Author
Re: [gentoo-user] activating swap by udev event Bill Longman <bill.longman@×××××.com>