Does disabling pagefile.sys delete it from the system?

problemo

New member
For security reasons, I want to delete the contents stored inside pagefile.sys securely with very slim chance of recovering it. I thought about backing up my files and doing a reformat of my PC and then using Eraser to wipe free space. But this is a time-consuming method. What is the fastest way to securely delete the pagefile.sys? Would disabling pagefile.sys and then using Eraser to wipe free space work? Or is pagefile.sys simply hidden when it is disabled?
 

My Computer

Computer Manufacturer/Model Number
HP Elite PC
OS
Windows 7 Home Premium 64-bit
CPU
Intel Core2 Quad 8300 @ 2.5GHz
Memory
8GB
Graphics Card(s)
ATI Radeon 4800 Series
Monitor(s) Displays
Dell 23" Widescreen
Screen Resolution
1920x1080
Hard Drives
685GB SATA3G
Case
HP Elite
Keyboard
HP Keyboard
Mouse
Microsoft optical mouse
Internet Speed
1MBps download / 60kbps upload
It deletes the page file when you deselect it in Advanced System Options.

You can wipe the space using CCleaner's function that wipes empty disk space after running the Cleaner (to empty Recycle Bin), but to wipe the HD securely with Diskpart Clean All Command really requires removing all the data first.
 
It deletes the page file when you deselect it in Advanced System Options.

You can wipe the space using CCleaner's function that wipes empty disk space after running the Cleaner (to empty Recycle Bin), but to wipe the HD securely with Diskpart Clean All Command really requires removing all the data first.
Thanks for the quick response.

After setting the pagefile to 16mb and restarting my computer, my screen kept flickering every 4 seconds? The original pagefile size was at 8GB. I also have 8GB physical RAM with quad core processor.

I also noticed the free space in C drive changed. This would mean if I wiped the free space with DOD algorithm (~360/685GB free space), the contents previously stored inside pagefile.sys would be unrecoverable? And the same would apply for hiberfil.sys?
 

My Computer

Computer Manufacturer/Model Number
HP Elite PC
OS
Windows 7 Home Premium 64-bit
CPU
Intel Core2 Quad 8300 @ 2.5GHz
Memory
8GB
Graphics Card(s)
ATI Radeon 4800 Series
Monitor(s) Displays
Dell 23" Widescreen
Screen Resolution
1920x1080
Hard Drives
685GB SATA3G
Case
HP Elite
Keyboard
HP Keyboard
Mouse
Microsoft optical mouse
Internet Speed
1MBps download / 60kbps upload

My Computer

Computer Manufacturer/Model Number
HP Elite PC
OS
Windows 7 Home Premium 64-bit
CPU
Intel Core2 Quad 8300 @ 2.5GHz
Memory
8GB
Graphics Card(s)
ATI Radeon 4800 Series
Monitor(s) Displays
Dell 23" Widescreen
Screen Resolution
1920x1080
Hard Drives
685GB SATA3G
Case
HP Elite
Keyboard
HP Keyboard
Mouse
Microsoft optical mouse
Internet Speed
1MBps download / 60kbps upload
Been running with no pagefile for ages, just letting it operate in RAM, no glitches... but obviously you do need enough memory installed to do that...
 

My Computer

Computer Manufacturer/Model Number
Custom built machine
OS
W7 x64
CPU
Intel Q9300 2.5Ghz Quad LGA775 (Would like Q9650)
Motherboard
Gigabyte GA-EP45T-UD3R (F6 Bios)
Memory
4Gb OCZ Gold 1,333Mhz
Graphics Card(s)
Palit HD4850 O/C Sonic 512Mb DDR3, Dual DViD's
Sound Card
Azalia to twin Samson 50w Studio Monitors
Monitor(s) Displays
Twin Dell (E-IPS) U2311H 23.6" Screens
Screen Resolution
1920 x 1080 @ 60Hz
Hard Drives
Crucial M4 SSD, archives on twin Western Digital Caviar Black WD2002FAEX, 2TB, 7200rpm HDD's, Samsung Ritemaster CD/DVD Burner...
PSU
OCZ 600w
Case
Lian-Li PC8 acoustifoamed' aluminium tower
Cooling
Scythe 140mm Zipang
Keyboard
Cherry PS/2 custom model
Mouse
Lenovo USB laser "Thinkpad" Mouse
Internet Speed
ADSL2+ @14Mbps downstream & Cat6 Gigabit Ethernet
Antivirus
NOD32
Browser
Opera
Other Info
Silicon Dust HD Homerun Dual FTA (Ethernet) TV Tuners, Dray Tek Vigor 2850Vn router and 8x HP Gigabit Switch. Lian-Li CR26 Card Reader, Canon MF4430 iSensys laser printer/scanner.
Page file needed for system dumps (remote chance). But not a showstopper.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7
CPU
AMD Phenom II X2 (dual-core)
Motherboard
GA-MA785GM-US2H
Memory
4G
Graphics Card(s)
integrated ATI HD 4200
Sound Card
integrated
Monitor(s) Displays
Samsung 24"
Screen Resolution
1920x1080
Hard Drives
1 SSD - Samsung 840 - 500 GB - OS and DATA partitions
1 SSD - Intel 320 - 120 GB (used for backups) - Misc/BACKUP
1 SATA HD - WD, 500 GB - BACKUP
PSU
Ultra X4 500W
Case
Ultra X-blaster
Keyboard
Microsoft Digital Media Pro
Mouse
Logitech WIRED!
Internet Speed
15 Mbps FIOS
For some reason, when I had it set to not use the page file, sometimes on boot, the OS would pop an alert, saying that it had a problem creating the page file in the allotted space, and that it made one on it's own, that may be larger than I had set. I never understood that, first because it was disabled, and second because I couldn't find a pagefile.sys, either in the partition I had previously created for that purpose, or on C:. Now that I have enabled it on it's own partition, the OS remains quiet.
 

My Computer

Computer Manufacturer/Model Number
DIY
OS
W7x64 Pro, SuSe 12.1/** W7 x64 Pro, XP MCE
CPU
Phenom II 1090T w/Noctua NH-D14 /**4400+ X2 w/CM Hyper TX 3
Motherboard
ASRock 890FX Deluxe 4/**A8N-SLI
Memory
2 x 2GB Patriot PGS34g1600LLKA/**4x1GB Corsair VS
Graphics Card(s)
EVGA GTX460 SC/**EVGA 8800GTS
Sound Card
Asus Xonar D2X/**Xonar D1
Monitor(s) Displays
Acer X233H, Dell E152FPc /**LG M237-WD
Screen Resolution
1920x1080 & 1024x768/**1980x1080
Hard Drives
WDC 2TB, 1.5TB, 1TB, 500GB,Seagate 500GB , Maxtor 80GB /**500GB Seagate & WDC 1TB Black
PSU
CM RS600 w/ APC BX1000G/**Antec 500 TP w/ APC BX1000
Case
HAF922/**Antec 1040IIB
Cooling
3x200mm, 1x140 and 1x120mm/**5x80mm fans
Keyboard
Logitech Media USB/**Saitek Eclipse
Mouse
Cordless Trackman Wheel/**Ditto
Internet Speed
3.3Mbps
Other Info
SB 560 5.1 w/ Sennheiser RS140/**Creative T20 speakers, Dvico FusionHDTV7 Gold RT, Cisco E3000, HP 5510V AIO, Linksys E3000, Belkin F5U237 hub and **F5D8055 adapter
(** = 2nd rig)
Likely.

I would let the system manage your page file.
Is there any reason why it might not?

If you set a size it will not be system-managed. I'd choose the System-managed option.

View attachment 190716click image to enlarge
I meant to ask if there is any reason the contents inside pagefile.sys/hiberfil.sys (so far) would be recoverable after I disable it, then use free space wipe on C: drive? I am asking this because I have a Truecrypt container that I opened on my OS (without fully encrypting the partition). I don't want the password key or contents inside the container to be inside pagefile.sys or hiberfil.sys.
 

My Computer

Computer Manufacturer/Model Number
HP Elite PC
OS
Windows 7 Home Premium 64-bit
CPU
Intel Core2 Quad 8300 @ 2.5GHz
Memory
8GB
Graphics Card(s)
ATI Radeon 4800 Series
Monitor(s) Displays
Dell 23" Widescreen
Screen Resolution
1920x1080
Hard Drives
685GB SATA3G
Case
HP Elite
Keyboard
HP Keyboard
Mouse
Microsoft optical mouse
Internet Speed
1MBps download / 60kbps upload
If you want to encrypt the paging file then, since Vista, Windows has a native utility.

Open an elevated Command Prompt, and to encrypt the page file, enter...

fsutil behavior set encryptpagingfile 1

Rebooting is required for this to take effect; and to turn off the facility change the final 1 to a 0 figure and reboot again...

There is a price to pay in performance terms though, because R/W paging operations take longer.

Just don't ask me how secure the encryption is, but I expect Google will know... ;)
 

My Computer

Computer Manufacturer/Model Number
Custom built machine
OS
W7 x64
CPU
Intel Q9300 2.5Ghz Quad LGA775 (Would like Q9650)
Motherboard
Gigabyte GA-EP45T-UD3R (F6 Bios)
Memory
4Gb OCZ Gold 1,333Mhz
Graphics Card(s)
Palit HD4850 O/C Sonic 512Mb DDR3, Dual DViD's
Sound Card
Azalia to twin Samson 50w Studio Monitors
Monitor(s) Displays
Twin Dell (E-IPS) U2311H 23.6" Screens
Screen Resolution
1920 x 1080 @ 60Hz
Hard Drives
Crucial M4 SSD, archives on twin Western Digital Caviar Black WD2002FAEX, 2TB, 7200rpm HDD's, Samsung Ritemaster CD/DVD Burner...
PSU
OCZ 600w
Case
Lian-Li PC8 acoustifoamed' aluminium tower
Cooling
Scythe 140mm Zipang
Keyboard
Cherry PS/2 custom model
Mouse
Lenovo USB laser "Thinkpad" Mouse
Internet Speed
ADSL2+ @14Mbps downstream & Cat6 Gigabit Ethernet
Antivirus
NOD32
Browser
Opera
Other Info
Silicon Dust HD Homerun Dual FTA (Ethernet) TV Tuners, Dray Tek Vigor 2850Vn router and 8x HP Gigabit Switch. Lian-Li CR26 Card Reader, Canon MF4430 iSensys laser printer/scanner.
If you want to encrypt the paging file then, since Vista, Windows has a native utility.

Open an elevated Command Prompt, and to encrypt the page file, enter...

fsutil behavior set encryptpagingfile 1

Rebooting is required for this to take effect; and to turn off the facility change the final 1 to a 0 figure and reboot again...

There is a price to pay in performance terms though, because R/W paging operations take longer.

Just don't ask me how secure the encryption is, but I expect Google will know... ;)
I just can't seem to trust these options from Windows. A user from another forum mentions the option to delete pagefile at shutdown doesn't in fact delete it:
Wiping page file
 

My Computer

Computer Manufacturer/Model Number
HP Elite PC
OS
Windows 7 Home Premium 64-bit
CPU
Intel Core2 Quad 8300 @ 2.5GHz
Memory
8GB
Graphics Card(s)
ATI Radeon 4800 Series
Monitor(s) Displays
Dell 23" Widescreen
Screen Resolution
1920x1080
Hard Drives
685GB SATA3G
Case
HP Elite
Keyboard
HP Keyboard
Mouse
Microsoft optical mouse
Internet Speed
1MBps download / 60kbps upload
Back
Top