blob: a2f2bca8f71ae2fc5f56918b9fe7245e07344d51 [file] [log] [blame]
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001*** VOLUME LABEL
2
Alexandre Julliard829fe321998-07-26 14:27:39 +00003If a program depends on the correct label and/or serial number for the
4CD-Rom, you can use the following command to extract that information:
5
6 dd if=<your cdrom device> bs=1 skip=32808 count=32
7
8You need read access to the device, so perhaps you have to do it as root.
9Put the resulting string (without trailing blanks) into your
10wine.ini/.winerc file like:
11Label=<the label>
12
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000013*** SERIAL NUMBER
14
Alexandre Julliard829fe321998-07-26 14:27:39 +000015[FIXME: if someone knows how to get the serial number in Linux, please
16 put this information here].
17
18If you have access to a Win32 system and C-compiler, you can compile the
19following program to extract this information:
20
21------------------------- begin volinfo.c ---------------------------
22#include <windows.h>
23#include <stdio.h>
24
25int main(int argc,char **argv[])
26{
27 char drive, root[]="C:\\", label[1002], fsname[1002];
28 DWORD serial, flags, filenamelen, labellen = 1000, fsnamelen = 1000;
29
30 printf("Drive Serial Flags Filename-Length "
31 "Label Fsname\n");
32 for (drive = 'C'; drive <= 'Z'; drive++)
33 {
34 root[0] = drive;
35 if (GetVolumeInformationA(root,label,labellen,&serial,
36 &filenamelen,&flags,fsname,fsnamelen))
37 {
38 strcat(label,"\""); strcat (fsname,"\"");
39 printf("%c:\\ 0x%08lx 0x%08lx %15ld \"%-20s \"%-20s\n",
40 drive, (long) serial, (long) flags, (long) filenamelen,
41 label, fsname);
42 }
43 }
44 return 0;
45}
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000046
47Probably you can get that information also from the File Manager in
48Windows.
49
Alexandre Julliard829fe321998-07-26 14:27:39 +000050------------------------- end volinfo.c -----------------------------
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000051
52
53*** DRIVE LETTER
54
55Some installed programs only look for the CD-Rom in the drive letter
56that the CD-Rom had when the program was installed. In this case, make
57sure you use the correct letter, especially if you installed the
58program under Windows and are now trying to run it in Wine.
59Some programs reportedly store the drive letter in their .INI file,
60so you might look there and try to change it.