How can I get rid of hiberfile.sys

  • Thread starter Thread starter Allen
  • Start date Start date
A

Allen

I turned off Hibernate and rebooted but I still have a BIG hiberfile.sys

As an experiment I tried changing the name and was told the file is in use.

How can I get rid of it?

I assume it would get regenerated it I turn Hibernate back on. Correct?




Thanks


As an experiment I tried changing the name and was told the file is in use.
 
Go into the DOS prompt in Windows (Start>Run>Command prompt)and type the
following:

cd c:\

c:\
At the prompt type:

c:\attrib -h -r -s hiberfil.sys

This will clear all attributes for the file, unlocking it.

Then type:

c:\del hiberfil.sys /p

It should then delete. If you choose to go back to hibernation mode, then
yes hyberfil.sys will be recreated.

Tim
 
Thanks, I'll do that now


Tim.T said:
Go into the DOS prompt in Windows (Start>Run>Command prompt)and type the
following:

cd c:\

c:\
At the prompt type:

c:\attrib -h -r -s hiberfil.sys

This will clear all attributes for the file, unlocking it.

Then type:

c:\del hiberfil.sys /p

It should then delete. If you choose to go back to hibernation mode, then
yes hyberfil.sys will be recreated.

Tim
 
Hmm. "Go into the DOS prompt", "command.com"?
Bad advice in two regards:

1. There is no DOS under WinXP. DOS is an operating system
on its own. You meant the "Command Prompt".

2. "command.com" is a legacy command processor. It should
not be used because it has limited functionality. The correct
command processor is "cmd.exe".
 
Whatever my errors, I still showed him where to find the prompt, namely
Start>Run>Command Prompt. . And I have deleted a stubborn hiberfil.sys file
myself following the same instructions.

What is the difference between Command Prompt and DOS? Judging by the
definitions of DOS I have seen, surely the Command Prompt *is* DOS? When I
used windows98, it had DOS, yes, but a lot of those same commands can still
be used through XP via the Command Prompt. If you type help at the Prompt,
what are all those commands if they aren't DOS commands?

You called it "bad advice"....but you didn't offer an alternative. Please
feel free.

Tim
 
Start | Run | Type: command | Click OK

What opens?

command.com is the MS-DOS Prompt

Start | Run | Type: cmd | Click OK

What opens?

cmd.exe is Windows XP command interpreter.

Either command.com or cmd.exe are command prompts.

Windows XP does not have MS-DOS, but a lot of the XP commands are still the
same as the old DOS commands. Windows XP has an MS-DOS emulator.

[[Windows XP retains and enhances almost all MS-DOS functionality. The
following tables explain:]]
New ways to do familiar tasks
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dos_diffs.mspx

or
Start | Run | Copy and paste the following line:

hh ntcmds.chm::/dos_diffs.htm

Click OK.

Scroll down to Unavailable MS-DOS Commands

MS-DOS subsystem commands
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dos_cmds.mspx

or
Start | Run | Paste this in the box and click OK...

hh ntcmds.chm::/dos_cmds.htm

There is, however, in all NT Operating Systems, a 16 bit MS-DOS Subsystem.

command.com is the MS-DOS command interpreter and runs under ntvdm.exe (NT
Virtual Dos Machine). ntvdm.exe emulates an Intel 80286 machine running
MS-DOS. NT uses a VDM that contains an extra software layer called the
Win16 on Win32 (WOW) layer and wowexec.exe (Windows On Windows Execution
Process) supplies that extra layer.

The 16 bit MS-DOS Subsystem uses a special version of command.com and
command.com uses autoexec.nt and config.nt.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
As I said, DOS is an operating system. The Command Prompt
gives you a DOS look-alike but there are huge differences. Many
commands that work in DOS will not work in the Command
Prompt, and vice versa. For example: A few days ago some
poster got quite frustrated because he was unable to run a
DOS-based partition table editor from the Command Prompt.
If he had known that the Command Prompt and DOS are
different things then he would not have had a problem. So,
in the interest of good and accurate advice: Let's call it the
Command Prompt under WinXP, and DOS when you boot
the machine with a DOS boot disk.

About your second point: I mentioned in my reply that cmd.exe
is the correct command processor to use, not command.com.
Other than this your reply was correct, hence there was no
need to direct the OP elsewhere.
 
Back
Top