Solved

Sony cybershot digital camera on Ubuntu

Posted on 2006-10-21
18
1,719 Views
Last Modified: 2013-12-16
When connecting the usb cable to ubuntu it does not find it automatic

What is the way to mount usb digital camera

The camera is Sony cybershot DSC

The ubuntu is last version
0
Comment
Question by:oferweisglass
  • 9
  • 7
18 Comments
 
LVL 39

Expert Comment

by:noci
Comment Utility
after 'sudo modprobe usb-storage'
a /dev/sdXY disk should come to live. (X & Y depending on allready present
disks & partitions).

That /dev/sdXY  unit can be mounted on an empty directory (f.e. create a directory
/mnt/cybershot for this) and you can move
around that volume.
0
 

Author Comment

by:oferweisglass
Comment Utility
when connecting the cable to the computer - USB cable the system freez and only restart is working

2nd qustion - how do I check what is my already present disks and partitions?

thank you
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
@2:

  mount
or
  df
or
  ls -l /dev/hd* /dev/sd*

@1:
It might be possible to still access your system through ssh or on one of the consoles (Ctrl/Alt/F1 .. Ctrl/Alt/F6)
With Alt/F7 you should be able to switch back to full screen.

When to can access your system it woulc be interesting what 'dmesg' shows
0
 

Author Comment

by:oferweisglass
Comment Utility
not what I got it - what to do in order that the system will not freez when conneting the USB cable and openning the camera?
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
I am not sure about that....,

If there is no error message or any hint WHAT is broken, then what can you repair.
There can be lots of reasons why it would fail. Most probable because of a driver
failure the interrupts get disabled?, that would clean out a system fairly quickly.

It's a bit like your care broke..., nothing happens when you turn the key...,
you'll have to look under the hood to see what's wrong. Or call someone to help you with it. You more or less called a garage 100's/1000's of miles away, and they ask you questions to lookup specific problems what do you do...?

With the information you gave there is not a lot to go on.
Sony has several camera's, there are several ubuntu releases.
There's a lot of ways things can go wrong to solve this more info is needed:

What is your Ubuntu version
What is the kernel version (uname -a)
What is in the log files w.r.t. (interrupts/usb/...?)
last errors before the lockup.

0
 

Author Comment

by:oferweisglass
Comment Utility
Ubuntu 6.06 LTS - the Dapper Drak

Linux mycomputer-laptop 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux

and nothing is broken this - I just not sure what to write after connecting the camera
in the konsol

nothing is freez now - I just need to find what to write.

I wrote
sudo modprobe usb-storage and now it is back to the command line

also in the camara screen it writes USB mode connecting which means it is connecting.

can you please write me how to create the dir and is it also possible to see it in the file broswer (graphic interface)

thank you

0
 

Author Comment

by:oferweisglass
Comment Utility
I wrote dmesg

and here are the last lines

[17181122.484000] usb 1-1: new full speed USB device using uhci_hcd and address 17
[17181122.892000] usb 1-1: device not accepting address 17, error -71
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:oferweisglass
Comment Utility
Thank you for the links

I did by this
http://www.linuxquestions.org/questions/showthread.php?s=381ee0aef2fcec3b99ad07fd21f71354&t=116910&page=2

"first check if ehci-hcd is inserted by running (thats the usb 2.0 module)
$ cat /proc/modules
then remove all the usb modules and reinsert most of them

# modprobe -r usb-storage; modprobe -r uhci; modprobe -r ehci-hcd
# modprobe usb-storage; modprobe uhci"


and this what the command line wrote

FATAL: Module uhci not found.

From what I understand the adaptor is for USB2 and I need to set it up for older hardware - USB1
Am I right?
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
the module is uhci-hcd not uhci...,
That's what your errormessage refers to. (.... not found).

the ehci-hcd is the usb 2.0 driver.
Also check if you use a USB2.0 hub on a USB 1.1 host port.
or USB1.1 cabling on usb 2.0 equipment.
0
 

Author Comment

by:oferweisglass
Comment Utility
you are right the two lines working when fixing:

modprobe -r usb-storage; modprobe -r uhci-hcd; modprobe -r ehci-hcd
modprobe usb-storage; modprobe uhci-hcd

but what to do now? it is back to the command line

and how to check about the USB2?
is there any command to write?

0
 
LVL 39

Expert Comment

by:noci
Comment Utility
Can you connect to your camera when using usb-1 drivers?
When a connection does start, it should create a new sdXY device.
X&Y depending on wether you already have SCSI controllers. a1 is the first.
This should be visible in 'dmesg'  and 'ls -l /dev/sd*'




0
 

Author Comment

by:oferweisglass
Comment Utility
now can see it as connected but again not sure how to mount it

mount... ???
0
 
LVL 39

Accepted Solution

by:
noci earned 125 total points
Comment Utility
A device should be created when you attach your camera
(like sdxN x=a,b,c,d... N=1,2,3,4) and that device can be mounted.

As most Flash devices it uses a plain FAT filesystem for storage
of data. Also all pictures are probably stored in a subdirectory because
a toplevel directory has limited capabilities for that.

mkdir -p /mnt/camera
mount -t fat /dev/sdxN /mnt/camera

You can use KDE Kamera to help, and otherwise look for it using
konqueror media:/
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
On gnome the tool of choice might be gphoto (not sure there)
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
'mount -t vfat...' might also be 'mount -t vfat ...'
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now