LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-15-2004, 09:06 AM   #1
TakeAwayDave
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
How do I safely disconnect USB camera operating in PTP mode?


Here's something I felt would be better checking so any problems might be avoided.

Here's the setup:

Fedora C1 (2.4.22-1.2197)
gphoto2 (current)
gtkam (curent)
Nikon Coolpix 885
Nikon D70

So I have installed and configured thw above and all runs fine. I flashed the Coolpix firmware so that it supports PTP (Picture Transfer Mode), the D70 supports this already.

Both camera's are then detected USB devices when plugged in and switched on.

[root@baddabing root]# tail -n 15 /var/log/messages
Jul 15 13:39:42 baddabing devlabel: devlabel service started/restarted
Jul 15 14:19:42 baddabing kernel: usb.c: USB disconnect on device 00:03.2-2 address 3
Jul 15 14:19:43 baddabing devlabel: devlabel service started/restarted
Jul 15 14:39:49 baddabing su(pam_unix)[4681]: session closed for user root
Jul 15 14:44:55 baddabing su(pam_unix)[6448]: session opened for user root by mythtv(uid=500)
Jul 15 14:45:16 baddabing kernel: hub.c: new USB device 00:03.2-2, assigned address 4
Jul 15 14:45:16 baddabing kernel: usb.c: USB device 4 (vend/prod 0x4b0/0x112) is not claimed by any active driver.
Jul 15 14:45:20 baddabing devlabel: devlabel service started/restarted
Jul 15 14:46:48 baddabing kernel: usb.c: USB disconnect on device 00:03.2-2 address 4
Jul 15 14:46:49 baddabing devlabel: devlabel service started/restarted
Jul 15 14:47:07 baddabing kernel: hub.c: new USB device 00:03.2-2, assigned address 5
Jul 15 14:47:07 baddabing kernel: usb.c: USB device 5 (vend/prod 0x4b0/0x112) is not claimed by any active driver.

gtkam detects and I can copy images across fine.

So I now wish to disconnect.

If I turn the camera off I get the following tailed into the above log:

Jul 15 14:47:36 baddabing kernel: usb.c: USB disconnect on device 00:03.2-2 address 5
Jul 15 14:47:37 baddabing devlabel: devlabel service started/restarted

Now is this OK to do?

Or should I be issuing so sort of umount command.

I was under the impression that the camera's filesystem was not mounted when using PTP.

Any one able to confirm/correct this?

Thanks.
 
Old 07-15-2004, 09:10 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
If it mounts something, you can umount it if you like. All the message in the log file is is stating the USB was disconnected. I get them in my log files too and nothing goofs up.
 
Old 07-15-2004, 02:29 PM   #3
TakeAwayDave
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
ok exactly how do I look to mounting it?
 
Old 07-15-2004, 02:34 PM   #4
TakeAwayDave
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I have tried tyhe following:

[root@baddabing root]# mkdir /mnt/camera
[root@baddabing root]# mount -t vfat /dev/sda1 /mnt/camera
mount: /dev/sda1 is not a valid block device
[root@baddabing root]# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 046d:0910 Logitech, Inc.
Bus 003 Device 006: ID 04b0:0406 Nikon Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
[root@baddabing root]#

I also have a webcam attached so this MAY be sda1 - if so how do I find where the camera is?

Thanks.
 
Old 07-22-2004, 10:28 AM   #5
TakeAwayDave
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
resolved

1. Changed Camera back to MAss Storage Mode

2. Added the following to /etc/fstab

/dev/sda1 /mnt/camera vfat rw,noauto,user

works fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can I safely unplug an usb device? smau Linux - Hardware 5 03-14-2006 06:30 AM
Sony PTP Camera permission problems araldit Linux - Hardware 0 05-05-2005 01:10 PM
USB Dual mode camera njbrain Linux - Hardware 0 04-30-2005 11:01 AM
Safely remove USB Flash drive? Guitarist88 Linux - Newbie 3 05-26-2004 03:35 PM
Digital camera - PTP or USB (or both) kabads Linux - Hardware 2 03-01-2004 05:55 AM

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

All times are GMT -5. The time now is 03:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration