Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
What do you mean you want to access the volume name? Do you
want to be able to mount the disk using the volume name, or do you
want to be able to find out what is the volume name after it's been
After much Googling and testing I came up with a solution that
does the job and seems fairly clean. The key is the mlabel
command, but rather than hardcoding every possible device
name into the mtools config file I create one on the fly that
defines only the device I'm interested in at the time I run the
commands. The following demonstrates the idea: