Forum Home
Press F1
 
Thread ID: 43038 2004-03-01 10:20:00 linux fedora file access on usb kiwirik20015 (5332) Press F1
Post ID Timestamp Content User
219347 2004-03-01 10:20:00 Hi all,

I am a total newby and have had Fedora running for over 3 months and love it. One thing I haven't figured out is how to access my digital camera (panasonic dmc-lc20 or phillips usb mp3 player key 005)

I read several posts on usb topics that talked about adding to a file called fstab which I have done and I can see a change in the directory /proc/usb when I plug and unplug the camera BUT cant figure out how to access the files as I would under windows. My other option is to put windows back on just for this which seems a little bit ridiculous.

I hope someone can help me or point me in the right direction. Thanks in advance for any help anyone can give.

Richard
kiwirik20015 (5332)
219348 2004-03-01 10:33:00 I will switch to linux and show you how mine works(fstab). mikebartnz (21)
219349 2004-03-01 10:49:00 Try the following:
Open a terminal (konsole or gnome-terminal) and type the following:
su -
[enter root password]

Now, we're going to make a dir where you're going to mount your Camera first off, so you can at least get your Pics off it. You can look at gphoto later...
mkdir /camera

Next, plug in your Camera and do whatever you might need to so you can get the photo's transferred off it. Moost you just plug in, some you have to put into View mode...
Then type:
mount /dev/sda1 /camera

The camera should now be mounted at /camera

Next, you'll want to:
cd /camera
and run:
ls

This will list the folders. Change into whatever directory the Pics are in.
Then, cp or mv the files to your users home folder. You may need to run:
chmod -R 777 /home/username/Folder_you_put_the_pics_in
then,:
cd /
umount /camera

You need to cd /, or at least change out of /camera, otherwise you cant umount it so you can safely unplug it.

Then, do the same with your USB Key drive :-)

Hope this helps


Chill.
Chilling_Silently (228)
219350 2004-03-01 11:08:00 I like the fstab file because it makes it permanent and here is mine to access my camera.
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
/dev/hda10 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/hdd /mnt/ls120.0 auto noauto,owner,kudzu 0 0
/dev/hda6 /mnt/2000Data vfat defaults 0 0
/dev/hda7 /mnt/Pictures vfat defaults 0 0
/dev/sda1 /mnt/Camera auto noauto,owner 0 0
device sda1 did it for me. You still need to make the mount point Camera or like.
mikebartnz (21)
219351 2004-03-05 06:38:00 Thanks for the helpl guys but I am no better off. This is what I have got


root@rick root]# cd camera
[root@rick camera]# mount /dev/sda1 /camera
mount: /dev/sda1 is not a valid block device
[root@rick camera]# ls
[root@rick camera]# cd ..
[root@rick root]# mount /dev/sda1 /camera
mount: /dev/sda1 is not a valid block device
[root@rick root]# mount /dev/sda1/camera
mount: can't find /dev/sda1/camera in /etc/fstab or /etc/mtab
[root@rick root]# mount /dev/sda1 /mnt/camera
mount: mount point /mnt/camera does not exist
[root@rick root]#

Can anybody help?
kiwirik20015 (5332)
219352 2004-03-05 20:24:00 > Thanks for the helpl guys but I am no better off.
> This is what I have got
>
>
> root@rick root]# cd camera
Hang on, you're in your /root folder here...?

> [root@rick camera]# mount /dev/sda1 /camera
And then you try and mout the folder to /camera?

> mount: /dev/sda1 is not a valid block device
Its not picked up the Camera

> [root@rick camera]# ls
> [root@rick camera]# cd ..
> [root@rick root]# mount /dev/sda1 /camera
Okay, so you ls the directory and its empty (understandably so). Then you cd .. into /root
Then you try to mount the camera to /camera, but its not liking that, for two reasons (Im speculating the 2nd)

You may have made /root/camera but not /camera, so check that

Your camera isnt being recognised as a USB Drive.
Ive found your camera here:
www.teaser.fr

It says it should be picked up just like Mine and Mikes.

One thing:
Have you turned the Camera on? That was the reason why I spent an hour googl'ing around trying to get my Fathers Kodak FinePix to work in Linux... Turn it on and all my problems went away :p

Then:
mkdir /camera (Note: '/camera', and not 'camera' because otherwise it'll make it in your current folder, which was /root by the looks of it)
Next, turn the camera on and plug it in
mount /dev/sda1 /camera
cd /camera && ls

If the Camera doesnt work, try with the USB Thumb drive.
You _wont_ need to 'mkdir /camera' every time, Im just making sure you have /camera and not /root/camera

Cheers


Chill.
Chilling_Silently (228)
219353 2004-03-06 05:47:00 I find it better to use generic names if you are using two or more USB devices - otherwise the first one connected will take the first name so you might have the camera looking like it is the pendrive. The end of my fstab looks like:

/dev/sda4 /mnt/zip vfat noauto,owner,rw 0 0
/dev/sdb1 /mnt/USB1 auto noauto,owner 0 0
/dev/sdc1 /mnt/USB2 auto noauto,owner 0 0
JohnD (509)
219354 2004-03-06 09:52:00 Thank you so much!!!!!

It has worked and I have saved my pictures to my harddrive.

I am going to archive your post for posterity and future reference.


Regards

Richard
kiwirik20015 (5332)
219355 2004-03-06 09:59:00 That's great to hear Richard.

Can I enquire into the steps you did to get it to work?


Chill.
Chilling_Silently (228)
219356 2004-03-07 19:23:00 I just did what you suggested and it worked. Now I am trying to get the pendrive to load and having a bit of fun with that!! kiwirik20015 (5332)
1 2