From owner-freebsd-gnome@FreeBSD.ORG Sat Feb 26 12:58:15 2011 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB75610656A9; Sat, 26 Feb 2011 12:58:15 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 5561D8FC24; Sat, 26 Feb 2011 12:58:14 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id p1QCwCUX023981 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 26 Feb 2011 13:58:13 +0100 Received: from [192.168.100.129] (229.Red-83-45-105.dynamicIP.rima-tde.net [83.45.105.229]) (authenticated bits=0) by ackerman2.upc.es (8.13.8/8.13.8) with ESMTP id p1QCwAG8020031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Feb 2011 13:58:12 +0100 Message-ID: <4D68F8E7.5060608@entel.upc.edu> Date: Sat, 26 Feb 2011 13:58:15 +0100 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Joe Marcus Clarke References: <201102221713.04779.c47g@gmx.at> <4D6820D3.8090803@freebsd.org> In-Reply-To: <4D6820D3.8090803@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.63 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Sat, 26 Feb 2011 13:58:13 +0100 (CET) Cc: gnome@freebsd.org, kde-freebsd@kde.org Subject: Re: Problems with automounting USB stick X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Feb 2011 12:58:15 -0000 Al 25/02/11 22:36, En/na Joe Marcus Clarke ha escrit: > On 2/22/11 11:13 AM, Christian Gusenbauer wrote: >> Hi! >> >> [ I've already sent this below mentioned problem to kde-freebsd@ where Alberto >> Villa had a look at that it. He suggested to send this mail to gnome@, too, >> because he thinks it's HAL and not KDE related. So here it comes ... ] >> >> I've a problem automounting an USB stick on KDE 4.5.5 and current. At the very >> first time after booting the machine, I can insert the USB stick and the stick >> will be automounted without problems. But if I unmount it using the eject >> button and remove the stick, it will not be automounted again if I reinsert it >> :-(. >> >> After reinserting the stick, I get a >> >> Error: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: >> org.freedesktop.hal.storage.mount-fixed auth_admin_keep_always <-- (action, >> result) >> >> It's funny, because HAL thinks that it's a 'mount-fixed' device and not a >> 'mount-removeable' one (which HAL reports at the very first time). >> >> So what's wrong with HAL or my setup? How can I track down that problem or is >> it already a well-known one? >> >> What we did so far: >> >> - we found out that restarting hald works but it is unconvenient, if I'd have >> to restart hald every time I remove the stick :-) >> - Alberto suggested to try pasting this into >> /usr/local/etc/hal/fdi/preprobe/20thirdparty/10- >> ignore-computer_storage.fdi (or /usr/local/share/...): >> http://pastebin.com/iiTVQARt >> But that made it worse - now the second insert is not recognized anymore >> >> Find attached some debugging output of hal, lshal, ... >> >> Please keep me CC'd because I'm not subscribed to gnome@! > Your attachments got eaten by mailman. Can you follow the > troubleshooting guide at http://www.freebsd.org/gnome/docs/halfaq.html > to make sure you have done everything and included all of the relevant data. > > Joe > Hi, it seems the lists ate the patch (thanks Andriy). You can download the simple patch at : http://www-entel.upc.edu/gus/patch-hald_freebsd_hf-devd.c you have to replace the files/patch-hald_freebsd_hf-devd.c patch already in the port with this one. It seems hald is unable to understand what devd reports, so when you plug a new device while hald is running, hald doesn't get the new device with all of its characteristics (I remember making lshal showed me my usb memory devices like hard drives). Best regards, Gustau