Extra info:
The second USB drive could not be formatted NTFS. Formatting the USB Flash 
Drive in Windows XP to FAT32 (vfat) worked at first. It opened correctly in 
Windows 7, then Linux, where I copied files to the root folder, then in Windows 
7, where I added a folder.
However, when the drive was opened in (yet another) computer running Lubuntu 
12.04.1 the stick could not mounted or read. Data seems to be lost again.

hwinfo:
==/==
  89: udi = 
'/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B_if0_scsi_host_scsi_device_lun0'
  scsi.lun = 0 (0x0)
  scsi.model = 'Flash Disk'
  scsi.vendor = 'Generic'
  scsi.type = 'disk'
  linux.hotplug_type = 2 (0x2)
  linux.subsystem = 'scsi'
  info.subsystem = 'scsi'
  info.product = 'SCSI Device'
  info.udi = 
'/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B_if0_scsi_host_scsi_device_lun0'
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.4/1-5.4:1.0/host4/target4:0:0/4:0:0:0'
  info.parent = 
'/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B_if0_scsi_host'
  info.linux.driver = 'sd'
  scsi.host = 4 (0x4)
  scsi.bus = 0 (0x0)
  scsi.target = 0 (0x0)

  90: udi = 
'/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B_if0_scsi_host'
  linux.hotplug_type = 2 (0x2)
  linux.subsystem = 'scsi_host'
  info.subsystem = 'scsi_host'
  info.product = 'SCSI Host Adapter'
  info.udi = 
'/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B_if0_scsi_host'
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.4/1-5.4:1.0/host4'
  info.parent = '/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B_if0'
  scsi_host.host = 4 (0x4)
  info.category = 'scsi_host'
  info.capabilities = { 'scsi_host' }

  91: udi = '/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B_if0'
  linux.hotplug_type = 2 (0x2)
  linux.subsystem = 'usb'
  info.subsystem = 'usb'
  info.product = 'USB Mass Storage Interface'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B_if0'
  usb.linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.4/1-5.4:1.0'
  usb.configuration_value = 1 (0x1)
  usb.num_configurations = 1 (0x1)
  usb.num_interfaces = 1 (0x1)
  usb.device_class = 0 (0x0)
  usb.device_subclass = 0 (0x0)
  usb.device_protocol = 0 (0x0)
  usb.vendor_id = 1423 (0x58f)
  usb.product_id = 25479 (0x6387)
  usb.product = 'USB Mass Storage Interface'
  usb.vendor = 'Alcor Micro Corp.'
  usb.max_power = 100 (0x64)
  usb.device_revision_bcd = 258 (0x102)
  usb.linux.device_number = 7 (0x7)
  usb.serial = '3BCAD97B'
  usb.version = 2.00000
  usb.is_self_powered = false
  usb.can_wake_up = false
  usb.bus_number = 1 (0x1)
  usb.speed = 480.000
  usb.num_ports = 0 (0x0)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.4/1-5.4:1.0'
  info.parent = '/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B'
  usb.interface.subclass = 6 (0x6)
  usb.interface.number = 0 (0x0)
  info.linux.driver = 'usb-storage'
  usb.interface.protocol = 80 (0x50)
  usb.interface.class = 8 (0x8)

  92: udi = '/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B'
  info.vendor = 'Alcor Micro Corp.'
  linux.hotplug_type = 2 (0x2)
  linux.subsystem = 'usb'
  usb_device.linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.4'
  usb_device.configuration_value = 1 (0x1)
  usb_device.num_configurations = 1 (0x1)
  usb_device.num_interfaces = 1 (0x1)
  usb_device.device_class = 0 (0x0)
  usb_device.device_subclass = 0 (0x0)
  usb_device.device_protocol = 0 (0x0)
  usb_device.vendor_id = 1423 (0x58f)
  usb_device.product_id = 25479 (0x6387)
  info.subsystem = 'usb_device'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_58f_6387_3BCAD97B'
  usb_device.product = 'Transcend JetFlash Flash Drive'
  usb_device.vendor = 'Alcor Micro Corp.'
  usb_device.max_power = 100 (0x64)
  usb_device.device_revision_bcd = 258 (0x102)
  usb_device.linux.device_number = 7 (0x7)
  usb_device.serial = '3BCAD97B'
  usb_device.version = 2.00000
  usb_device.is_self_powered = false
  usb_device.can_wake_up = false
  usb_device.bus_number = 1 (0x1)
  linux.device_file = '/dev/bus/usb/001/007'
  usb_device.speed = 480.000
  usb_device.num_ports = 0 (0x0)
  info.product = 'Transcend JetFlash Flash Drive'
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.4'
  info.parent = '/org/freedesktop/Hal/devices/usb_device_4b4_6560_noserial'
  info.linux.driver = 'usb'
==/==

dmesg
==/==
[  323.836152] usb 1-5.4: new high-speed USB device number 7 using ehci_hcd
[  323.964320] Initializing USB Mass Storage driver...
[  323.966391] scsi4 : usb-storage 1-5.4:1.0
[  323.966604] usbcore: registered new interface driver usb-storage
[  323.966610] USB Mass Storage support registered.
[  323.980593] usbcore: registered new interface driver uas
[  324.966087] scsi 4:0:0:0: Direct-Access     Generic  Flash Disk       8.07 
PQ: 0 ANSI: 2
[  324.967369] sd 4:0:0:0: Attached scsi generic sg4 type 0
[  324.971828] sd 4:0:0:0: [sdd] 3893248 512-byte logical blocks: (1.99 GB/1.85 
GiB)
[  324.972346] sd 4:0:0:0: [sdd] Write Protect is off
[  324.972353] sd 4:0:0:0: [sdd] Mode Sense: 03 00 00 00
[  324.973769] sd 4:0:0:0: [sdd] No Caching mode page present
[  324.973776] sd 4:0:0:0: [sdd] Assuming drive cache: write through
[  324.978228] sd 4:0:0:0: [sdd] No Caching mode page present
[  324.978240] sd 4:0:0:0: [sdd] Assuming drive cache: write through
[  324.979383]  sdd: sdd1
[  324.981934] sd 4:0:0:0: [sdd] No Caching mode page present
[  324.981943] sd 4:0:0:0: [sdd] Assuming drive cache: write through
[  324.981952] sd 4:0:0:0: [sdd] Attached SCSI removable disk
[ 2139.586607] sdd: detected capacity change from 1993342976 to 0
[ 2142.460827] usb 1-5.4: USB disconnect, device number 7
==end==

The drive is recognized as a SCSI removable disk. I am not sure, but may
it have to do with that? See e.g. for the same  usb_device.vendor_id:
http://lists.freebsd.org/pipermail/freebsd-
gnome/2008-January/019095.html (hal: usb flash drive is seen as scsi
device)

The drive is recognized in Windows 7 with system errors. Checking
Removable Disk with fix first stalls, the next run it says that there
are no errors, but I see no files or folders, but file space is taken by
'something'. Back to Linux the system reports 2 folders: FOUND.000 with
9999 files (FILExxxx.CHK), and FOUND.001, with 6845 files
(FILExxxx.CHK). I think that the file system is broken.

The file system corruption seems to happen in Ubuntu, but it may be
hardware specific. If it happens with more hardware, I think that this
is a severe bug.

The first drive did not give any problems anymore. NB It was a while ago
that I formatted this disk. According to the info it seems to be FAT16
now, but it works.

hwinfo
==/==
  0: udi = '/org/freedesktop/Hal/devices/volume_uuid_F482_6D0A_0'
  info.interfaces = { 'org.freedesktop.Hal.Device.Volume' }
  linux.hotplug_type = 3 (0x3)
  volume.ignore = false
  org.freedesktop.Hal.Device.Volume.method_names = { 'Mount', 'Unmount', 
'Eject' }
  org.freedesktop.Hal.Device.Volume.method_signatures = { 'ssas', 'as', 'as' }
  org.freedesktop.Hal.Device.Volume.method_argnames = { 'mount_point fstype 
extra_options', 'extra_options', 'extra_options' }
  org.freedesktop.Hal.Device.Volume.method_execpaths = { 'hal-storage-mount', 
'hal-storage-unmount', 'hal-storage-eject' }
  info.product = 'Volume (vfat)'
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_F482_6D0A_0'
  volume.unmount.valid_options = { 'lazy' }
  volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 
'nodiratime', 'relatime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 
'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 
'flush' }
  block.storage_device = 
'/org/freedesktop/Hal/devices/storage_serial_Ut165_USB2FlashStorage_080306d69c008b_0_0_0'
  volume.fstype = 'vfat'
  volume.fsusage = 'filesystem'
  volume.fsversion = 'FAT16'
  volume.uuid = 'F482-6D0A'
  volume.label = ''
  volume.mount_point = ''
  volume.is_mounted = false
  block.device = '/dev/sdd'
  block.major = 8 (0x8)
  block.minor = 48 (0x30)
  block.is_volume = true
  volume.linux.is_device_mapper = false
  volume.is_disc = false
  volume.is_mounted_read_only = false
  volume.size = 2021654528ull (0x78800000ull)
  volume.block_size = 512 (0x200)
  volume.is_partition = false
  volume.num_blocks = 3948544ull (0x3c4000ull)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.3/1-5.3:1.0/host7/target7:0:0/7:0:0:0/block/sdd/fakevolume'
  info.parent = 
'/org/freedesktop/Hal/devices/storage_serial_Ut165_USB2FlashStorage_080306d69c008b_0_0_0'
  info.category = 'volume'
  info.capabilities = { 'volume', 'block' }

  1: udi = '/org/freedesktop/Hal/devices/volume_uuid_F482_6D0A'
  info.interfaces = { 'org.freedesktop.Hal.Device.Volume' }
  linux.hotplug_type = 3 (0x3)
  volume.ignore = false
  org.freedesktop.Hal.Device.Volume.method_names = { 'Mount', 'Unmount', 
'Eject' }
  org.freedesktop.Hal.Device.Volume.method_signatures = { 'ssas', 'as', 'as' }
  org.freedesktop.Hal.Device.Volume.method_argnames = { 'mount_point fstype 
extra_options', 'extra_options', 'extra_options' }
  org.freedesktop.Hal.Device.Volume.method_execpaths = { 'hal-storage-mount', 
'hal-storage-unmount', 'hal-storage-eject' }
  info.product = 'Volume (vfat)'
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_F482_6D0A'
  volume.unmount.valid_options = { 'lazy' }
  volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 
'nodiratime', 'relatime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 
'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 
'flush' }
  block.storage_device = 
'/org/freedesktop/Hal/devices/storage_serial_Ut165_USB2FlashStorage_080306d69c008b_0_0'
  volume.fstype = 'vfat'
  volume.fsusage = 'filesystem'
  volume.fsversion = 'FAT16'
  volume.uuid = 'F482-6D0A'
  volume.label = ''
  volume.mount_point = '/media/F482-6D0A'
  volume.is_mounted = true
  block.device = '/dev/sdd'
  block.major = 8 (0x8)
  block.minor = 48 (0x30)
  block.is_volume = true
  volume.linux.is_device_mapper = false
  volume.is_disc = false
  volume.is_mounted_read_only = false
  volume.size = 2021654528ull (0x78800000ull)
  volume.block_size = 512 (0x200)
  volume.is_partition = false
  volume.num_blocks = 3948544ull (0x3c4000ull)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.3/1-5.3:1.0/host7/target7:0:0/7:0:0:0/block/sdd/fakevolume'
  info.parent = 
'/org/freedesktop/Hal/devices/storage_serial_Ut165_USB2FlashStorage_080306d69c008b_0_0'
  info.category = 'volume'
  info.capabilities = { 'volume', 'block' }

52: SCSI 700.0: 10600 Disk
  [Created at block.243]
  UDI: 
/org/freedesktop/Hal/devices/storage_serial_Ut165_USB2FlashStorage_080306d69c008b_0_0
  Unique ID: xMQR.sVb3A2xb6F6
  Parent ID: 5YuN.6ts_j+6fc_2
  SysFS ID: /class/block/sdd
  SysFS BusID: 7:0:0:0
  SysFS Device Link: 
/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.3/1-5.3:1.0/host7/target7:0:0/7:0:0:0
  Hardware Class: disk
  Model: "Ut165 USB2FlashStorage"
  Vendor: usb 0x1307 "Ut165"
  Device: usb 0x0165 "USB2FlashStorage"
  Revision: "0.00"
  Serial ID: "080306d69c008b"
  Driver: "usb-storage", "sd"
  Driver Modules: "usb_storage"
  Device File: /dev/sdd (/dev/sg4)
  Device Files: /dev/sdd, 
/dev/disk/by-id/usb-Ut165_USB2FlashStorage_080306d69c008b-0:0, 
/dev/disk/by-path/pci-0000:00:1d.7-usb-0:5.3:1.0-scsi-0:0:0:0, 
/dev/disk/by-uuid/F482-6D0A
  Device Number: block 8:48-8:63 (char 21:4)
  Features: Hotpluggable
  Speed: 480 Mbps
  Module Alias: "usb:v1307p0165d0100dc00dsc00dp00ic08isc06ip50"
  Driver Info #0:
    Driver Status: uas is active
    Driver Activation Cmd: "modprobe uas"
  Drive status: no medium
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #19 (USB Controller)
==/==

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1083080

Title:
  mounting USB flash memory corrupts FAT

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/1083080/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to