PDA

Bekijk de volledige versie : HP photosmart 7660 and mounting of CF in memory card reader



jasa
04-05-2006, 00:30
Hi,

I have used my WL500b with USB Flash Disk in the past successfully. Now I am trying to connect HP photosmart 7660 to WL500b and share it. The printer works fine over USB but I need to get working also memory card reader with Compact Flash cards. I made good progress, but I miss information about the way how auto-mounting of USB Mass Storage Devices works. Could you help me, please?

I have found following in the system log:


Jan 1 01:00:09 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 1 01:00:09 kernel: Vendor: HP Model: photosmart 7600 Rev: 1.00
Jan 1 01:00:09 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 1 01:00:09 kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Jan 1 01:00:09 kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Jan 1 01:00:09 kernel: sda: Write Protect is off
Jan 1 01:00:09 kernel: Partition check:
Jan 1 01:00:09 kernel: p1 p2 p3 p4
Jan 1 01:00:09 kernel: USB Mass Storage support registered.

.
.
.

May 4 00:40:54 kernel: scsi0: ERROR on channel 0, id 0, lun 0, CDB: 0x28 00 64 6e 61 22 00 00 02 00
May 4 00:40:54 kernel: Current sd08:01: sns = 70 3
May 4 00:40:54 kernel: ASC=11 ASCQ=11
May 4 00:40:54 kernel: Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0c 0x00 0x00 0x00 0x00 0x11 0x11 0x00 0x00 0x00 0x00 0x00 0x00
May 4 00:40:54 kernel: I/O error: dev 08:01, sector 2
May 4 00:40:54 kernel: EXT3-fs: unable to read superblock
May 4 00:40:54 kernel: MSDOS FS: Using codepage 950
May 4 00:40:54 kernel: MSDOS FS: IO charset cp950
May 4 00:40:54 kernel: scsi0: ERROR on channel 0, id 0, lun 0, CDB: 0x28 00 64 6e 61 20 00 00 01 00
May 4 00:40:54 kernel: Current sd08:01: sns = 70 3
May 4 00:40:54 kernel: ASC=11 ASCQ=11
May 4 00:40:54 kernel: Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0c 0x00 0x00 0x00 0x00 0x11 0x11 0x00 0x00 0x00 0x00 0x00 0x00
May 4 00:40:54 kernel: I/O error: dev 08:01, sector 0
May 4 00:40:54 kernel: FAT: unable to read boot sector
May 4 00:40:54 kernel: FAT: freeing iocharset=cp950
May 4 00:40:54 kernel: scsi0: ERROR on channel 0, id 0, lun 0, CDB: 0x28 00 64 6e 61 20 00 00 01 00
May 4 00:40:54 kernel: Current sd08:01: sns = 70 3
May 4 00:40:54 kernel: ASC=11 ASCQ=11
May 4 00:40:54 kernel: Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0c 0x00 0x00 0x00 0x00 0x11 0x11 0x00 0x00 0x00 0x00 0x00 0x00
May 4 00:40:54 kernel: I/O error: dev 08:01, sector 0
May 4 00:40:54 kernel: FAT: unable to read boot sector
May 4 00:40:55 kernel: scsi0: ERROR on channel 0, id 0, lun 0, CDB: 0x28 00 64 6e 61 20 00 00 01 00
May 4 00:40:55 kernel: Current sd08:01: sns = 70 3
May 4 00:40:55 kernel: ASC=11 ASCQ=11
May 4 00:40:55 kernel: Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0c 0x00 0x00 0x00 0x00 0x11 0x11 0x00 0x00 0x00 0x00 0x00 0x00
May 4 00:40:55 kernel: I/O error: dev 08:01, sector 0
May 4 00:40:55 kernel: NTFS: Reading super block failed
May 4 00:40:55 kernel: scsi0: ERROR on channel 0, id 0, lun 0, CDB: 0x28 00 77 20 79 67 00 00 02 00
May 4 00:40:55 kernel: Current sd08:02: sns = 70 3
May 4 00:40:55 kernel: ASC=11 ASCQ=11
May 4 00:40:55 kernel: Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0c 0x00 0x00 0x00 0x00 0x11 0x11 0x00 0x00 0x00 0x00 0x00 0x00
May 4 00:40:55 kernel: I/O error: dev 08:02, sector 2
.
.
.

It seems that it tries to mount devices dev 08:01 - 08:04

The memory card is not mounted and it is therefore not accessible through FTP.

I have found following devices:

[admin@(none) root]$ ls -l /dev/scsi/host0/bus0/target0/lun0
brw------- 1 admin root 8, 0 Jan 1 1970 disc
brw------- 1 admin root 8, 1 Jan 1 1970 part1
brw------- 1 admin root 8, 2 Jan 1 1970 part2
brw------- 1 admin root 8, 3 Jan 1 1970 part3
brw------- 1 admin root 8, 4 Jan 1 1970 part4

Mounting of part1-part4 fails, but mount of disc is SUCCESSFUL!

[admin@(none) root]$ mount /dev/scsi/host0/bus0/target0/lun0/disc /tmp/mnt
[admin@(none) root]$ ls /tmp/mnt
dcim

It seems that the router tries to mount partitions 1-4 but does not try to mount whole disk. Is there a chance how to change it?

Thanks in advance for help.

Jasa


My firmware: 1.9.2.7-7c

BTW. I have compiled hypertunnel server (hts) for WL500b for tunneling of connection through HTTP proxy. Just in case anybody was interested in it.

PB_TLS
04-05-2006, 08:43
I need to get working also memory card reader with Compact Flash cards. I made good progress, but I miss information about the way how auto-mounting of USB Mass Storage Devices works.

I have the same kind of problem with the stupid idea of sharing memory cards (CF, SD, etc.) through a card reader connected to USB port of my WL500G (Oleg's 1.9.2.7c FW)

At the moment, I'm obliged to manually mount the device through telnet each time I change a card.

Thus, I'm for sure interrested in an automatic solution...

Oleg
04-05-2006, 10:47
You need to create MBR record on the card and format first partition.

jasa
04-05-2006, 13:46
I am affraid that MBR will be not the solution. The memory card is formated in a camera and camera may have problems with cards formated in different device. I have some doubts and also bad expirience from past.

I will give it a try, but I do not want too lose important pictures in future because of wrong decision now.

I see mounting of memory card without MBR as much safer and more feasible option. You know, cameras are not usualy powered by Linux and source code is rarely included so I cannot correct the camera firmware ;) .

Thanks,
Jakub