I want to write a shell script to copy files from my cdrom to say my /myfiles
This script will need to run on different distros RHEL,SLES, etc. and on various machines with very different configurations.
My question is this. How can the script determine where the cdrom is and its mount point?
If on system #1 the cdrom is /dev/hda - say mounted at /media/mycdrom
system #2 it happens to be at /dev/hdb and mounted at /mnt/cdrom
How would the script know where the cdrom is located on a given system if the location can change from system to system?
Is there a global system variable for something like this?
I found this thread but it assumes the drive is /dev/hdb