Mailinglist Archive: opensuse (3135 mails)
< Previous | Next > |
Re: [opensuse] CD/DVD question
- From: M Harris <harrismh777@xxxxxxxxxxxxx>
- Date: Fri, 9 Mar 2007 23:42:09 -0600
- Message-id: <200703092342.09875.harrismh777@xxxxxxxxxxxxx>
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: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
> 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: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
< Previous | Next > |