From owner-freebsd-gnome@FreeBSD.ORG Thu Feb 19 12:45:11 2009 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDAA8106568D; Thu, 19 Feb 2009 12:45:11 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: from mail-bw0-f170.google.com (mail-bw0-f170.google.com [209.85.218.170]) by mx1.freebsd.org (Postfix) with ESMTP id 0E4FF8FC29; Thu, 19 Feb 2009 12:45:10 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: by bwz18 with SMTP id 18so1306042bwz.19 for ; Thu, 19 Feb 2009 04:45:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=gX3ZKuBtESa2yk4Lw4Mg3WpAJTxLGa+S05/h51io51o=; b=KwXym6WCEPBeDqMzJ9AW7NFiI+aC/lud9DxcUyuWhR9kRq8lpCBrfyB4IT9VcNWvB/ hB8hdC6wZbvf/+hCphkWcZqIWub6D2RGdWf0q6Bw3I76eTJzkaJZXsJn3cVF6keQoO50 EQnqiRvkEJaWeCxPXFLGXBzONS9kagTrzZeSE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=OIkDob2m3SD/buPRyaM2WL5m2OsbcfSzuW0I79ZaSVU4UHLnHTI7cP6XwIVs3NZyn+ FbHsF85c/+dWcmOum4i/DHgNOrs1exaUQ2O6pleutQAo88gSy+yg34HffAmEZ4Q7Csii cZLoppL1csOGJh6AoWsqAb4GI5eiBdof4S/T0= Received: by 10.103.11.7 with SMTP id o7mr410994mui.103.1235047509859; Thu, 19 Feb 2009 04:45:09 -0800 (PST) Received: from ?192.168.10.84? (59-126-152-52.HINET-IP.hinet.net [59.126.152.52]) by mx.google.com with ESMTPS id 25sm167321mul.51.2009.02.19.04.45.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 19 Feb 2009 04:45:08 -0800 (PST) Sender: "Eric L. Chen" From: "Eric L. Chen" To: Joe Marcus Clarke In-Reply-To: <1234937396.17001.111.camel@shumai.marcuscom.com> References: <1234167699.1428.6.camel@localhost> <49907B0A.9020602@freebsd.org> <1234256812.1407.5.camel@localhost> <1234937396.17001.111.camel@shumai.marcuscom.com> Content-Type: text/plain Date: Thu, 19 Feb 2009 20:44:59 +0800 Message-Id: <1235047499.1589.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-gnome@FreeBSD.org Subject: Re: Cannot umount ntfs-3g without root prvilege. 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: Thu, 19 Feb 2009 12:45:12 -0000 On Wed, 2009-02-18 at 01:09 -0500, Joe Marcus Clarke wrote: > On Tue, 2009-02-10 at 17:06 +0800, Eric L. Chen wrote: > > On Mon, 2009-02-09 at 13:50 -0500, Joe Marcus Clarke wrote: > > > Eric L. Chen wrote: > > > > Hi, > > > > > > > > I followed http://www.freebsd.org/gnome, try to mount usb disk (ntfs > > > > formatted). > > > > It can be mounted, but cannot umount. > > > > We need ntfs usb disk for large file, since fat cannot support file > > > that > > > > greater than 2GiB. > > > > BTW, I am using ntfs-3g for NTFS read/write support. > > > > > > Have you followed the instructions in > > > /usr/local/share/docs/hal-0.5.11/README.fuse? > > > > > > Joe > > > > > Yes, I tried using /usr/local/share/hal/mount-fuse . > > # mv /sbin/mount_ntfs /sbin/mount_ntfs.orig > > # cp /usr/local/share/hal/mount-fuse /sbin/mount_ntfs > > # cp /usr/local/share/hal/mount-fuse /sbin/mount_ntfs-3g > > but results the same problem. same as: > > # ln -sf /usr/local/bin/ntfs-3g /usr/sbin/mount_ntfs-3g > > Can you try this patch to see if unmounting ntfs-3g volumes works: > > http://www.marcuscom.com/downloads/patch-tools_hal-storage-unmount.c > > Joe > It doesn't work, a message box: "umount: unmount of /media/usbdisk failed: Operation not permitted" # cat /media/.hal-mtab /dev/ntfs/usbdisk 1001 0 ntfs-3g nosuid,umask=007,dmask=002,fmask=117 /media/usbdisk # cat /tmp/.fuse-mnts /dev/fuse1=/dev/ntfs/usbdisk > gnome-mount -vnbt -u -d /dev/fuse1 gnome-mount 0.8 ** Message: Given device '/dev/fuse1' is not a volume or a drive. > gnome-mount -vnbt -u -p usbdisk gnome-mount 0.8 Resolved pseudonym "usbdisk" -> /dev/ntfs/usbdisk ** (gnome-mount:1728): DEBUG: Unmounting /org/freedesktop/Hal/devices/volume_uuid_0A803ABD803AAF57 ** (gnome-mount:1728): DEBUG: Setting up 750ms timer for Flushing Cache dialog ** (gnome-mount:1728): DEBUG: in unmount_done : user_data = 0x0 ** Message: Unmount failed for /org/freedesktop/Hal/devices/volume_uuid_0A803ABD803AAF57: org.freedesktop.Hal.Device.Volume.NotMountedByHal : Device to unmount is not in /media/.hal-mtab so it is not mounted by HAL I think unmounting from HAL needs parse /media/.hal-mtab file. /Eric