cdrom-labels 2.02 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2
*** VOLUME LABEL

Alexandre Julliard's avatar
Alexandre Julliard committed
3 4 5 6 7 8 9 10 11 12
If a program depends on the correct label and/or serial number for the
CD-Rom, you can use the following command to extract that information:

      dd if=<your cdrom device> bs=1 skip=32808 count=32

You need read access to the device, so perhaps you have to do it as root.
Put the resulting string (without trailing blanks) into your
wine.ini/.winerc file like:
Label=<the label>

Alexandre Julliard's avatar
Alexandre Julliard committed
13 14
*** SERIAL NUMBER

Alexandre Julliard's avatar
Alexandre Julliard committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
[FIXME: if someone knows how to get the serial number in Linux, please
        put this information here].

If you have access to a Win32 system and C-compiler, you can compile the
following program to extract this information:

------------------------- begin volinfo.c ---------------------------
#include <windows.h>
#include <stdio.h>

int main(int argc,char **argv[])
{
    char  drive, root[]="C:\\", label[1002], fsname[1002];
    DWORD serial, flags, filenamelen, labellen = 1000, fsnamelen = 1000;

    printf("Drive Serial     Flags      Filename-Length "
           "Label                 Fsname\n");
    for (drive = 'C'; drive <= 'Z'; drive++)
    {
        root[0] = drive;
        if (GetVolumeInformationA(root,label,labellen,&serial,
                                  &filenamelen,&flags,fsname,fsnamelen))
        {
            strcat(label,"\""); strcat (fsname,"\"");
            printf("%c:\\   0x%08lx 0x%08lx %15ld \"%-20s \"%-20s\n",
                   drive, (long) serial, (long) flags, (long) filenamelen,
                   label, fsname);
        }
    }
    return 0;
}
Alexandre Julliard's avatar
Alexandre Julliard committed
46 47 48 49

Probably you can get that information also from the File Manager in
Windows.

Alexandre Julliard's avatar
Alexandre Julliard committed
50
------------------------- end volinfo.c -----------------------------
Alexandre Julliard's avatar
Alexandre Julliard committed
51 52 53 54 55 56 57 58 59 60


*** DRIVE LETTER

Some installed programs only look for the CD-Rom in the drive letter
that the CD-Rom had when the program was installed. In this case, make
sure you use the correct letter, especially if you installed the
program under Windows and are now trying to run it in Wine.
Some programs reportedly store the drive letter in their .INI file,
so you might look there and try to change it.