469,306 Members | 2,504 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Setting a drive's volume label

....the name for a drive (hard or removable) that shows up when, for example,
a USB flash drive is recognized by the system. I don't know if this shows
up somewhere in Linux.

Can this be set from Python? I guess it would be some MFC call in Windows
(I don't know anything about doing that), and some ??? call in Linux? Could
use both.

Thanks!

Bob
Aug 3 '05 #1
3 4513
Looks like the "label" system command will do it in Windows. That's good
enough for this exercise. So, in Linux...???
"Bob Greschke" <bo*@passcal.nmt.edu> wrote in message
news:ge********************@nmt.edu...
...the name for a drive (hard or removable) that shows up when, for
example, a USB flash drive is recognized by the system. I don't know if
this shows up somewhere in Linux.

Can this be set from Python? I guess it would be some MFC call in Windows
(I don't know anything about doing that), and some ??? call in Linux?
Could use both.

Thanks!

Bob

Aug 3 '05 #2
Bob Greschke wrote:
Looks like the "label" system command will do it in Windows. That's good
enough for this exercise. So, in Linux...???


"mlabel" in the "mtools" package will do what you need. "mkfs.vfat" can also
be given a volume label, but it will not allow you to set the label without
creating a new filesystem :)

Reinhold
Aug 3 '05 #3
"Reinhold Birkenfeld" <re************************@wolke7.net> wrote in
message news:3l*************@individual.net...
Bob Greschke wrote:
Looks like the "label" system command will do it in Windows. That's good
enough for this exercise. So, in Linux...???


"mlabel" in the "mtools" package will do what you need. "mkfs.vfat" can
also
be given a volume label, but it will not allow you to set the label
without
creating a new filesystem :)

Reinhold


Perfect! (Never heard of them :) Thanks!

Bob
Aug 5 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by | last post: by
3 posts views Thread by misc | last post: by
8 posts views Thread by Dmitry Klymenko | last post: by
16 posts views Thread by Basil Fawlty | last post: by
4 posts views Thread by Quina | last post: by
6 posts views Thread by Steve Marshall | last post: by
18 posts views Thread by cjl | last post: by
2 posts views Thread by Talal Itani | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.