Discussion:
[Wine] Volume Serial Number
k4king
2010-01-28 14:57:26 UTC
Permalink
Can Wine support it ?
Both on the drive_c under .wine or any mapped real win partitions ?
If you drop into wine cmd and type
C:\>dir
Volume in drive C is JUSTMYTEST
Volume Serial Number is 0000-0000

the JUSTMYTEST I was able to set using the label command and can see it is stored in the .windows-label file.

But the serial number is zero, the sysinternals volumeid utility returns
Unable to open VWIN32 virtual device driver: Invalid parameter
Charles Davis
2010-01-28 15:46:16 UTC
Permalink
Post by k4king
Can Wine support it ?
The Serial Number? Yes. You can set it in winecfg.
Post by k4king
Both on the drive_c under .wine or any mapped real win partitions ?
For real FAT or NTFS partitions, you'll have to set the serial number
manually in winecfg.
Post by k4king
If you drop into wine cmd and type
C:\>dir
Volume in drive C is JUSTMYTEST
Volume Serial Number is 0000-0000
the JUSTMYTEST I was able to set using the label command and can see it is stored in the .windows-label file.
There's a similar file for the serial number, called .windows-serial .
Post by k4king
But the serial number is zero, the sysinternals volumeid utility returns
Unable to open VWIN32 virtual device driver: Invalid parameter
Either it's designed for Windows 9x, or your Windows version is set to
Windows 95/98/ME. (I'm guessing it's the latter. I've heard of
sysinternals, but I haven't used this particular utility.)

The fact that it opens the VWIN32 VxD is a red flag to me. Win32
programs that open it typically use it to make DOS calls.
k4king
2010-01-29 09:38:11 UTC
Permalink
thankyou Charles
<<The Serial Number? Yes. You can set it in winecfg. >>
ah yes the Advanced button

<<There's a similar file for the serial number, called .windows-serial>>
I forget the hyphen in my blind experimenting :-)

<<Either it's designed for Windows 9x, or your Windows version is set to
Windows 95/98/ME>>
Yup I had it set to Win98 for other reasons setting it to WinXP get
Error reading drive: Bad device type

many thanks,
I was not particularly looking to make Volumeid work, it was just an attempt to set the Volume Serial Number having determined that it was not set at drive creation.

Only remaining question / suggestion is that a (random) Volume Serial Number should be created during wineprefix creation to mimic real.
Continue reading on narkive:
Loading...