Refer to SD Drive Location
Hi,
I have written myself a small script to import my photos from my digital camera. The script copies all of the photos from my SD card into my pictures folder. At present the way I refer to the card is through its actual name ('16GB SD Media' or something similar). The problem arises if I use a different SD card, as it has a different device name. Is there any way to reference the SD card slot as opposed to the specific SD card, so that it will work with any card inserted? Thanks in advance, Tom |
/media/disk can be the mount point
usually it is /dev/sdc1 if there are two hard disks Better still use the info in /dev/disk |
You could try using udev to run the script when a card is inserted.
http://reactivated.net/writing_udev_rules.html Fedora now uses udevadm not udevinfo. Open a terminal and run Code:
udevadm monitor |
All times are GMT -5. The time now is 04:39 AM. |