Source: gvfs Severity: important Dear Maintainer,
Today, I wanted to copy my statistics course to the micro sd card I use for my e-reader. I do this using my 3G dongle. The first problem I encountered that the partitions weren't automatically discovered. It was when the dongle was inserted during boot, or when I did a touch /dev/sdb Well, I could mount the FAT32 file system now, but the ownership was set to root. I have tested it with an other FAT32 file system using a spare USB stick, but this functioned well. This is the output of gvfs-mount -io after inserting the dongle: Drive connected: 'HUAWEI MMC Storage' Drive(0): HUAWEI MMC Storage Type: GProxyDrive (GProxyVolumeMonitorUDisks2) ids: unix-device: '/dev/sdb' themed icons: [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] symbolic themed icons: [drive-removable-media-usb-symbolic] [drive-removable-media-symbolic] [drive-removable-symbolic] [drive-symbolic] [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] is_media_removable=1 has_media=0 is_media_check_automatic=1 can_poll_for_media=0 can_eject=1 can_start=0 can_stop=0 start_stop_type=shutdown sort_key=01hotplug/1401829923277712 Drive connected: 'HUAWEI Mass Storage' Drive(0): HUAWEI Mass Storage Type: GProxyDrive (GProxyVolumeMonitorUDisks2) ids: unix-device: '/dev/sr0' themed icons: [drive-optical] [drive] symbolic themed icons: [drive-optical-symbolic] [drive-symbolic] [drive-optical] [drive] is_media_removable=1 has_media=0 is_media_check_automatic=1 can_poll_for_media=0 can_eject=1 can_start=0 can_stop=0 start_stop_type=shutdown sort_key=01hotplug/1401829923303482 After I do the touch /dev/sdb: Drive changed: 'HUAWEI MMC Storage' Drive(0): HUAWEI MMC Storage Type: GProxyDrive (GProxyVolumeMonitorUDisks2) ids: unix-device: '/dev/sdb' themed icons: [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] symbolic themed icons: [drive-removable-media-usb-symbolic] [drive-removable-media-symbolic] [drive-removable-symbolic] [drive-symbolic] [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] is_media_removable=1 has_media=1 is_media_check_automatic=1 can_poll_for_media=0 can_eject=1 can_start=0 can_stop=0 start_stop_type=shutdown sort_key=01hotplug/1401829923277712 Volume added: 'usb0' Volume(0): usb0 Type: GProxyVolume (GProxyVolumeMonitorUDisks2) ids: class: 'device' themed icons: [drive-removable-media] [drive-removable] [drive] symbolic themed icons: [drive-removable-media-symbolic] [drive-removable-symbolic] [drive-symbolic] [drive-removable-media] [drive-removable] [drive] can_mount=1 can_eject=0 should_automount=0 sort_key=gvfs.time_detected_usec.1401830431454306 Drive changed: 'HUAWEI MMC Storage' Drive(0): HUAWEI MMC Storage Type: GProxyDrive (GProxyVolumeMonitorUDisks2) ids: unix-device: '/dev/sdb' themed icons: [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] symbolic themed icons: [drive-removable-media-usb-symbolic] [drive-removable-media-symbolic] [drive-removable-symbolic] [drive-symbolic] [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] is_media_removable=1 has_media=1 is_media_check_automatic=1 can_poll_for_media=0 can_eject=1 can_start=0 can_stop=0 start_stop_type=shutdown sort_key=01hotplug/1401829923277712 Volume removed: 'usb0' Volume(0): usb0 Type: GProxyVolume (GProxyVolumeMonitorUDisks2) ids: class: 'device' themed icons: [drive-removable-media] [drive-removable] [drive] symbolic themed icons: [drive-removable-media-symbolic] [drive-removable-symbolic] [drive-symbolic] [drive-removable-media] [drive-removable] [drive] can_mount=1 can_eject=0 should_automount=0 sort_key=gvfs.time_detected_usec.1401830431454306 Volume added: '3.9 GB Volume' Volume(0): 3.9 GB Volume Type: GProxyVolume (GProxyVolumeMonitorUDisks2) ids: class: 'device' unix-device: '/dev/sdb1' uuid: '205A-CB39' themed icons: [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] symbolic themed icons: [drive-removable-media-usb-symbolic] [drive-removable-media-symbolic] [drive-removable-symbolic] [drive-symbolic] [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] can_mount=1 can_eject=1 should_automount=1 sort_key=gvfs.time_detected_usec.1401830432141025 $ gvfs-mount -d /dev/sdb1 Mounted /dev/sdb1 at /media/usb0 Note the fact that the disk is mounted directly at /media, and not /media/kevin. The output of gvfs-mount -io: Volume changed: '3.9 GB Volume' Volume(0): 3.9 GB Volume Type: GProxyVolume (GProxyVolumeMonitorUDisks2) ids: class: 'device' unix-device: '/dev/sdb1' uuid: '205A-CB39' themed icons: [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] symbolic themed icons: [drive-removable-media-usb-symbolic] [drive-removable-media-symbolic] [drive-removable-symbolic] [drive-symbolic] [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] can_mount=1 can_eject=1 should_automount=1 sort_key=gvfs.time_detected_usec.1401830611697541 Mount added: '3.9 GB Volume' Mount(0): 3.9 GB Volume -> file:///media/usb0 Type: GProxyMount (GProxyVolumeMonitorUDisks2) default_location=file:///media/usb0 themed icons: [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] symbolic themed icons: [drive-removable-media-usb-symbolic] [drive-removable-media-symbolic] [drive-removable-symbolic] [drive-symbolic] [drive-removable-media-usb] [drive-removable-media] [drive-removable] [drive] can_unmount=1 can_eject=1 is_shadowed=0 sort_key=gvfs.time_detected_usec.1401830646392683 Relevant output of mount: /dev/sdb1 on /media/usb0 type vfat (rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro) dmesg output: [ 5688.607615] usb 1-5: new high-speed USB device number 16 using xhci_hcd [ 5688.802774] usb 1-5: New USB device found, idVendor=12d1, idProduct=1003 [ 5688.802784] usb 1-5: New USB device strings: Mfr=2, Product=1, SerialNumber=0 [ 5688.802788] usb 1-5: Product: HUAWEI Mobile [ 5688.802792] usb 1-5: Manufacturer: HUAWEI Technology [ 5688.804090] usb-storage 1-5:1.0: USB Mass Storage device detected [ 5688.804931] scsi29 : usb-storage 1-5:1.0 [ 5688.805800] usb 1-5: USB disconnect, device number 16 [ 5695.358438] usb 1-5: new high-speed USB device number 17 using xhci_hcd [ 5695.553587] usb 1-5: New USB device found, idVendor=12d1, idProduct=1003 [ 5695.553595] usb 1-5: New USB device strings: Mfr=2, Product=1, SerialNumber=0 [ 5695.553599] usb 1-5: Product: HUAWEI Mobile [ 5695.553602] usb 1-5: Manufacturer: HUAWEI Technology [ 5695.555301] usb-storage 1-5:1.0: USB Mass Storage device detected [ 5695.555495] option 1-5:1.0: GSM modem (1-port) converter detected [ 5695.555666] usb 1-5: GSM modem (1-port) converter now attached to ttyUSB0 [ 5695.555801] usb-storage 1-5:1.1: USB Mass Storage device detected [ 5695.555982] option 1-5:1.1: GSM modem (1-port) converter detected [ 5695.556107] usb 1-5: GSM modem (1-port) converter now attached to ttyUSB1 [ 5695.556211] usb-storage 1-5:1.2: USB Mass Storage device detected [ 5695.556617] scsi32 : usb-storage 1-5:1.2 [ 5695.556808] usb-storage 1-5:1.3: USB Mass Storage device detected [ 5695.557609] scsi33 : usb-storage 1-5:1.3 [ 5696.557506] scsi 32:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 [ 5696.559513] scsi 33:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2 [ 5696.569016] sr0: scsi-1 drive [ 5696.569390] sr 32:0:0:0: Attached scsi CD-ROM sr0 [ 5696.570408] sr 32:0:0:0: Attached scsi generic sg1 type 5 [ 5696.570736] sd 33:0:0:0: Attached scsi generic sg2 type 0 [ 5696.579617] sd 33:0:0:0: [sdb] Attached SCSI removable disk [ 5696.611396] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 16 ep 8 with no TDs queued? [ 5708.807901] sd 33:0:0:0: [sdb] 7710720 512-byte logical blocks: (3.94 GB/3.67 GiB) [ 5708.814010] sd 33:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 5708.830600] sdb: sdb1 [ 5710.388431] FAT-fs (sdb1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! [ 5710.407030] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. -- System Information: Debian Release: jessie/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org