FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello All,
I am running Fedora 16 x86_64, gnome, always up to date.
A strange problem. For years I have been importing images from my camera SD card, and they have always ended up (in linux dir) as xxxx.jpg (I have checked some dirs of photos from years ago).
A day or so ago, I downloaded some photos from the SD card and tried to import them into some new software I'm working with (VisualSFM) and it couldn't see any of the images in the dir...it was looking for .jpg and all the recently imported files were .JPG.
I have had to resort to using PyRenamer to get around this problem.
I wasn't sure where the problem was, in Fedora somewhere, or the camera. I checked some old SD cards, written by the same camera, and Nautilus shows them all as .JPG, but the previously imported copies of these files on my disc are all .jpg, and I have never before had to resort to renaming.
So, I'm beginning to wonder if Nautilus is the indigenous person in the woodpile. A snoop about in Nautilus preferences doesn't indicate any settings that might affect this.
Does any one have any clues as to what might be going here?
Sorry to reply to my own post, but have found gphoto2.
This looks like it might just be another approach similar to PyRenamer, ie fix the problem after the event, unless I have misunderstood.
It may be a good solution for that, but I was really looking for any advice on what has caused the apparent change that I see.
[snip] ... but I was really looking for any advice on what has caused the apparent change that I see.
Me again.
It is now getting a little clearer.
Mount options for vfat have changed in the linux kernel.
One of the options is shortname={lower|win95|winnt|mixed}, where 'lower' forces the name to lowercase, and this is probably what the default was previously, going by historical behaviour here.
The current default is 'mixed', which is probably sensible, although does add inconvenience to import of images from vfat device via some software.
There is a way of adding an entry to /etc/fstab for the particular device, using 'shortname=lower', but that may mean a number of entries if one has a number of devices.
Although it probably isn't a recommended solution, I wonder if there is a way of overriding the default for all vfat devices, in some config file somewhere?
Not meaning to tell you what to do but the way I do it is insert the card, mount it manually if you have to and open a terminal. Go to or make a directory and go to it and run gphoto2 -P and that downloads all the pics off your card. If you use the "--filename %:" option along with that you get your files in lowercase. Simple. I suspect Nautilus is using gphoto2 as the backend for this, I don't know. But if that is the case you can edit your ~/.bashrc file to include the line
alias gphoto2='gphoto2 --filename %:'
and when Nautilus calls gphoto2 to download your pics they will all be in lowercase. Hope this helps. I tried it and it works with
gphoto -P
but I don't know about Nautilus. I'm a command line person so I can't say. I don't even have Nautilus installed. I use Midnight Commander installed as a file manager so I can use the same file manager in a run level 3 environment. I would have gotten back to you sooner but I'm having issues with getting notifications from this forum about new posts to which I am subscribed. I'll be checking back.
[snip] I suspect Nautilus is using gphoto2 as the backend for this, I don't know. But if that is the case you can edit your ~/.bashrc file to include the line
alias gphoto2='gphoto2 --filename %:'
and when Nautilus calls gphoto2 to download your pics they will all be in lowercase. Hope this helps. I tried it and it works with
gphoto -P
No, gphoto2 not installed here. Nautilus, as I'm using it, is simply a gui file manager...drag selected files from the SD card window to the the desired directory window on my hard disc.
Quote:
but I don't know about Nautilus. I'm a command line person so I can't say. I don't even have Nautilus installed. I use Midnight Commander installed as a file manager so I can use the same file manager in a run level 3 environment. I would have gotten back to you sooner but I'm having issues with getting notifications from this forum about new posts to which I am subscribed. I'll be checking back.
OK. Your proposal may be a suitable solution. At the moment I can make the required filename changes with PyRenamer, but your proposal is probably a bit simpler. Thanks for your help.
No, gphoto2 not installed here. Nautilus, as I'm using it, is simply a gui file manager...drag selected files from the SD card window to the the desired directory window on my hard disc.
OK. Your proposal may be a suitable solution. At the moment I can make the required filename changes with PyRenamer, but your proposal is probably a bit simpler. Thanks for your help.
Cheers,
Terry
You are quite welcome and if I can help in any way whatsoever feel free to ask. Sometimes the command line is the only way to get exactly what you want the way you want it. And it's always faster.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.