Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 serverfault.com Jul 29 '10 at 13:10

This question came from our site for professional 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

3 Answers 3

up vote 2 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:

.wine/drive_c/.windows-label:MYDRIVE
.wine/drive_c/.windows-serial:12345678
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.