[Gllug] help with USB mass storage
salsaman at xs4all.nl
salsaman at xs4all.nl
Tue Feb 10 14:12:55 UTC 2009
On Tue, February 10, 2009 13:37, salsaman at xs4all.nl wrote:
> 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
>
>
A couple of other points - I looked at the windows CD that comes with it -
there are no special drivers for the device.
Second, I had the idea to do a dd of the entire partition, however:
dd if=/dev/sdb of=diskcopy bs=1M count=2048
dd: reading `/dev/sdb': Input/output error
2+1 records in
2+1 records out
2150400 bytes (2.2 MB) copied, 5.03409 s, 427 kB/s
and dmesg shows:
[64140.237759] sd 8:0:0:0: [sdb] Result: hostbyte=DID_ERROR
driverbyte=DRIVER_OK,SUGGEST_OK
[64140.237769] end_request: I/O error, dev sdb, sector 4600
salsaman.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list