The lady who bought the computer decided to clean it up a bit by removing all the stickers -- well guess what? There goes the CD key sticker too. I have actually experienced this scenary twice in real life!!! Interesting that in both cases it was a woman who wanted her computer to look pretty, and didn't realize she was violating her license with Microsoft. Sorry Microsoft, but I have to side with the poor folks who do this. They aren't lawyers and they don't know about software piracy, and they don't understand all the measures taken to prevent it.
To make matters worse, now (months or years after the stickers were removed) a repair-install of Windows XP was started for some unknown reason by some unqualified jackass who didn't even check to see if there was a CD key handy. Now it is impossible to boot Windows even in safe mode, and there is no CD key to complete the install. You can't run a simple CD key viewer because you do not have the luxury of Windows.
Now type "df" to see where it was mounted. Usually this is under /mnt/hda1 or something like that.
Search for the following string, "506c6174" (which is actually part of "DigitalProductId" in little endian byte order ("Plat" ... do you see it? 0x74=='t', 0x61=='a', 0x6c=='l', and 0x50=='P'). You will find several of these. The one we want looks similar to the following:
00000003 00000001 69676944 506c6174
75646f72 64497463 ffffff58 000000a4
00000003 37323535 454f2d34 30302d4d
38353331 39342d34 00303034 0000002d
2d323241 30303030 00000031 00000000
1031eb71 2b9bc618 595f64e3 0001cbca
Keep in mind this is little endian byte order. In little endian byte order, abcdefgh becomes ghefcdab. Knowing that, 1031cb70 is actually 70cb3110. Move from left to right as you look at each 4 byte chunk. Taking apart each chunk requires going from right to left separating the bytes. Continue this way chopping off 2 characters at a time. Each 2 characters makes one byte. Then, the raw product key for this system is the red portion, and taken apart correctly is:
(If you can't see how this works, then you are really missing the whole point of how to do this. Keep studying until you understand it, or you will never get your CD key.)
If you don't have another computer handy to run KeyViewer on, then how are you reading this web page?!?
Note 2: If the computer refuses to boot and continue the Windows XP install due to a corrupt or missing C:\Windows\System32\Config\System file, boot to "repair" mode from the Windows XP CDROM, then rename the existing system file to system- then copy system.sav to system as follows:
Note 3: If windows is still messed up, use google. I don't have your answer.
Ken takes no responsibility for damages you do to your computer as a result of following the instructions in this article. If you need this document, you are in dire straights anyways so don't com crying to me.
There is probably some utility or Linux CD that will automatically do all this for you. I haven't found it, but it seems like it should be done.