The problem with that, is that you have to redo it for every different
CD/DVD you put in.
Personnaly, I'd quite like a simple setup whereby my CD/DVDs are
auto-mounted as /media/cdrom0, /media/cdrom1, USB stuff as /media/usb0,
etc.
Solaris has been doing this for, oh, over ten years. It mounts the CD
under it's volume name, then creates a sym link from cdrom0 to the
volume name.
GTG
>>> M Harris <[EMAIL PROTECTED]> >>>
On Friday 09 March 2007 22:55, Stevens wrote:
> I have some programs that require something like /media/cdrom
> or /media/dvdrecorder to work, but Suse 10.2 reads the volume
> i.d. and uses that as the mount point, ie /media/SOME_Program.
>
> What do I do to make those programs work with the new dynamic
> naming convention?
Create a symbolic link...
... a symbolic link allows a file to be referenced by another
name (even from
another directory) without changing the original file location or name.
Change directory into /media ( cd /media ) as root.
Use the following command to create the symbolic link ( I will
use your
example names ):
ln -sf SOME_VOLUMEID cdrom
The -s switch makes the link symbolic, and the -f switch forces
the command
to remove any existing links by that name... be careful---- cdrom is
the
linkname and SOME_VOLUMEID is the target.
This will create a symbolic link under /media that will appear
when listed
( ls -al ) as the following :
cdrom -> SOME_VOLUMEID
Now, apps that need to read /media/cdrom will actually be
reading /media/SOME_VOLUMEID.
What might happen though is that an app might need to read
/mnt/cdrom... and
you can still create a symbolic link to do the job.
Change directory into /mnt as root and use this command:
ln -sf /media/SOME_VOLUMEID cdrom
This link will look like this when /mnt is listed:
cdrom -> /media/SOME_VOLUMEID
Now an app needing to find the cdrom (Redhat style) under the
/mnt filesystem
will be able to read the /media/SOME_VOLUMEID that was mounted Suse
style.
--
Kind regards,
M Harris <><
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]