PDA

View Full Version : How To Make a *NIX Link To My CD Drive




bobber205
Jun 28, 2007, 11:57 PM
Is there a way to make a symbolic link my my main DVDROM drive?
I know how to do a folder, as that's what I did to get to my external HD from my windows machine (aren't I clever ;) ).

But I don't want to have to create a seperate one for each CD I put in.



kainjow
Jun 29, 2007, 08:57 AM
I don't think there's a one-step way to do this. When a cd/dvd gets mounted, each one has a different mount point within the /Volumes directory.

One could probably write a background script/program that recreates a symbolic link at a specified directory every time a cd/dvd is mounted.

antibact1
Jun 29, 2007, 02:15 PM
I would take a look at the Disk Arbitration framework. Someone gives an example usage here:

http://www.thoughtstuff.com/rme/weblog/?p=3

As indicated in the post, documentation is pretty sparse.

Good luck.