Comment 21 for bug 953160

Revision history for this message
Jeff Lane  (bladernr) wrote :

and as luck would have it, I have a Lenovo that shows the same SD card used in my Alienware as a USB disk :)

Here's syslog from when I inserted the SD card:
[67049.349883] usb 2-1.1: new high-speed USB device number 3 using ehci_hcd
[67049.521612] Initializing USB Mass Storage driver...
[67049.521716] usbcore: registered new interface driver usb-storage
[67049.521719] USB Mass Storage support registered.
[67049.646771] usbcore: registered new interface driver uas
[67049.658063] scsi6 : usb-storage 2-1.1:1.0
[67049.658205] usbcore: registered new interface driver ums-realtek
[67050.660388] scsi 6:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANSI: 0 CCS
[67050.661936] sd 6:0:0:0: Attached scsi generic sg1 type 0
[67051.577040] sd 6:0:0:0: [sdb] 7729152 512-byte logical blocks: (3.95 GB/3.68 GiB)
[67051.577912] sd 6:0:0:0: [sdb] Write Protect is off
[67051.577918] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[67051.578780] sd 6:0:0:0: [sdb] No Caching mode page present
[67051.578787] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[67051.582166] sd 6:0:0:0: [sdb] No Caching mode page present
[67051.582172] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[67051.584035] sdb: sdb1
[67051.586774] sd 6:0:0:0: [sdb] No Caching mode page present
[67051.586780] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[67051.586785] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[67052.363219] FAT-fs (sdb1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1)

That last line is probably from me screwing the filesystem by doing strange partitioning on it from time to time for other testing.

So here's udisks from my Lenovo:

bladernr@GarbageScow:~$ udisks --show-info /dev/sdb
Showing information for /org/freedesktop/UDisks/devices/sdb
  native-path: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/host6/target6:0:0/6:0:0:0/block/sdb
  device: 8:16
  device-file: /dev/sdb
    presentation: /dev/sdb
    by-id: /dev/disk/by-id/usb-Generic-_Multi-Card_20071114173400000-0:0
    by-path: /dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.1:1.0-scsi-0:0:0:0
  detected at: Tue 13 Mar 2012 12:19:40 PM EDT
  system internal: 0
  removable: 1
  has media: 1 (detected at Tue 13 Mar 2012 12:19:40 PM EDT)
    detects change: 1
    detection by polling: 1
    detection inhibitable: 1
    detection inhibited: 0
  is read only: 0
  is mounted: 0
  mount paths:
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  automount hint:
  size: 3957325824
  block size: 512
  job underway: no
  usage:
  type:
  version:
  uuid:
  label:
  partition table:
    scheme: mbr
    count: 1
  drive:
    vendor: Generic-
    model: Multi-Card
    revision: 1.00
    serial: 20071114173400000
    WWN:
    detachable: 1
    can spindown: 0
    rotational media: Yes, unknown rate
    write-cache: unknown
    ejectable: 0
    adapter: Unknown
    ports:
    similar devices:
    media:
      compat:
    interface: usb
    if speed: 480000000 bits/s
    ATA SMART: not available

Not specifically on this machine that, like Haggai's media: and compat: are empty, interface says usb. But unlike his, drive vendor is Generic, drive model is Multi-Card. His said drive vendor Single, drive model Flash Reader. Same for the by-id field, which just reflects the drive vendor and drive model fields :(

That means we can't rely on those fields to provide reliable data, they are apparently OEM fill-in fields.