LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-17-2008, 09:22 AM   #1
TreeHugger
Member
 
Registered: Jul 2003
Location: London
Distribution: ubuntu, mint, debian
Posts: 112

Rep: Reputation: 15
downloading jpgs from camera fails.


Just got a problem with a new panasonic dmc-lx2.

I filled up the 1GB SD card with photos and downloaded them all first time with gphoto2 to my PC, no problems.

Then I erased all the photos in the camera using the camera facility and carried on taking some more, but I can't download the new photos.

I'm using HAL and my linux 2.6 debian system can't read the card via USB.

This is what I'm seeing in my system messages:


Code:
Feb 17 14:54:04 localhost kernel: usb 4-5.4: new full speed USB device using ehci_hcd and address 8
Feb 17 14:54:04 localhost kernel: usb 4-5.4: configuration #1 chosen from 1 choice
Feb 17 14:54:04 localhost kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Feb 17 14:54:04 localhost kernel: usb-storage: device found at 8
Feb 17 14:54:04 localhost kernel: usb-storage: waiting for device to settle before scanning
Feb 17 14:54:09 localhost kernel: scsi 5:0:0:0: Direct-Access     MATSHITA DMC-LX2          0100 PQ: 0 ANSI: 2
Feb 17 14:54:09 localhost kernel: SCSI device sda: 1953791 512-byte hdwr sectors (1000 MB)
Feb 17 14:54:09 localhost kernel: sda: Write Protect is off
Feb 17 14:54:09 localhost kernel: sda: Mode Sense: 04 00 00 00
Feb 17 14:54:09 localhost kernel: sda: assuming drive cache: write through
Feb 17 14:54:09 localhost kernel: SCSI device sda: 1953791 512-byte hdwr sectors (1000 MB)
Feb 17 14:54:09 localhost kernel: sda: Write Protect is off
Feb 17 14:54:09 localhost kernel: sda: Mode Sense: 04 00 00 00
Feb 17 14:54:09 localhost kernel: sda: assuming drive cache: write through
Feb 17 14:54:09 localhost kernel:  sda: sda1
Feb 17 14:54:09 localhost kernel:  sda: p1 exceeds device capacity
Feb 17 14:54:09 localhost kernel: sd 5:0:0:0: Attached scsi removable disk sda
Feb 17 14:54:09 localhost kernel: usb-storage: device scan complete
Feb 17 14:54:09 localhost kernel: attempt to access beyond end of device
Feb 17 14:54:09 localhost kernel: sda: rw=0, want=1953792, limit=1953791
Feb 17 14:54:09 localhost kernel: Buffer I/O error on device sda1, logical block 1953662
Is there anything I can do? My system seems OK, it's still able to read other SD cards.
 
Old 02-17-2008, 10:39 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Code:
localhost kernel: sda: assuming drive cache: write through
Feb 17 14:54:09 localhost kernel:  sda: sda1
Feb 17 14:54:09 localhost kernel:  sda: p1 exceeds device capacity
  .
  .
  .
Feb 17 14:54:09 localhost kernel: attempt to access beyond end of device
Feb 17 14:54:09 localhost kernel: sda: rw=0, want=1953792, limit=1953791
Feb 17 14:54:09 localhost kernel: Buffer I/O error on device sda1, logical block 1953662
Looks like the card needs repartitioning / reformatting.
Can you read it with another computer?
You probably will be able to recover your pictures with photorec
 
Old 02-17-2008, 01:45 PM   #3
TreeHugger
Member
 
Registered: Jul 2003
Location: London
Distribution: ubuntu, mint, debian
Posts: 112

Original Poster
Rep: Reputation: 15
OK, testdisk, great. I know that piece of software.

I managed to recover the photos.

I deleted the partition and reformatted the SD card as a FAT32 dos partition and then it would be fine. However the camera didn't like that and demanded that I let it reformat the card again. So I did, and took a couple more photos, and it's back to square one: I can't download the photos automatically with gphoto2.

I suppose I can retrieve them every time with testdisk photorec, but I get all the old photos as well which takes ages, and of course it would be nice if I could connect to the camera like normal.

What's more likely, that the card is bad or that the Panasonic DMC-LX2 is formatting it badly?
 
Old 02-17-2008, 02:03 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
How interesting:

Code:
sda: rw=0, want=1953792, limit=1953791
It's trying to get exactly one byte more than it should. This must be some type of bug. Try to look around for a fix, or e-mail the people at gphoto2 with this info.
 
Old 02-17-2008, 04:04 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I managed to recover the photos.
Good

Quote:
I deleted the partition and reformatted the SD card as a FAT32 dos partition and then it would be fine. However the camera didn't like that
Maybe it wants FAT16 ?
Quote:
What's more likely, that the card is bad or that the Panasonic DMC-LX2 is formatting it badly?
I'm not sure. Please try FAT16 (from linux, and then test it, then format it from your camera, and test it again) and tell us what happens.

@H_TeXMeX_H
Quote:
How interesting: ...
It's trying to get exactly one byte more than it should. This must be some type of bug.
Very likely, but is this bug in the camera's formatting, or TreeHugger's version of linux? At the moment, we do not know.

Last edited by tredegar; 02-17-2008 at 04:07 PM. Reason: HTML Syntax
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer of large files from USB Camera fails John Dory Linux - Hardware 3 06-26-2006 11:33 PM
pdf files to jpgs linuxhippy Slackware 3 04-04-2005 07:33 PM
Merge JPGs mddolloff Linux - Software 5 11-21-2004 07:41 AM
Need help with renaming jpgs joe_stevensen Programming 2 06-26-2004 04:29 AM
Mozilla 1.4 and jpgs. f0rmula Linux - Software 0 12-12-2003 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration