VMware Workstation unrecoverable error (disk error while paging) has occurred

为了方便,虚拟机都是采用挂起状态,今天在启动虚拟机的时候出现如下提示错误:

VMware Workstation unrecoverable error: (vmx)
Exception 0xc0000006 (disk error while paging) has occurred.
A log file is available in “F:\vmware\RHEL5.4-RHCE-Server\vmware.log”.  A core file is available in “F:\vmware\RHEL5.4-RHCE-Server\vmware-vmx-3148.dmp”.  Please request support and include the contents of the log file and core file. 
To collect data to submit to VMware support, choose “Collect Support Data” from the Help menu.
You can also run the “vm-support” script in the Workstation folder directly.
We will respond on the basis of your support entitlement.

查看日志:

Jun 23 17:06:28.967: vmx| Warning: the system was unable to load a page of memory; this can be caused by network problems or a failing hard disk drive.
Jun 23 17:06:28.967: vmx|
Jun 23 17:06:28.967: vmx| Msg_Post: Error
Jun 23 17:06:28.967: vmx| [msg.log.error.unrecoverable] VMware Workstation unrecoverable error: (vmx)
Jun 23 17:06:28.967: vmx| Exception 0xc0000006 (disk error while paging) has occurred.
Jun 23 17:06:28.967: vmx| [msg.panic.haveLog] A log file is available in “F:\vmware\RHEL5.4-RHCE-Server\vmware.log”.  [msg.panic.haveCore] A core file is available in “F:\vmware\RHEL5.4-RHCE-Server\vmware-vmx-3148.dmp”.  [msg.panic.requestSupport.withLogAndCore] Please request support and include the contents of the log file and core file.  [msg.panic.requestSupport.vmSupport.windows]
Jun 23 17:06:28.967: vmx| To collect data to submit to VMware support, choose “Collect Support Data” from the Help menu.
Jun 23 17:06:28.967: vmx| You can also run the “vm-support” script in the Workstation folder directly.
Jun 23 17:06:28.967: vmx| [msg.panic.response] We will respond on the basis of your support entitlement.
Jun 23 17:06:28.967: vmx| —————————————-

开始以为虚拟内存出现问题,重启机器问题依旧。

GOOGLE之

解决方法:删除或修改虚拟机目录下拓展名为.vmss文件,再次启动即可。

redhat 修改字体

前几天在图形界面将语言设置为中文,然后系统重启后乱码了,才想到没安装中文语言包
也懒得再去装,今天用的时候,忘了编辑哪个配置文件了,一搜又想起来。今儿就写在这里吧
别以后又忘了~~~
vi  /etc/sysconfig/i18n
LANG=”en_US.UTF-8″           (    or    LANG=”zh_CN.UTF-8″)
SYSFONT=”默认”
记得在修改为中文时,不要忘记先安装语言包,否则~~~
乱了~

关闭 数据执行保护

公司试用的是IMAIL 做的邮件服务器,配置完成后,重启机器出现提示,数据执行保护阻止了程序的运行,导致IMAIL 崩溃。
打开“数据执行保护”方法: 右键 我的电脑 => 属性 => 高级 选项卡 
在性能那点设置 => 数据执行保护
“数据执行保护”对话框提供以下两个选项:
? 仅为基本 Windows 程序和服务启用 DEP
? 为除下列选定程序之外的所有程序和服务启用 DEP
通过选择其中一个选项,您可以排除一个或多个应用程序,或者为整个计算机配置 DEP 设置。如果设置“关闭 DEP”选项,则会为当前运行的 Windows 安装的 boot.ini 配置文件添加一个开关。boot.ini 开关如下所示:
/noexecute — 这是默认开关。启用 DEP。
/execute — 禁用 DEP 。
 /noexecute=ALLWAYSOFF 禁用 DEF 。   //我是这么做的
 /noexecute=optin 相当于 仅为基本 Windows 程序和服务启用 DEP
注意:建议您不要全局性地禁用 DEP。这会使计算机处于不太安全的状态。

也可以在“系统”属性中访问这些 DEP 设置。

如果没有适用于您的应用程序的更新,请按照下列步骤操作以访问和配置 DEP 配置设置:1. 在应用程序出现错误时,单击“高级”。
2. 在“数据执行保护”对话框中,选择“帮助保护除下列程序之外的所有程序:”
3. 单击应用程序旁边的复选框,然后单击“应用”。
4. 这时会出现一个提示,告诉您必须重新启动系统。单击“确定”。
5. 再次单击“确定”,然后重新启动系统。
也可以在“系统”属性中执行此过程:1. 单击“开始”,然后单击“控制面板”。
2. 在经典视图中,双击“系统”。
3. 单击“高级”选项卡,单击“性能”,然后单击“设置”。
4. 在“性能选项”对话框中,单击“数据执行保护”选项卡。
5. 选择“为所有程序和服务启用 DEP,但我选择的程序和服务除外:”,然后单击“添加”。
6. 在“打开”对话框中,找到并选择该应用程序,然后单击“打开”。
7. 单击“应用”,然后单击“确定”。将出现一个提示,通知您必须重新启动系统后设置才能生效。单击“确定”。

关闭方法如下
右击我的电脑-属性-高级-启动和故障恢复-设置-弹出窗口中点击 编辑
然后在弹出的记事本中的
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=”windows XP ” /noexecute=Opton /fastdetect 中 将noexecute= 后面的数值改为 alwaysoff
重启
如果不想关闭,那么就添加explorer进排除列表,右击我的电脑-属性-高级-性能-设置-数据执行保护-选中“为除下列选定程序….”,然后点击下面的添加,定位到 c:\windows\下,将explorer添加进列表
不过这样比较麻烦,DEF可能还会终止别的程序,那么就要把那些程序也加进来,麻烦,不如直接关了DEF

注册表禁用、启用USB设备方法

禁用启用USB设备方法。(修改CMOS的就不说了,没啥意思) (网上搜刮而来,经过实际测试···pass—) 禁用USB存储.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR] “Start”=dword:00000004 解除禁用USB存储.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR] “Start”=dword:00000003USB 设备设置只读类型.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\StorageDevicePolicies] “WriteProtect”=dword:00000001 解除USB设备设置只读类型.reg Windows Registry Editor Version 5.00 [-HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\StorageDevicePolicies] ps批处理命令: @echo off color 0a title 禁用/启用USB设备 echo. echo. echo 1.禁用USB设备 echo 2.恢复USB设备 echo 3.退出 echo. echo. SET /P aa= 请输入数字选择: echo. if %aa%==1 goto :jz if %aa%==2 goto :qy if %aa%==3 exit exit ::改为4禁用 :jz reg add “HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR” /f /v “Start” /t REG_DWORD /d 4 rundll32 user32.dll,UpdatePerUserSystemParameters pause&exit ::改为3启用 :qy reg add “HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR” /f /v “Start” /t REG_DWORD /d 3 rundll32 user32.dll,UpdatePerUserSystemParameters pause