Memory stick weirdness

This is strange, but I’ve mentioned problems with Memory Sticks and Linux before. When I plug my camera into my PC /var/log/messages sometimes reports errors reading the camera memory:

Sep 16 11:22:52 donncha kernel: hub.c: new USB device 00:07.2-2, assigned address 13
Sep 16 11:22:55 donncha /etc/hotplug/usb.agent: Setup usb-storage for USB product 54c/10/440
Sep 16 11:22:56 donncha kernel: Device not ready. Make sure there is a disc in the drive.
Sep 16 11:22:56 donncha kernel: sda : READ CAPACITY failed.
Sep 16 11:22:56 donncha kernel: sda : status = 1, message = 00, host = 0, driver = 08
Sep 16 11:22:56 donncha kernel: Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
Sep 16 11:22:56 donncha kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Sep 16 11:22:56 donncha kernel: sda: I/O error: dev 08:00, sector 0
Sep 16 11:22:56 donncha kernel: I/O error: dev 08:00, sector 0
Sep 16 11:22:56 donncha kernel: unable to read partition table
Sep 16 11:22:57 donncha devlabel: devlabel service started/restarted

and similar problems have been reported elsewhere!
As you can see, it looks like the camera has been detected on /dev/sda.
For no better reason than “what if?” I tried /dev/sdb instead, and surprise, it worked!
Really strange..

Published by

Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Google+ and Twitter.

Leave a Reply