Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old September 23rd, 2009   #1
nickneedsausername
First Cup of Ubuntu
 
Join Date: Sep 2009
Beans: 1
FUSE vs Canon Powershot SD 1000

Hello,

I'm trying to get my camera to mount via FUSE, and I'm stuck.

First of all, let me say that I'm using a Canon. Canons do not act like a USB hard drive (instead they use ptp). So, I am using gphotofs to allow me to mount the camera as a filesystem.

I can mount the filesystem as root and everything works fine.

When I mount it as a non-privileged user, the mount "succeeds," but I get an Input/Output error on all file accesses within the mount point.

I /think/ the problem is that the device belongs to user root group plugdev, but the fuse daemon is running as user nick group nick. I am a member of groups plugdev and fuse, but the fuse daemon inherits the wrong group.

Your advice is appreciated. Additional details follow:

Root can mount successfully:

Code:
viperfish:/home/nick# mount /media/camera/
viperfish:/home/nick# ls /media/camera/
store_00010001
viperfish:/home/nick# umount /media/camera/
User nick cannot:

Code:
nick@viperfish:~$ mount /media/camera/
nick@viperfish:~$ ls /media/camera/
ls: reading directory /media/camera/: Input/output error
nick@viperfish:~$ umount /media/camera/
User nick should have the correct permissions:

Code:
nick@viperfish:~$ id
uid=1000(nick) gid=1000(nick),46(plugdev),104(fuse),1000(nick),
(and ten or more so groups)
On the mount point:

Code:
nick@viperfish:~$ ls -ld /media/camera/
drwxrwx--- 2 root plugdev 4096 2009-09-17 17:19 /media/camera/
And the camera device:

Code:
nick@viperfish:~$ ls -ld /dev/usbdev*
crw-rw---- 1 root plugdev 252,  1 2009-09-23 12:22 /dev/usbdev1.1_ep00
(and 20 or so more or less identical lines)
And this is the fstab line:

Code:
nick@viperfish:~$ grep camera /etc/fstab 
gphotofs  /media/camera   fuse noatime,async,user,rw,noauto,noexec,nosuid,nodev 0 0
For what it's worth, I'm using ubuntu 9.04 amd_64 on a dell.

Thanks,
nickneedsausername is offline   Reply With Quote
 

Bookmarks

Tags
canon, fuse, gphotofs, permissions, plugdev

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:20 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry