Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I change disk volume id in wine?

There is vol command in windows which shows volume id and VolumeID (from Sysinternals) which can change VolumeID in windows but not in wine.

share|improve this question

migrated from Jul 29 '10 at 13:10

This question came from our site for system and network administrators.

Out of interest, why would you want to do this? – Adam Gibbins May 3 '09 at 19:32
@Adam: First thing that comes to mind - some braindead registration scheme that relies on the volume ID as part of its key validation algorithm (IMHO people who do that should be forced to watch lolcat pictures for 18 hours a day, but that's just me - more lenient people would probably just call for mild electrocution.) – Mihai Limbăşan May 4 '09 at 17:10
up vote 4 down vote accepted

Running winecfg allows you to edit the drive serial/label (among many other things) from a GUI. If you just want to manipulate it from the filesystem, create the following files as appropriate:

share|improve this answer

It may be a pain in the butt to do this but if you have a copy of windows you could copy explorer.exe (and any of the files that it needs to run) to wine. Then just change the VolumeID like normal. An easier way might be to find the vol command on your windows installation (they usually have .com extensions) and copy it to wine so you can use it.

share|improve this answer

Do you mean something like this?

cd .wine
ln -s drive_c myvolid
cd dosdevices
ln -sf "c:" ../myvolid
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .