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 1CB0113877A for ; Wed, 6 Aug 2014 15:09:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87298E08EC; Wed, 6 Aug 2014 15:09:36 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 8A031E08E0 for ; Wed, 6 Aug 2014 15:09:35 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsGAIDvNVPO+LPr/2dsb2JhbABZgwY7w0yBFxd0giYBAQQ6HDMLIRMSDwUlN4d5DdIMF48BFoMOgRQEjz6JD4ZhiWuBaoNMIQ X-IPAS-Result: AqsGAIDvNVPO+LPr/2dsb2JhbABZgwY7w0yBFxd0giYBAQQ6HDMLIRMSDwUlN4d5DdIMF48BFoMOgRQEjz6JD4ZhiWuBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="82288456" Received: from 206-248-179-235.dsl.teksavvy.com (HELO waltdnes.org) ([206.248.179.235]) by ironport2-out.teksavvy.com with SMTP; 06 Aug 2014 11:09:33 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Wed, 06 Aug 2014 11:09:32 -0400 From: "Walter Dnes" Date: Wed, 6 Aug 2014 11:09:32 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Automounting USB drives Message-ID: <20140806150931.GA21316@waltdnes.org> References: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-Archives-Salt: 01ddbc64-1ab9-4bb1-bc2f-e1d4525eb1d9 X-Archives-Hash: fd6a35a4754c39c5b1eb81da2ad3e029 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