Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1 | *** VOLUME LABEL |
| 2 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 3 | If a program depends on the correct label and/or serial number for the |
| 4 | CD-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 | |
| 8 | You need read access to the device, so perhaps you have to do it as root. |
| 9 | Put the resulting string (without trailing blanks) into your |
| 10 | wine.ini/.winerc file like: |
| 11 | Label=<the label> |
| 12 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 13 | *** SERIAL NUMBER |
| 14 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15 | [FIXME: if someone knows how to get the serial number in Linux, please |
| 16 | put this information here]. |
| 17 | |
| 18 | If you have access to a Win32 system and C-compiler, you can compile the |
| 19 | following program to extract this information: |
| 20 | |
| 21 | ------------------------- begin volinfo.c --------------------------- |
| 22 | #include <windows.h> |
| 23 | #include <stdio.h> |
| 24 | |
| 25 | int 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 Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 46 | |
| 47 | Probably you can get that information also from the File Manager in |
| 48 | Windows. |
| 49 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 50 | ------------------------- end volinfo.c ----------------------------- |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 51 | |
| 52 | |
| 53 | *** DRIVE LETTER |
| 54 | |
| 55 | Some installed programs only look for the CD-Rom in the drive letter |
| 56 | that the CD-Rom had when the program was installed. In this case, make |
| 57 | sure you use the correct letter, especially if you installed the |
| 58 | program under Windows and are now trying to run it in Wine. |
| 59 | Some programs reportedly store the drive letter in their .INI file, |
| 60 | so you might look there and try to change it. |