Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Apr 2009 23:23:06 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Gary Dunn <knowtree@aloha.com>
Cc:        FreeBSD-Gnome <freebsd-gnome@freebsd.org>
Subject:   Re: Results of USB auto-mount test
Message-ID:  <1239333786.4933.104.camel@shumai.marcuscom.com>
In-Reply-To: <1239269760.2630.6.camel@slate01>
References:  <1239269760.2630.6.camel@slate01>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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: <vendor 0x3538 USB Mass Storage
> 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: <Generic USB Flash Disk 0.00>
> 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: <vendor 0x0457 USB Mass Storage
> 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: <Flash Drive UT_USB20 0.00>
> 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: <JetFlash Mass Storage Device,
> 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: <JetFlash Transcend 8GB 8.07>
> 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: <LaCie LaCie Rugged FW/USB,
> 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: <LaCie Rugged FW/USB > 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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1239333786.4933.104.camel>