简体   繁体   English

默认情况下是否禁用USN日记?

[英]Is the USN journal disabled by default?

In my backup application I am using USN journal to check changes to the volume. 在备份应用程序中,我正在使用USN日志来检查卷的更改。 By default USN is disabled or enabled? 默认情况下,USN是禁用还是启用? In this link (old article)it was mentioned like "By default, an NTFS volume will have its Change Journal disabled" .I didn't get much information about it in any website. 此链接 (旧文章)中,它被提及为“默认情况下,NTFS卷将禁用其Change Journal”。在任何网站上我都没有得到太多有关它的信息。 Is it really disabled on NTFS drive or Is it based on OS? 是在NTFS驱动器上真正禁用它还是基于OS? It's important to me because I use it in my application. 这对我很重要,因为我在应用程序中使用了它。

It's generally on in Windows XP, Vista, 7, 8, Server 2003, Server 2008, and Server 2012. But, I've seen it off in each and every one of these version, so you can't rely on it just being on. 它通常安装在Windows XP,Vista,7、8,Server 2003,Server 2008和Server 2012中。但是,我在这些版本的每个版本中都看到过它,因此您不能仅仅依靠它上。 I've seen articles and q/a where users are told to delete it to save space. 我见过文章和问答,告诉用户删除它以节省空间。 You can query whether it's off or on here . 您可以在这里查询它是关闭还是打开。

You can turn it off and on (or grow it) here . 您可以在此处将其关闭然后再打开(或增大)。

The article you've referenced is an oldie but a goody. 您所引用的文章虽然很老套,但却是好东西。 Windows 2000 was the brave new world when that was written. 编写Windows 2000时,这是一个勇敢的新世界。

There is also a tool called fsUtil available in Windows XP,Vista, 7, 8, Server 2003, Server 2008, and Server 2012 that will let you query the USN journal, turn it off/on, and grow it from the command line. Windows XP,Vista,7、8,Server 2003,Server 2008和Server 2012中也提供了一个名为fsUtil的工具,该工具可让您查询USN日记,将其关闭/打开,并从命令行进行扩展。

I think it's disabled by default, because it consumes resources, and if nobody needs the journal, then it would be a waste. 我认为默认情况下它是禁用的,因为它消耗资源,如果没有人需要日志,那将是浪费。 Anyway, the real answer is that you can't depend on this knowledge. 无论如何,真正的答案是您不能依赖此知识。 It may be dependent on many of things. 它可能取决于很多事情。 Even if there is a default, any user may have enabled/disabled the journal manually. 即使有默认设置,任何用户都可能手动启用/禁用了日记。 If you depend on the journal, then you have to check if it's enabled, and if not, then enable it. 如果您依赖日记帐,则必须检查它是否已启用,如果没有,则要启用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM