Ask Leo! by Leo A. Notenboom

Why can't my anti-virus program open certain files?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Viruses and Malware » Malware Detection

Summary: Depending on how anti-virus programs work, certain files may not be scanned. In some cases that's expected and nothing to worry about.

While running Antivir Personal Edition Classic, these 2 messages displayed: "[WARNING] C:\hiberfil.sys The file could not be opened!" & "[WARNING] C:\pagefile.sys The file could not be opened!" What do I do now?

Nothing.

I'm not at all surprised that those files can't be scanned. Depending on the technology used by your anti-virus program, and whatever else your computer is doing at the time, there may be other files that cause this as well.

The reason's actually pretty simple.

When a program opens a file in Windows it can specify whether other programs should be allowed to access the file at the same time, or that they should be prevented from doing so.

In the later case, when a program has opened a file in such a way as to disallow access by others, the most common error message you'll see typically has the phrase " file in use". Program A has "locked" the file, and when program B comes along to try and access that file it finds that it cannot, and thus reports that the file is in use.

That's essentially what's happening here: Windows itself is program A, and your antivirus program is program B.

The file pagefile.sys is the Windows virtual memory or "paging file". It's opened by Windows when it boots, and it locked the entire time that Windows is running. Only Windows itself can access the paging file.

The file hiberfil.sys is the Windows hibernation file. When you put your machine into hibernation (which is different than standby) Windows writes a complete image of system memory to the hibernation file. When you restart from hibernation, that image is simply reloaded into memory. Like the paging file Windows keeps the hibernation file locked; only Windows is allowed to read or write the hibernation file.

So why don't all anti-virus programs produce these errors?

It's pretty simple actually: most know about the special nature of these files, and either don't even try to scan them, or don't bother reporting the error if the attempt to do so fails.

Is that a risk? Not really. It's exceptionally rare that a virus would appear only in memory and not also on disk somewhere. By definition a virus would have to be written to disk in order to survive a reboot. And both of these files are simply representations of and management systems for memory.

The bottom line for me is simply to ignore the warnings for those two files.

If you see the same warning on other files, then you'll probably want to investigate. The most common cause is that there's another program running that has those files opened and locked. If you can, determine which program is doing so, and see if you can't shut down that program for the duration of your virus scan.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Article C3394 - May 25, 2008

Recent Comments
1 Comment

For me, the bottom line is if my virus scanner is THAT dumb, it's not a good scanner and should be dumped for something better. Fast.

Posted by: Randy at May 27, 2008 9:09 AM

Post a comment on "Why can't my anti-virus program open certain files?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!