1748169 Members
4244 Online
108758 Solutions
New Discussion юеВ

Re: usb

 
SOLVED
Go to solution

usb

Hi,

I have connected my digital camera to the USB port on my lap top. Redhat 8.0 automatically detects and loads kernel modules for this.
How do I mount the filesystem on the camera so that I can download the pictures.

Thanks,
Trystan.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: usb

There is no filesystem on the camera.

If the camera is supported under Linux there is a program you insall. This transfers the pictures from the camera to the Linux system.

The memory on the camera is treated like RAM, not disk.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Meissner
Esteemed Contributor

Re: usb

I do believe there is a program for digital camera's on 9.0 - I didn't install it because I don't have a digital camera. I'm assuming and you know what happens with you assume....
(you get an "ass" our of "u" and "me") sorry about that....

um... I'm pretty sure there are rpm's for digital camera software in the red hat packages. I'll find it tonight for you and report back.
All paths lead to destiny
John Meissner
Esteemed Contributor

Re: usb

here:
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/getting-started-guide/ch-cameras.html

gtKam is the name of the program you will need to install
All paths lead to destiny
Michael Creutz
Advisor
Solution

Re: usb

Hi,

Most modern usb digital cameras can be read using the usb-storage module. For my Fuji finepix I have sd_mod in /etc/modules (red hat may automatically do this). Then you mount /dev/sda1 somewhere and read it as a vfat file system. My fstab has the line

/dev/sda1 /fuji vfat defaults,user,noauto

so I can just say "mount /fuji"

I wrote a short script to download the pictures from my camera to the local directory and give them a name based on the time the picture was taken. I append the script below (correct for line wrapping by this message software).

Mike

#!/bin/sh
# shell script to download pictures to current directory
# from my fuji digital camera

source=/fuji/dcim/100_fuji
destination=.

if [ ! -d $source ]
then
echo mounting the camera
if ! mount /fuji
then
echo Is the camera attached and turned on?
exit
fi
fi

for picture in `ls $source/*.jpg`
do
name=`date -r $picture +%y_%m_%d_%T`.jpg
newname=`echo $name | sed s/:/_/g`
echo copying $picture to $newname
cp $picture $destination/$newname
chmod 644 $destination/$newname
done

echo unmounting camera
umount /fuji
echo done
Jarle Bjorgeengen
Trusted Contributor

Re: usb

Set your camera to present itself as a storage device, and it should automatically be assigned to a device file when plugged in.

Rgds Jarle