[Gllug] help with USB mass storage

salsaman at xs4all.nl salsaman at xs4all.nl
Tue Feb 10 12:37:48 UTC 2009


Hi,
I just bought a USB camera/music/video player for my girlfriend, and I am
trying to connect it to my linux desktop.

The device is a toolplayer star - made by a small company in Brazil.

If I plug the machine in, it shows up as two disks:

/dev/sdb

and /dev/sdc


the former seems to be the built in memory card, the latter is probably
the system disk, so I am not touching that.

/dev/sdb seems to be a complete partition, without partition table. fdisk
shows the following:

-------------------------------------------------

Note: sector size is 2048 (not 512)
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel with disk identifier 0xe6936831.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)

---------------------------------------------------


Of course, I am not doing a write...


Next I did a hexedit on /dev/sdb, which revealed the following:

00000000   EB 58 90 4D  53 57 49 4E  34 2E 31 00  08 04 20 00 
.X.MSWIN4.1... .
00000010   02 00 00 00  00 F8 00 00  3F 00 FF 00  2B 2D E2 04 
........?...+-..
00000020   FE 26 0F 00  E5 01 00 00  00 00 00 00  02 00 00 00 
.&..............
00000030   01 00 06 00  00 00 00 00  00 00 00 00  00 00 00 00 
................
00000040   80 00 29 78  56 34 12 4E  4F 20 4E 41  4D 45 20 20  ..)xV4.NO NAME
00000050   20 20 46 41  54 33 32 20  20 20 00 00  00 00 00 00    FAT32  
......
0


so I figured the type is vfat. In fact this seems correct, as I can mount
/dev/sdb -t vfat


Once mounted I can see all of the directories and files on the disk.


The problem occurs when copying. For example copying the photos directory:

cp: reading `/media/star/image/record/ak000006.jpg': Input/output error

I get a lot of errors like that and in fact the resulting jpegs are
truncated.


Anybody have any suggestions how to eliminate these input/output errors ?

Cheers,
Salsaman.




-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list