OK, I don't know what's going on here, at first I thought it was a problem I remember having some time ago where I couldn't mount a vfat partition because it had some flag set that it had not been cleanly removed. I remember there was a way to fix this, but I can't find it now. In any case, I don't think that is the problem here, and I've been searching for a few days with no luck.
This is an SDHC card (32GB) which I use for one of my cameras (I have another 32GB card I used for another camera, with the same USB adapter, and that works fine in linux) so I can see the files from within the camera no problem, but when I plug the adapter + card in linux, I get no device appearing in Konqueror. So I try to do:
# mount /dev/sdd /d/try/2 mount: you must specify the filesystem type # mount -t vfat /dev/sdd /media/sdcard mount: wrong fs type, bad option, bad superblock on /dev/sdd, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
fdisk -l /dev/sdd Disk /dev/sdd: 31.9 GB, 31914983424 bytes 255 heads, 63 sectors/track, 3880 cylinders, total 62333952 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdd1 8192 62333951 31162880 c W95 FAT32 (LBA)
# ls /dev/sdd* /dev/sdd
So there's no /dev/sddX devices listed, though
fdisk says they exist!
gparted shows me the /dev/sdd1 partition no problem (but there's 4MB of free space before it). So this is where I suspect there is something different going on. Is it possible this free space is causing the problems? Why would it? Would resizing the partition to use up that 4mb (how did that even happen, though?) fix all this? And would this then cause the data to somehow now not be readable from the camera? Or worse, irretrievably corrupted? I'm pretty sure I have been able to access this card before from within linux since I think I even moved some files around (it has some photos from the other camera). So it's strange that I can't access it now.
Basically, I would like to know how to fix this (as non-destructively as possible), and what is causing the problem (to avoid it in the future). For reference I have included
# dmesg|tail -30 [3783978.490032] usb 1-5: new high-speed USB device number 44 using ehci_hcd [3783978.608523] usb 1-5: New USB device found, idVendor=05e3, idProduct=0727 [3783978.608528] usb 1-5: New USB device strings: Mfr=3, Product=4, SerialNumber=2 [3783978.608530] usb 1-5: Product: USB Storage [3783978.608531] usb 1-5: Manufacturer: Generic [3783978.608533] usb 1-5: SerialNumber: 000000000207 [3783978.609406] scsi29 : usb-storage 1-5:1.0 [3783979.610445] scsi 29:0:0:0: Direct-Access Generic STORAGE DEVICE 0207 PQ: 0 ANSI: 0 [3783979.613096] sd 29:0:0:0: Attached scsi generic sg3 type 0 [3783979.773160] sd 29:0:0:0: [sdd] 62333952 512-byte logical blocks: (31.9 GB/29.7 GiB) [3783979.774295] sd 29:0:0:0: [sdd] Write Protect is off [3783979.774300] sd 29:0:0:0: [sdd] Mode Sense: 0b 00 00 08 [3783979.775406] sd 29:0:0:0: [sdd] No Caching mode page present [3783979.775410] sd 29:0:0:0: [sdd] Assuming drive cache: write through [3783979.779038] sd 29:0:0:0: [sdd] No Caching mode page present [3783979.779048] sd 29:0:0:0: [sdd] Assuming drive cache: write through [3783981.471143] sd 29:0:0:0: [sdd] Unhandled sense code [3783981.471147] sd 29:0:0:0: [sdd] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [3783981.471150] sd 29:0:0:0: [sdd] Sense Key : Medium Error [current] [3783981.471153] sd 29:0:0:0: [sdd] Add. Sense: Data phase CRC error detected [3783981.471157] sd 29:0:0:0: [sdd] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00 [3783981.471162] end_request: I/O error, dev sdd, sector 0 [3783981.471166] Buffer I/O error on device sdd, logical block 0 [3783981.482542] Dev sdd: unable to read RDB block 0 [3783981.482548] sdd: unable to read partition table [3783981.486264] sd 29:0:0:0: [sdd] No Caching mode page present [3783981.486267] sd 29:0:0:0: [sdd] Assuming drive cache: write through [3783981.486269] sd 29:0:0:0: [sdd] Attached SCSI removable disk