Programming 笔记

工作中遇到的问题就记载这里

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
几天前, 电脑启动,进入WINDOWS 系统时, 屏幕出现一个小窗口显示lsass.exe System Error Object name not found.
点关闭或者OK, 计算机从新启动. 用SAFE MODE, 也是一样.
lsass.exe is a key process of windows xp. So system cannot load properly without this key process. That is why system try to reboot. The reason lsass.exe is lost maybe is removed by virus.

我先用xp cd修复了一次xp, 还是不行. 原来, 注册表已经乱了, 也就是说lsass.exe file 还在硬盘里, 只是指向他的注册信息被改乱了. 还好, xp 总是备份了很多注册表信息在硬盘上. 系统根本进不去,那怎么替换有错误的注册表呢.
读这片文章吧. 微软说不建议用在OEM版本上, 可我的系统就是OEM的,我大胆试试.  还好,一切都很顺利.
http://support.microsoft.com/kb/307545/en-us
How to recover from a corrupted registry that prevents Windows XP from starting

我没有用xp cd 上的recovery console, 因为我有更好的东东. 它是BART PE.  按下面文章试着烧一章CD.
注意两点:
1. i386 最好拷贝硬盘上的, 从CD上拷贝下来的,好象中途总是有warning.
2. win51ic.SPx or win51ip.SPx file 要拷贝过来, 我就是因为没COPY 这个FILE, 浪费了一章CD.
    如果你的XP没有SP1, 那就没事了.  SP2的我就不知道了.


COPY 完以后, 放进CD ROM, set bios boot from CD. 你会看到系统完全在用CD上的内容, 硬盘变成slave drive. 你也可以用很多TOOLS, 比如, 文件Explore, regedit.

我用这个CD boot in system, then replace old config file. Everything come back to normal.   HAHA

具体如何制作BART PE, 看这片文章.
http://www.nu2.nu/bootcd/#wxp
Bootable Windows XP installation CD-Rom (with SP1) [updated! dec 17, 2002]
This will show you how to create a bootable Windows XP Home Edition or Professional installation/setup CD-Rom. Optionally you can integrate (slipstream) service pack 1, and add other stuff you want to your CD. The boot catalog and the NT bootstrap loader are hidden, just like the original bootable Windows XP CD-Rom.

Joliet extensions are enabled by default, so you can have long filenames on the CD.
Note: This will not create a "dual" bootable XP CD with Home edition and Professional together on one CD.

The steps to create are:
  1. BCD installation instructions:

    Download BCD full package v1.1.1 (523KB).

    Or update from previous version: BCD update package (v1.1.0-v1.1.1) (5KB).
    When updating from previous versions, just extract the package over the previous version, overwrite any existing files. The bcd.cfg file will not get overwritten!

    Unpack the BCD package to some folder for example d:\bcd. If you want to be able to run it from a server you should unpack it to a share from where your workstations can run it. You will need to map a drive letter to that share and run bcd using that drive letter.
    Make sure you also unpack the subdirectories!

    Download wnaspi32.dll and copy it into BCD's d:\bcd\bin directory.

    I have asked Ahead Software AG if I could distribute their aspi manager with my BCD package but they said: "...due to our licence agreement you could only let your users download it freely from our web site...".

  2. Download Windows XP package v1.0 (wxp10.zip) (5KB).
    Unpack it into the BCD directory, d:\bcd.
    Make sure you also unpack the subdirectories!

    The Windows XP package contains the Windows XP bootstrap loader (same as Windows 2000) and some other files used to build the CD.

  3. You must copy the i386 folder from your Windows XP installation/setup CD-Rom.
    For Windows XP Home Edition copy it to the d:\bcd\cds\wxphome\files\ folder.
    For Windows XP Professional copy it to the d:\bcd\cds\wxppro\files\ folder.
    Make sure you copy all files and all subdirectories!

    If you're Windows XP files are already "slipstreamed" with a service pack you must also copy the win51ic.SPx or win51ip.SPx file.
    This will prevent the CD asking "put the SPx CD into drive A:" during install.

    The location of the i386 folder may differ, for example when you have a dual boot MSDN cd-rom it will be in \%lang%\winxp\%edition%, where %lang% is your language, like "ENGLISH", "GERMAN" and %edition% is "Home" or "Pro". Other CD's may have it just in the root or in some other location.

  4. Optionally you can also copy the following files (not needed for bootable CD installation):
    autorun.inf
    readme.htm
    setup.exe

  5. If you have a Windows XP CD from MSDN...
    Edit the file i386\txtsetup.sif
    section [SetupData], and change the setup source path, it should read: SetupSourcePath = "\"

  6. You can apply Service Pack 1 to this installation (integrated installation). So that you have an installation CD-ROM with the service pack built in.
    Apply service pack 1 to your files using the "-s" option (you must supply full path).

    For Windows XP Home edition:  xpsp1_en_x86.exe -s:d:\bcd\cds\wxphome\files\
    For Windows XP Professional: xpsp1_en_x86.exe -s:d:\bcd\cds\wxppro\files\

    Notes:
    • The Service Pack file can have another name, like xpsp1_nl_x86.exe for Dutch language.
    • The xpsp1_en_x86.exe can only be run on a Windows 2000 or XP PC!
    • You should now have a win51ic.sp1 or win51ip.sp1 file in the files directory. Check this, to prevent the CD asking "put the SP1 CD into drive A:" during install.

  7. All other files and folders you want on the CD-Rom must also be added to the files directory, these files will not be integrated in the Windows XP installation, they're just parked there. Things you could add are: latest patches, internet explorer, directx.

    Add your files to:
    For Windows XP Home edition: d:\bcd\cds\wxphome\files\.
    For Windows XP Professional: d:\bcd\cds\wxppro\files\.

  8. Open a command prompt, go to the d:\bcd folder and run:
    For Windows XP Home edition: bcd wxphome.
    For Windows XP Professional: bcd wxppro.
    This will build the (bootable) ISO image and burn it to your recorder.
posted on 2006-02-28 14:38  IT 笔记  阅读(1485)  评论(0编辑  收藏  举报