From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F38F113877A for ; Wed, 6 Aug 2014 16:13:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BF10E08FE; Wed, 6 Aug 2014 16:13:16 +0000 (UTC) Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8792AE08F2 for ; Wed, 6 Aug 2014 16:13:15 +0000 (UTC) Received: by mail-ob0-f171.google.com with SMTP id wm4so2000323obc.2 for ; Wed, 06 Aug 2014 09:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=5pnh5sqzYm1zPyzUj8TdPoLvYNGWt1COLFyv1G2k4TM=; b=kl+PQKIwUrf7fUMq1Jo+BIny9JKqOC8+EZttxU+nv6Twrrod7zwty8nEBYsM2iS/0l T7ySW6KU6FJ7XPxHo/37qLM9Qa+mYXoviz5druuhAI/haqFvgd78EUX5+E8g1fNeFW37 5ofN7kQsTQTHT2uqy1+nbFqIgM7EMEcSKiXQ0+rv7vF0gpeQiYiD2xC4P1xwsIJXyLBr ppNl9qY7wa5xAf3sr9dKM0Qc1PN8uRToHppukvULEqLpSuSbOZhtMOXGZhoYKCe0vPzR b+GdhlmnELkTcmBA6XSoc+jtQq0LbiYsU0ycm3ZOtgNCOCdwJUwsL9+jDt98iSJS4D2H FOCw== X-Received: by 10.60.84.207 with SMTP id b15mr16480585oez.49.1407341594742; Wed, 06 Aug 2014 09:13:14 -0700 (PDT) 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.60.58.163 with HTTP; Wed, 6 Aug 2014 09:12:34 -0700 (PDT) In-Reply-To: <20140806150931.GA21316@waltdnes.org> References: <20140806150931.GA21316@waltdnes.org> From: Francisco Ares Date: Wed, 6 Aug 2014 13:12:34 -0300 Message-ID: Subject: Re: [gentoo-user] Automounting USB drives To: gentoo-user Content-Type: multipart/alternative; boundary=089e0118489ed5140704fff83fac X-Archives-Salt: 3a26e982-6f9b-4725-adac-9d37ecfbc504 X-Archives-Hash: dc3870d3efce3b90786e3a2edec6e9c9 --089e0118489ed5140704fff83fac Content-Type: text/plain; charset=UTF-8 2014-08-06 12:09 GMT-03:00 Walter Dnes : > On Tue, Aug 05, 2014 at 06:18:44PM -0700, Chris Stankevitz wrote > > Hello, > > > > Which package(s) do I need that allow: > > > > 1. A USB drive is inserted > > > > 2. The drive is mounted in some location automatically (e.g. > /media/usbstick) > > > > 3. (2) happens even when the drive is an NTFS or FAT32 drive. > > > > 4. (1)-(3) happens even if I am not running a "GUI" > > It can be done with udev rules. See webpage > http://www.tuxradar.com/answers/526#null The suggested udev rule is... > > SUBSYSTEMS=="scsi", KERNEL=="sd[a-h][0-9]", > SYMLINK:="removable%n", RUN+="/usr/bin/pmount /dev/removable%n" > > It sets up devices /dev/removable1, /dev/removable2, etc, depending on > the number of partitions on the USB device. The regular user should > able to unmount the device with the "pumount" command. I'm not certain, > but I believe that regular users need to be members of group "plugdev" > to be able to access and unmount the USB drive. > > Because this is done independantly of the GUI, I don't think it'll set > up an icon automatically. > > -- > Walter Dnes > I don't run "desktop environments"; I run useful applications > > Hi, I have found some interesting places, this one the most of all: http://forums.gentoo.org/viewtopic-t-350769-highlight-udev.html Best regards, Francisco --089e0118489ed5140704fff83fac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= 2014-08-06 12:09 GMT-03:00 Walter Dnes <waltdnes@waltdnes.org><= /span>:
On Tue, Aug 05, 2014 at 06:18:44PM -0700, Chris Stankevitz= wrote
> Hello,
>
> Which package(s) do I need that allow:
>
> 1. A USB drive is inserted
>
> 2. The drive is mounted in some location automatically (e.g. /media/us= bstick)
>
> 3. (2) happens even when the drive is an NTFS or FAT32 drive.
>
> 4. (1)-(3) happens even if I am not running a "GUI"

=C2=A0 It can be done with udev rules. =C2=A0See webpage
http= ://www.tuxradar.com/answers/526#null =C2=A0The suggested udev rule is..= .

SUBSYSTEMS=3D=3D"scsi", KERNEL=3D=3D"sd[a-h][0-9]",
SYMLINK:=3D"removable%n", RUN+=3D"/usr/bin/pmount /dev/remov= able%n"

=C2=A0 It sets up devices /dev/removable1, /dev/removable2, etc, depending = on
the number of partitions on the USB device. =C2=A0The regular user should able to unmount the device with the "pumount" command. =C2=A0I= 9;m not certain,
but I believe that regular users need to be members of group "plugdev&= quot;
to be able to access and unmount the USB drive.

=C2=A0 Because this is done independantly of the GUI, I don't think it&= #39;ll set
up an icon automatically.

--
Walter Dnes <waltdnes@waltdnes.= org>
I don't run "desktop environments"; I run useful applications=


Hi,

I have = found some interesting places, this one the most of all:


Best regards,
Fr= ancisco

--089e0118489ed5140704fff83fac--