On Sunday 11 January 2004 02:58am, Richard Charlewood wrote: > Hi, > > I hope you can help me. I have been struggling to read the memory > stick of my wife's Sony handycam DCR TRV38 to copy jpeg files (not > video) off it. The driver that is supposed to work is the usb-storage > driver with ID 0x054c:0x002e. > > I am running RedHat 7.0 on an old Pentium-1 with various RedHat 7.3 > patches and the latest 2.4 kernel (2.4.20-28.7) installed as an rpm > (I've never tried installing a kernel manually yet). Everything seems > to be working until I try to mount the /dev/sda and then I get a > screenful of errors. I've attached the following text files: > > 1. dmesg output > 2. /proc/bus/usb/devices > 3. /proc/scsi/scsi > 4. /proc/scsi/usb-storage-0/0 > 5. the error message I get when I mount /dev/sda - the first part was > lost as it scrolled off the screen :( > > From looking at the web this should be a very straight forward job to > read the memory stick through the camera. I was able to mount it once > and even copy a single file across before the error kicked in and I > have had progressively less success since then. I even reformatted the > memory stick (even though Windows XP was able to read the memory stick > without a problem, admittedly not through the camera. > > Is this a problem that some file needs updating that is not part of > the kernel? > > Your help will be extremely gratefully received! > Richard
Hi Richard, I own the exact same model of Sony camcorder (DCR-TRV38) but had never actually used the memory stick, since my 5+ year-old Kodak still-image digital camera provides better resolution. Nevertheless, your post motivated me to finally give the memory stick a try. :^) I had no problem accessing the memory stick whatsoever. I'm running Slackware 9.1 (2.4.22 kernel) and all I had to do was plug in the memory stick, plug in the USB cable, and switch the camcorder to the 'MEMORY' mode. The memory stick I used was the 8MB stick that comes with the camcorder and I've never formatted it. It was auto-detected (at '/dev/sdc'). Here's the '/var/log/messages' output (with leading date/time and hostname removed for line length limitations): kernel: hub.c: new USB device 00:07.2-2, assigned address 10 kernel: scsi4 : SCSI emulation for USB Mass Storage devices kernel: sdc: sdc1 usb.agent[1216]: missing kernel or user mode driver usb-storage A command of 'cat /proc/bus/usb/devices' yields: T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 14 Spd=12 MxCh= 0 D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=054c ProdID=002e Rev= 2.00 S: Manufacturer=Sony DSC S: Product=Sony C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 2mA I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=ff Prot=01 Driver=usb-storage E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=255ms A command of 'lsusb' yields: Bus 001 Device 011: ID 054c:002e Sony Corp. Sony HandyCam \ MemoryStick Reader I ran 'fdisk -l /dev/sdc' and got this: Disk /dev/sdc: 8 MB, 8110080 bytes 2 heads, 16 sectors/track, 495 cylinders Units = cylinders of 32 * 512 = 16384 bytes Device Boot Start End Blocks Id System /dev/sdc1 * 1 494 7891+ 1 FAT12 So I mounted the partition with 'mount /dev/sdc1 /mnt' and all the default files that come on the memory stick were there: ==> ls -laR /mnt /mnt: total 28 drwxr--r-- 3 root root 16384 Dec 31 1969 . drwxr-xr-x 27 root root 4096 Dec 5 15:50 .. drwxr--r-- 3 root root 8192 Nov 9 2002 dcim -r-xr--r-- 1 root root 0 Apr 1 2003 memstick.ind /mnt/dcim: total 32 drwxr--r-- 3 root root 8192 Nov 9 2002 . drwxr--r-- 3 root root 16384 Dec 31 1969 .. drwxr--r-- 2 root root 8192 Nov 9 2002 101msdcf /mnt/dcim/101msdcf: total 736 drwxr--r-- 2 root root 8192 Nov 9 2002 . drwxr--r-- 3 root root 8192 Nov 9 2002 .. -r-xr--r-- 1 root root 29047 Apr 1 2003 dsc00001.jpg -r-xr--r-- 1 root root 28778 Apr 1 2003 dsc00002.jpg -r-xr--r-- 1 root root 28820 Apr 1 2003 dsc00003.jpg -r-xr--r-- 1 root root 29273 Apr 1 2003 dsc00004.jpg -r-xr--r-- 1 root root 28517 Apr 1 2003 dsc00005.jpg -r-xr--r-- 1 root root 29065 Apr 1 2003 dsc00006.jpg -r-xr--r-- 1 root root 28940 Apr 1 2003 dsc00007.jpg -r-xr--r-- 1 root root 27852 Apr 1 2003 dsc00008.jpg -r-xr--r-- 1 root root 28392 Apr 1 2003 dsc00009.jpg -r-xr--r-- 1 root root 27689 Apr 1 2003 dsc00010.jpg -r-xr--r-- 1 root root 28623 Apr 1 2003 dsc00011.jpg -r-xr--r-- 1 root root 27747 Apr 1 2003 dsc00012.jpg -r-xr--r-- 1 root root 29361 Apr 1 2003 dsc00013.jpg -r-xr--r-- 1 root root 41184 Apr 1 2003 dsc00014.jpg -r-xr--r-- 1 root root 41370 Apr 1 2003 dsc00015.jpg -r-xr--r-- 1 root root 41081 Apr 1 2003 dsc00016.jpg -r-xr--r-- 1 root root 28147 Apr 1 2003 dsc00017.jpg -r-xr--r-- 1 root root 28847 Apr 1 2003 dsc00018.jpg -r-xr--r-- 1 root root 41913 Apr 1 2003 dsc00019.jpg -r-xr--r-- 1 root root 42239 Apr 1 2003 dsc00020.jpg (All of those JPG files are just stock cartoony 'frame' photos that come with the camcorder's memory stick.) I later took a couple of still shots at both resolutions (640x480 and 1152x864) and a short MJPEG movie at 320x240. I then successfully transferred those files to my Linux PC and they viewed/played just fine. I took a look through the files you sent and don't see anything glaringly wrong (except the erroneous use '/dev/sda' instead of the correct '/dev/ sda1', as already correctly pointed out by Stephen Gowdy). On Monday 12 January 2004 04:54am, Richard Charlewood wrote: > Thanks for the comment about mounting /dev/sda - the only problem is that > when I try to mount /dev/sda1 or /dev/scsi0 (as suggested by the messages > file), I get "mount: special device scsi0 [or sda1] does not exist". The > only partitions that I can see in the messages file at boot-up are: > Jan 11 10:32:58 localhost kernel: Partition check: > Jan 11 10:32:58 localhost kernel: hda: hda1 > Jan 11 10:32:58 localhost kernel: hdb: hdb1 hdb2 < hdb5 > > (hda and hdb are two ide hard-drives). I just know I'm missing some > point here - I just can't find it..! Do you have the device node defined? That is, does '/dev/sda1' exist on your machine, with the proper permissions? Mine is: brw-rw-rw- 1 root disk 8, 1 Apr 29 1995 sda1 As a test, when I intentionally try to mount a non-existant device node (e.g. '/dev/sda16'), I get the same error you did: ==> mount /dev/sda16 /mnt mount: special device /dev/sda16 does not exist I cannot remember if there are other conditions which cause that same error message or not, but it's certainly worth checking to see if that's the problem with mounting '/dev/sda1'. The only other difference I saw was that you specified '-t vfat' on the 'mount' command and I just used the automatic filesystem detection of 'mount' (i.e. by not specifying any '-t' option). Note that page 100 of the DCR-TRV38 manual says: The "Memory Stick" formatted by Windows OS or Macintosh computers does not have a guaranteed compatibility with your camcorder. I'd be surprised if that's the problem, but since I have only 1 memory stick to my name, I'm not willing to re-format it under Windows to prove the manual wrong! ;^) Notice that the filesystem on the memory stick as originally delivered is 'FAT12'. Are you getting something similar from an 'fdisk -l /dev/sda' command? Maybe the camcorder is picky about the directory structure on the memory stick (???). Have you replicated that directory setup on your re-formatted memory stick? Maybe you should use the camcorder to format the memory stick (see page 172 of the manual). I think you can still get a PDF version of the manual at: http://www.ita.sel.sony.com/support/dvimag/minidv/MiniDV Query_1.html The only other thing I can think of is to use a newer kernel, but that's kind of the "I'm otherwise out of ideas" recommendation! FWIW, 2.4.24 should still be the latest as of this writing. Anyway, let me know if there's something you'd like me to try or if you have any other questions. I suspect we can get this working with just a bit more detective work. Of course, if any of this works (or if it all fails to work), please post your results back to this USB list so that other people can find this relevant information in the archives in the future. HTH.... Good luck! Bill Marr ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users