1 |
2014-08-06 12:09 GMT-03:00 Walter Dnes <waltdnes@××××××××.org>: |
2 |
|
3 |
> On Tue, Aug 05, 2014 at 06:18:44PM -0700, Chris Stankevitz wrote |
4 |
> > Hello, |
5 |
> > |
6 |
> > Which package(s) do I need that allow: |
7 |
> > |
8 |
> > 1. A USB drive is inserted |
9 |
> > |
10 |
> > 2. The drive is mounted in some location automatically (e.g. |
11 |
> /media/usbstick) |
12 |
> > |
13 |
> > 3. (2) happens even when the drive is an NTFS or FAT32 drive. |
14 |
> > |
15 |
> > 4. (1)-(3) happens even if I am not running a "GUI" |
16 |
> |
17 |
> It can be done with udev rules. See webpage |
18 |
> http://www.tuxradar.com/answers/526#null The suggested udev rule is... |
19 |
> |
20 |
> SUBSYSTEMS=="scsi", KERNEL=="sd[a-h][0-9]", |
21 |
> SYMLINK:="removable%n", RUN+="/usr/bin/pmount /dev/removable%n" |
22 |
> |
23 |
> It sets up devices /dev/removable1, /dev/removable2, etc, depending on |
24 |
> the number of partitions on the USB device. The regular user should |
25 |
> able to unmount the device with the "pumount" command. I'm not certain, |
26 |
> but I believe that regular users need to be members of group "plugdev" |
27 |
> to be able to access and unmount the USB drive. |
28 |
> |
29 |
> Because this is done independantly of the GUI, I don't think it'll set |
30 |
> up an icon automatically. |
31 |
> |
32 |
> -- |
33 |
> Walter Dnes <waltdnes@××××××××.org> |
34 |
> I don't run "desktop environments"; I run useful applications |
35 |
> |
36 |
> |
37 |
Hi, |
38 |
|
39 |
I have found some interesting places, this one the most of all: |
40 |
|
41 |
http://forums.gentoo.org/viewtopic-t-350769-highlight-udev.html |
42 |
|
43 |
Best regards, |
44 |
Francisco |