domenica 13 marzo 2016

Unable to read SD card under Ubuntu 15.10 - install exfat-fuse

A SD card, fully working when plugged in the camera, was unreadable under ubuntu

dmesg output:

[  306.770447] sd 8:0:0:0: [sdb] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  306.770456] sd 8:0:0:0: [sdb] Sense Key : Not Ready [current]
[  306.770465] sd 8:0:0:0: [sdb] <> ASC=0xff <> ASCQ=0xff
[  306.770469] sd 8:0:0:0: [sdb] CDB: 
[  306.770473] Read(10): 28 00 00 00 00 00 00 00 08 00
[  306.770490] blk_update_request: I/O error, dev sdb, sector 0
[  306.770496] Buffer I/O error on dev sdb, logical block 0, async page read

tail /var/log syslog output:
Mar 13 21:36:54 hp-notebook kernel: [  445.630036] scsi 9:0:0:0: Direct-Access     Multiple Card  Reader     1.00 PQ: 0 ANSI: 0
Mar 13 21:36:54 hp-notebook kernel: [  445.631353] sd 9:0:0:0: Attached scsi generic sg2 type 0
Mar 13 21:36:55 hp-notebook kernel: [  446.010314] sd 9:0:0:0: [sdb] Attached SCSI removable disk
Mar 13 21:36:36 hp-notebook systemd-udevd[265]: error opening USB device 'descriptors' file
Mar 13 21:36:55 hp-notebook systemd-udevd[265]: error: /dev/sdb: No medium found

marco@hp-notebook:~$ sudo ls -l /dev/disk/by-id|grep /sd.$
lrwxrwxrwx 1 root root  9 mar 13 21:38 ata-ST9500420AS_5VJ56BCJ -> ../../sda
lrwxrwxrwx 1 root root  9 mar 13 21:36 usb-Multiple_Card_Reader_058F63666433-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 mar 13 21:38 wwn-0x7744542657581436928x -> ../../sda
marco@hp-notebook:~$ sudo ls -l /dev/disk/by-id|grep /sd.$
lrwxrwxrwx 1 root root  9 mar 13 21:38 ata-ST9500420AS_5VJ56BCJ -> ../../sda
lrwxrwxrwx 1 root root  9 mar 13 21:38 wwn-0x7744542657581436928x -> ../../sda
marco@hp-notebook:~$ sudo ls -l /dev/disk/by-id|grep /sd.$
lrwxrwxrwx 1 root root  9 mar 13 21:38 ata-ST9500420AS_5VJ56BCJ -> ../../sda
lrwxrwxrwx 1 root root  9 mar 13 21:39 usb-Multiple_Card_Reader_058F63666433-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 mar 13 21:38 wwn-0x7744542657581436928x -> ../../sda
marco@hp-notebook:~$ sudo ls -l /dev/disk/by-id|grep /sd.$
lrwxrwxrwx 1 root root  9 mar 13 21:38 ata-ST9500420AS_5VJ56BCJ -> ../../sda
lrwxrwxrwx 1 root root  9 mar 13 21:39 usb-Multiple_Card_Reader_058F63666433-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 mar 13 21:38 wwn-0x7744542657581436928x -> ../../sda
marco@hp-notebook:~$ sudo ls -l /dev/disk/by-id|grep /sd.$
lrwxrwxrwx 1 root root  9 mar 13 21:38 ata-ST9500420AS_5VJ56BCJ -> ../../sda
lrwxrwxrwx 1 root root  9 mar 13 21:39 usb-Multiple_Card_Reader_058F63666433-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 mar 13 21:38 wwn-0x7744542657581436928x -> ../../sda
Turned out that installing exfat fuse was enough:

sudo apt-get install exfat-fuse