473,770 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4943
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.nm t.edu> wrote in message
news:ge******** ************@nm t.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************ ************@wo lke7.net> wrote in
message news:3l******** *****@individua l.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2692
by: | last post by:
Hi, Do memory sticks have serial numbers like harddrives? If so how can I get this, I want to uniquely identify a memory stick (removable drive) for authentication. Thanks
3
4131
by: misc | last post by:
Does anyone know how to access the Volume Serial Number of a drive using .NET? It is easily done in VB6 using the FilingSystemObject. I appreciate any insight into the matter.
8
3269
by: Dmitry Klymenko | last post by:
Do exists a way to detect a volume label of a disk? I've found the way to do this using WMI (System.Management) or winapi function. The second solution is principal non-portable in future, the first one require service WMI to work on client (for sure it's not a guarantee to be allways running). I do not want to include in my application logic, that will attempt to start that service before determining logical drive volume label. If no way to...
16
6158
by: Basil Fawlty | last post by:
Hi everyone, I have an assignment, to create a simple VB program that computes the volume of a cylinder. The Form is pretty simple, it has a label and text box for base radius, another for height and another for volume with an OK button. I have the code to put into the OK button (Which I've done): Private Sub OK_Click( ) --not this line r = Val(radius.Text) --input this line h = Val(hght.Text) --input this...
4
5199
by: Quina | last post by:
Hi, I'm trying to build an aplication to manage my discs (CD/DVD) and i'm trying also to add an automatic info colector. I can access the volume label, the size an even the date of some recorded discs... but I can't determine whic kind of disc (CD/DVD) is on my drive. Can anybody help me? Thank you all in advance, Joćo Carias
6
2679
by: Steve Marshall | last post by:
Hi all, I have an application that can use many different compact-flash cards as storage for different jobs the client is working on. I have added a function to erase all files from a flash card, and that works fine. But I would also like to be able to make the Volume Label on each flash card the job name its files belong to. I can't work out how to either write the Volume Label to the cards, or to remove it when I erase them. I...
18
6782
by: cjl | last post by:
Hey: I am trying to run python from a usb drive under windows xp. I installed python "for this user" on to a machine, then copied the entire Python24 directory to the usb drive. I have the following in a batch file at the root of the drive: @path=%PATH%;%CD%Python24;%CD%Python24\libs;%CD%Python24\Scripts;%CD%Python24\Lib\site-packages;%CD%Python24\DLLs @set pythonpath = %CD%Python24
2
2358
by: rick11 | last post by:
I need know when a drive is a USB drive, what USB port is it in? For the system I am doing this on, I do not have to worry about hubs plugged into hubs (into hubs...). It's just the motherboard with 3 USB ports in it. I know it just has 3 USB ports because the whole thing sits on a table without any case around it. Can I tell which drive is in which port? And if so, how? BTW: drives may or may not be there at boot, different thumb...
2
5161
by: Talal Itani | last post by:
Hello, I need my application to change the name of a drive, I think this is called volume label. I searched everywhere, but I was unable to find out how. Please help. T.I.
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.