You can accomplish what you want with autofs. Once you've installed autofs you need to edit autofs' master file, /etc/auto.master. In this file you typically specify a mount point (/media) in your case and a resource file that says mounts all these things under the mount point.
For example in my auto.master file:
/misc /etc/auto.misc
This tells autofs to create a mount point, /misc and mount everything in the file /etc/auto.misc under it.
Contents of auto.misc:
cdrom -fstype=auto :/dev/sda removable -fstype=ext4 :/dev/hdd
These are just examples, for more information consult the man page for auto.master. Autofs is very powerful and can automount from a variety of sources, NIS, LDAP, files, SMB, FTP sites, etc.