Alias for pen drives

Mikkel L. Ellertson mikkel at infinity-ltd.com
Sun Sep 30 15:22:23 UTC 2007


Paul Smith wrote:
> Dear All,
> 
> The alias '/dev/dvd' is for dvd. What is the alias for pen drives?
> 
> Thanks in advance,
> 
> Paul
> 
Normally, there is not an alias created for pen drives. They are
usually auto-mounted if there is a user logged into the GUI on the
local console. If you need a specific alias for a pen drive, you can
create a udev rule for it. Depending on what you match on, it can be
as specific as an alias for one pen drive, one model of pen drive,
or all pend drives from a particular manufacture. You could also
have one for all USB storage devices by matching on device type. (I
believe they all report the same device type.) The thing to watch
out for is that your rule does not try to create the same symlink
for a new device as a device that is currently plugged in.

Managing a symlink for a built-in DVD drive is easy - you are not
normally going to be removing the drive while the system is running.
For hotplugable devices, it is more complicated. (It is also
complicated when you have more then one DVD drive installed...) When
auto-mounting devices, HAL has a set of rules that it follows in
deciding on the name to use. If the filesystem(s) had a label, then
that is used. It is modified slightly if that label is already in
use. If that fails, it tries to use the device name string. If that
fails, then uses a generic name. (Some releases of HAL had problems
with unlabeled devices.)

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20070930/2b536bca/attachment-0001.bin 


More information about the users mailing list