From owner-freebsd-gnome@FreeBSD.ORG Fri Apr 10 03:23:12 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 5DFCE1065673 for ; Fri, 10 Apr 2009 03:23:12 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id E66318FC20 for ; Fri, 10 Apr 2009 03:23:11 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id n3A3NWY6073904; Thu, 9 Apr 2009 23:23:33 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Gary Dunn In-Reply-To: <1239269760.2630.6.camel@slate01> References: <1239269760.2630.6.camel@slate01> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-EERm8J+H+inzMVYoqPfE" Organization: MarcusCom, Inc. Date: Thu, 09 Apr 2009 23:23:06 -0400 Message-Id: <1239333786.4933.104.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com Cc: FreeBSD-Gnome Subject: Re: Results of USB auto-mount test 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: Fri, 10 Apr 2009 03:23:12 -0000 --=-EERm8J+H+inzMVYoqPfE Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2009-04-08 at 23:36 -1000, Gary Dunn wrote: > I have been trying to get my arms around the USB auto-mount function. > Sorry, no solutions here, just some data that I hope will be useful to > developers. If you spot something I could do better please comment. >=20 > I have done all of the configuration steps listed in the on-line > documentation. I would like that to be an install option, default yes. >=20 > The table below presents findings for four USB devices. The first three > are flash drives ("thumb" drives). Entries #4 and #5 are separate > partitions on the same external hard drive. Following the table are log > messages associated with device insertion; the numbers coincide with the > table rows. The ufs partition in #5 does not create a separate log entry > even though /dev/da0s1 is created. >=20 > Only #1 and #4 operate successfully; the drive mounts automatically and > can be unmounted from the desktop icon.=20 >=20 > The documentation on the FreeBSD Gnome web site states that volume > labels must not contain spaces. All of my thumb drives had labels with > spaces or no label at all. I was unable to find a method for changing > the volume label on an msdosfs volume. The tunefs -L command only works > with ufs. I thought glabel might do it, but either it cannot or I did > not stumble upon the right command line. Of course my iMac had no > problem with any of these, and renaming a volume is a snap. Just open > the "get info" dialog. I left #2 with a space for comparison. >=20 > I expected my newly assigned volume labels to appear under the desktop > icon. In the table the LAB column shows the assigned volume label, and > DTL shows the label that appears under the desktop icon. I see that #2 > and #3 failed to unmount and have desktop labels that are different than > the assigned volume label, and they contain spaces and dots. This could > be significant. Where do those labels come from? >=20 > When a device would not unmount by way of the desktop icon I could > unmount it manually (command line umount /media/aName) after doing a > shutdown now. Apparently something in Gnome is hanging onto a file > handle even when I did not have anything open; dropping into single user > mode killed whatever it was. This is because gamin holds volumes open. Nautilus should be relinquishing the monitors on volumes, but that's apparently buggy. There were some fixes to that code in GNOME 2.26. >=20 > In addition to these drives I have a Nikon camera that auto-mounted > perfectly in Gnome 2.22 but will not unmount in 2.24. I also have a Sony > PCM-D50 digital recorder that should appear to be a USB drive, but umass > cannot understand it. It works perfectly with Vista and OS X ... :-( > When I plug it in the system freezes, and when I unplug it I get the > famous kernel panic even though the device was never mounted. I have > already been in contact with the author of umass about that. >=20 > Is there a reason why my ufs partition does not auto mount? I prefer to > use ufs over FAT32 so that ownership and permissions are not borked. I > should be able to plug it in, wait for the desktop icon, do my backup, > then unmount from the icon. You need to provide the debugging information as documented at http://www.freebsd.org/gnome/docs/halfaq.html . Joe >=20 > Why doesn't dropping a disk icon into the trash trigger an unmount > action the way it does in OS X? >=20 > I hope someone finds this helpful! >=20 > USB DEVICE TEST > FreeBSD 7.1 RELEASE > Gnome 2.24 > Fujitsu T1010 laptop >=20 > # NAME GB FS LAB DTL AM UMD UMM =20 > 1 Connect 1 fat CONNECT1GB CONNECT1GB y y - > 2 EP Memory 8 fat USB DISK 8.2 GB Media n n y > 3 Transcend 8 fat TRANS8GB 8.0 GB Media y n n > 4 Lacie HD 83 fat XCHG XCHG y y - > 5 Lacie HD 208 ufs lacie lacie n n n >=20 > (#4 and #5 are same device, two partitions) >=20 > NAME - printed on case > GB - capacity in GB > FS - file system > LAB - Label on OS X > DTL - Label on Gnome desktop icon > AM - auto mounts, icon appears on desktop > UMD - can unmount from desktop icon > UMM - can unmount manually >=20 > UMASS Log Messages > #1=20 > Apr 8 06:56:33 slate01 kernel: umass0: Device, class 0/0, rev 2.00/1.00, addr 2> on uhub3 > Apr 8 06:56:33 slate01 root: Unknown USB device: vendor 0x3538 product > 0x0042 bus uhub3 > Apr 8 06:56:33 slate01 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Apr 8 06:56:33 slate01 kernel: da0: > Removable Direct Access SCSI-2 device=20 > Apr 8 06:56:33 slate01 kernel: da0: 40.000MB/s transfers > Apr 8 06:56:33 slate01 kernel: da0: 984MB (2015232 512 byte sectors: > 64H 32S/T 984C) > Apr 8 06:56:33 slate01 kernel: GEOM_LABEL: Label for provider da0s1 is > msdosfs/CONNECT1GB. > Apr 8 06:56:35 slate01 gnome-keyring-daemon[1043]: adding removable > location: volume_uuid_0528_67B7 at /media/CONNECT1GB >=20 > #2 > Apr 8 07:13:29 slate01 kernel: umass0: Device, class 0/0, rev 2.00/1.00, addr 2> on uhub3 > Apr 8 07:13:29 slate01 root: Unknown USB device: vendor 0x0457 product > 0x0151 bus uhub3 > Apr 8 07:13:30 slate01 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Apr 8 07:13:30 slate01 kernel: da0: > Removable Direct Access SCSI-2 device=20 > Apr 8 07:13:30 slate01 kernel: da0: 40.000MB/s transfers > Apr 8 07:13:30 slate01 kernel: da0: 7840MB (16056320 512 byte sectors: > 255H 63S/T 999C) > Apr 8 07:13:30 slate01 kernel: GEOM_LABEL: Label for provider da0s1 is > msdosfs/USB DISK. >=20 > #3 > Apr 8 07:18:27 slate01 kernel: umass0: class 0/0, rev 2.00/1.00, addr 2> on uhub3 > Apr 8 07:18:27 slate01 kernel: umass0: Get Max Lun not supported > (STALLED) > Apr 8 07:18:27 slate01 root: Unknown USB device: vendor 0x058f product > 0x6387 bus uhub3 > Apr 8 07:18:27 slate01 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Apr 8 07:18:27 slate01 kernel: da0: > Removable Direct Access SCSI-2 device=20 > Apr 8 07:18:27 slate01 kernel: da0: 40.000MB/s transfers > Apr 8 07:18:27 slate01 kernel: da0: 7660MB (15687680 512 byte sectors: > 255H 63S/T 976C) > Apr 8 07:18:28 slate01 kernel: GEOM_LABEL: Label for provider da0s1 is > msdosfs/TRANS8GB. > Apr 8 07:18:32 slate01 gnome-keyring-daemon[1043]: adding removable > location: volume_size_8027897856 at /media/disk >=20 > #4 > Apr 8 07:34:46 slate01 root: Unknown USB device: vendor 0x059f product > 0x100c bus uhub3 > Apr 8 07:34:46 slate01 kernel: umass0: class 0/0, rev 2.00/0.01, addr 2> on uhub3 > Apr 8 07:34:46 slate01 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Apr 8 07:34:46 slate01 kernel: da0: Fixed Direct > Access SCSI-4 device=20 > Apr 8 07:34:46 slate01 kernel: da0: 40.000MB/s transfers > Apr 8 07:34:46 slate01 kernel: da0: 305245MB (625142448 512 byte > sectors: 255H 63S/T 38913C) > Apr 8 07:34:47 slate01 kernel: GEOM_LABEL: Label for provider da0s2 is > msdosfs/XCHG. >=20 >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-EERm8J+H+inzMVYoqPfE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkneu5kACgkQb2iPiv4Uz4e4OgCgkdxhNEvDkla8lVZNQM7IvtFJ MAYAoImcZ+FI4axtxOKWDLojQnOCHY12 =+MwZ -----END PGP SIGNATURE----- --=-EERm8J+H+inzMVYoqPfE--