Windows 7 GnuPG在生成密钥时卡住
我正在尝试使用Windows 7 GnuPG在生成密钥时卡住,windows-7,gnupg,Windows 7,Gnupg,我正在尝试使用GPG.exe--gen key命令生成GPG密钥。输入包括密码短语在内的所有详细信息后,流程陷入循环并不断重复以下消息 gpg: NOTE: you should run 'diskperf -y' to enable the disk statistics gpg: DBG: rndw32: get performance data problem gpg: NOTE: you should run 'diskperf -y' to enable the disk statis
GPG.exe--gen key
命令生成GPG密钥。输入包括密码短语在内的所有详细信息后,流程陷入循环并不断重复以下消息
gpg: NOTE: you should run 'diskperf -y' to enable the disk statistics
gpg: DBG: rndw32: get performance data problem
gpg: NOTE: you should run 'diskperf -y' to enable the disk statistics
gpg: DBG: rndw32: get performance data problem
gpg: NOTE: you should run 'diskperf -y' to enable the disk statistics
gpg: DBG: rndw32: get performance data problem
我正在Windows7上使用gnupg-w32-1.0.6。有人能帮忙吗?我仍然不知道上述问题的原因和解决方法。我在另一台机器上试过同样的方法,结果成功了。所以我只是把文件夹
C:\gnupg
复制到我的机器上,从此一切都开始正常工作。看起来gpg无法在此计算机上生成密钥。来自rndw32.c:
/* Get disk I/O statistics for all the hard drives */
for (nDrive = 0;; nDrive++) {
char diskPerformance[SIZEOF_DISK_PERFORMANCE_STRUCT];
char szDevice[50];
/* Check whether we can access this device */
sprintf (szDevice, "\\\\.\\PhysicalDrive%d", nDrive);
hDevice = CreateFile (szDevice, 0, FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, 0, NULL);
if (hDevice == INVALID_HANDLE_VALUE)
break;
/* Note: This only works if you have turned on the disk performance
* counters with 'diskperf -y'. These counters are off by default */
if (DeviceIoControl (hDevice, IOCTL_DISK_PERFORMANCE, NULL, 0,
diskPerformance, SIZEOF_DISK_PERFORMANCE_STRUCT,
&dwSize, NULL))
{
if ( debug_me )
log_debug ("rndw32#slow_gatherer_nt: iostats drive %d\n",
nDrive );
(*add) (diskPerformance, dwSize, requester );
}
else {
log_info ("NOTE: you should run 'diskperf -y' "
"to enable the disk statistics\n");
}
CloseHandle (hDevice);
}
如果您使用的是远程连接,那么解决方案可能是:
(摘自microfocus.com)
如果有人在本地计算机上遇到此问题,可能答案是启用此问题的另一种方式:
检查是否已使用此命令启用:
DISKPERF
如果不是,请尝试通过以下方式启用:
DISKPERF - Y
我知道这篇文章已经有两年的历史了,但由于我在Debian操作系统上使用GPG时遇到了类似的问题,并且我在其他网站上找到了相当多的完整答案,我想这可以为其他网站节省一些时间
顺便说一句,在我的情况下,我没有陷入困境。您提到的循环可能是因为它试图从系统上安装的多个磁盘获取静态数据/报告?什么是rndw32?我相信这是有人需要寻找的地方。
DISKPERF - Y