Changing VolumeID inside wine

2

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.

Alex Bolotov

Posted 2009-05-03T16:26:58.647

Reputation: 1 284

Out of interest, why would you want to do this? – Adam Gibbins – 2009-05-03T19:32:32.273

@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 – 2009-05-04T17:10:24.883

Answers

4

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

MikeyB

Posted 2009-05-03T16:26:58.647

Reputation: 1 232

0

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.

Kredns

Posted 2009-05-03T16:26:58.647

Reputation: 2 857

0

Do you mean something like this?

cd .wine
ln -s drive_c myvolid
cd dosdevices
ln -sf "c:" ../myvolid

Mihai Limbăşan

Posted 2009-05-03T16:26:58.647

Reputation: 149