Re: Alias for pen drives



Somebody in the thread at some point said:
On 9/30/07, Andrea Mastellone <andrea.mastellone@xxxxxxxxxxxxx> wrote:
The alias '/dev/dvd' is for dvd. What is the alias for pen drives?
It depends on the label on the filesystem of the pen. Usually, you will
find it mounted in /media directory. In my case, it is /media/disk.

Thanks, Andrea. Precisely, I am looking for a label that does not
depend on the filesystem, likewise '/dev/dvd'. If I insert my pen
drive and run the command 'df- h', I can see that '/dev/sdd1'
corresponds to the pen drive. However, this label ('dev/sdd1') depends
on the filesystem.

Not quite... that is not a label, but the device node for the drive and
partitions. These are assigned to be the "next free one", so if you
inserted a USB stick and it was given /dev/sdd, if you insert a second
stick without removing the first it will be given /dev/sde. So there is
no "sticky" association between a particular USB drive and the device
(/dev/sdd, /dev/sde, etc) it gets given, nor are the contents of the
filesystem(s) on the partition(s) examined at that point.

Separately, there is support for automounting inserted filesystems like
Andrea and Matthew said. At that point is goes and looks if there is a
label associated with the filesystem and if there is, uses it to define
the mountpoint name under /media.

-Andy

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Naming hard drives.
    ... One appears not to have a label and appears as /media/disk, ... If its a vfat filesystem the volume label works ... The home directories for these logins will all be have ... partitions onto the mounted USB drive. ...
    (uk.comp.os.linux)
  • Re: Disk label and /etc/fstab entry?
    ... LABEL inside the disk. ... fstab and mount /u01 I get mount: wrong fs type, bad option, bad ... instead of an ext3 filesystem. ... change the fstab entry to ext2. ...
    (comp.os.linux.misc)
  • Re: [kde] automounting IPOD
    ... changes the disk device name but not the filesystem volume label. ... Archives: http://lists.kde.org/. ...
    (KDE)
  • Re: Daves Tinkering Again!
    ... This should work exactly the way you want it to, assuming that the LABEL was ... remote filesystem to be mounted. ... For ordinary mounts it will hold a block special device ... I've never seen the syntax for "assigning" the label in a separate line - ...
    (comp.os.linux.misc)
  • Re: [PATCH][RFC] Simple tamper-proof device filesystem.
    ... This filesystem is intended to provide support for legacy applications. ... I thought you were saying "enforcing filename/attributes pairs ... if this is possible then the MAC config used is wrong. ... Being able to create a device node is different from being able to access it ...
    (Linux-Kernel)