3 reputation
14
bio website
location
age
visits member for 2 years, 2 months
seen Feb 6 '13 at 19:16

Nov
10
awarded  Popular Question
Dec
18
awarded  Enthusiast
Dec
10
awarded  Scholar
Dec
10
accepted Automounting SD card when inserted in Ubuntu
Dec
3
comment Automounting SD card when inserted in Ubuntu
That did it. I am using several SD cards and each has its own UUID, I tried using ????-???? wildcard but it didn't work, any ideas? :)
Nov
28
comment Automounting SD card when inserted in Ubuntu
It takes about two minutes to process one photo. What modifications should I make in order to let the script read the date in the filename and act on it?
Nov
28
comment Automounting SD card when inserted in Ubuntu
Copied them to /tmp and it is still very slow :( I think that I will depend on the date written in the file name instead.
Nov
27
awarded  Commentator
Nov
27
comment Automounting SD card when inserted in Ubuntu
Yes I was thinking about that too, and for the mounting point problem I will rely on the UUID of the drive instead which won't change, I suppose...
Nov
27
comment Automounting SD card when inserted in Ubuntu
Also it takes about 2 minutes to move a file! I think the cause is the identify statement. EDIT: Just checked it in top, identify statement is taking 94% of the CPU!
Nov
27
comment Automounting SD card when inserted in Ubuntu
Another thing that the system annoyingly randomly switches the path to the card between /dev/sdb1 and /dev/sdc1 whenever I put a card.
Nov
27
comment Automounting SD card when inserted in Ubuntu
I double checked all of your suggestions. And that's the rule: ACTION=="add", SUBSYSTEMS=="scsi", DRIVERS=="sd", ATTRS{vendor}=="Generic ", ATTRS{model}=="Mini SD Reader ", RUN+="/root/move_pictures_sd.sh" Still didn't work. I made two changes to the script since it doesn't take subfolders in account. First is the SOURCE variable, I added DCIM folder in the path. Second is changing -maxdepth to 2 in find line. If there is more than one subfolder, I noticed that the script only scans the first one.
Nov
21
comment Automounting SD card when inserted in Ubuntu
Thanks a lot! :) Here is what I put as a udev rule 'ACTION=="add", DRIVERS=="sd", RUN+="/root/move_pictures_sd.sh"' then I restarted udev and inserted a memory card but the rule didn't work. I also tried adding vendor and model parameter but with no effect as well.
Nov
20
comment Automounting SD card when inserted in Ubuntu
Thanks for the script :) I tried using udev rules but it didn't work out for some reason... so I am going the cronjob way. I had another idea in my mind, is it possible to make the script put a photo in a folder according to its EXIF date? for example if a photo is taken today, it will be in 20 subfolder inside 11 subfolder inside 2012 subfolder. I guess I'll need to use nested if conditions for that.
Nov
15
comment Automounting SD card when inserted in Ubuntu
Well I was thinking about creation time, but now that you have mentioned EXIF... :D
Nov
15
comment Automounting SD card when inserted in Ubuntu
Is it possible with EXIF data?
Nov
15
comment Automounting SD card when inserted in Ubuntu
I meant moving files and rename them according to their creation date and time :)
Nov
15
comment Automounting SD card when inserted in Ubuntu
Sorry forgot to mention that there is no GUI. I will give udev rules a try. What about renaming? Is there any trick to do that? Thanks for your comments :)
Nov
15
awarded  Editor
Nov
15
revised Automounting SD card when inserted in Ubuntu
Spell fix.