Mounting USB devices with stable names

Mikkel L. Ellertson mikkel at infinity-ltd.com
Wed Nov 15 15:39:46 UTC 2006


Reg Clemens wrote:
> OK, Im missing something.
> Ive been following this thread since I have the same problem,- I want to mount
> thumb-drives in known locations.
> 
> Im not thrilled with labels, but if they will do the job, OK.
> 
> However, I know how to label a ext2/3 drive with e2label, but for compatability
> reasons (so I/we can move files from Windows <-> Linux all of my pen-drives
> are formated as vfat.
> 
> I see mlabel which claims to be able to label vfat drives.  Im not sure that 
> the
> whole mount thing will recognize those labels, but Im one stop back from being
> able to try it.  mlabel SEEMS to only want to work with file systems on 
> /dev/fd0
> so I have no way to label these pen-drives.
> 
> So, how to get the label on the drive in the first place, and then can I 
> expect mount
> to see it?
> 
If you are creating a new file system, the -l option of mkdosfs will
let you label the drive. I have not found any easy way to change the
label under Linux. It looks like John Austin post on mlabels is the
way to do it. A tools like e2label for FAT partitions would be handy.

Mikkel
-- 

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




More information about the users mailing list