Re: Location of cache file for EWF

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thank you, KM.
Yes, I mean cache file pagefile and it is located on the different partition
on the same drive as boot disk.

When I run chkdsk for D drive, system answers it will be run at the next
boot. This setting is actually set to protected system disk. The setting for
the running chkdsk will be lost at the time of the next boot, since it is
written on the protected partition. In other word, the setting of running
chkdsk in the boot sequence won't be written to the system disk.

In order to run it actually, we need to disable the EWF function, but I
don't think it is a good idea to let the customer to turn off EWF.

I'd like to know if there is a good solution for this.
Is there an automated way to do the following process?
1. Turn off EWF (reboot)
2. Set chkdsk -> reboot -> running chkdsk
3. Turn EWF back on (reboot)

I have followed the instruction "EWF Performance Considerations"
http://msdn2.microsoft.com/en-us/library/ms912916.aspx
Especially with following items.

"Changing the Location of the pagefile"
http://msdn2.microsoft.com/en-us/library/ms912851.aspx
Key Name: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory
Management\
Value Name: PagingFiles
Type: REG_MULT_SZ
Data: D:\temp\pagefile.sys 150 500

"Changing the Location of the Temporary Files Folder"
http://msdn2.microsoft.com/en-us/library/ms940828.aspx
1. Modify one or both of the following registry keys on your run-time
image:

Key: HKEY_CURRENT_USER\Software\Microsoft\Windows\Current
Version\Explorer\User Shell Folders
Name: Cache
Type: REG_EXPAND_SZ
Value: D:\temp
- or -

Key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders
Name: Cache
Type: REG_EXPAND_SZ
Value: D:\temp

2. You can also redirect the TMP and TEMP folders to an unprotected
volume by modifying the following registry settings:

Key: HKEY_CURRENT_USER\Environment
Name: TEMP
Type: REG_SZ
Value: D:\temp

Key: HKEY_CURRENT_USER\Environment
Name: TMP
Type: REG_SZ
Value: D:\temp

Thanks,
HA


"KM" wrote:

If by "cache file" you meant pagefile, then yes, it is recommended to move it out of the protected volume.

Assuming your drive D is a separate disk in the target hardware from the boot disk.
If you second disk is unprotected, chkdsk will run at the system boot if the dirty flag was set on that drive. It should not do that
again on the next boot if the disk was unprotected (so that the dirty flag can be cleaned and the change is persistent).

--
=========
Regards,
KM


I heard it is recommended to locate cache file out of EWF volume. However, if
I locate it on D dirve, it will be difficult to run chkdsk to D drive.
It won't run directly and runs after boot time. However, the setting chkdsk
after boot is canceled by EWF function.
Actually, it won't be possible to run chkdsk at the customer side.

What is the solution for this problem?
Thanks for your help.



.



Relevant Pages

  • Re: Installed SP3 - Disk Read Error, Press Ctrl+Alt+Del to Restart
    ... They only thing your can do is to boot from a CD then run Chkdsk /f or chkdsk /r to repair the file systems. ... Notice that they did not even mention that your disk is bad and you need to purchase a new disk because this is untrue. ... Hopefully you have a backup image that you can copy your profile and data to the backup image and then restore the image to get the machine to boot again. ...
    (microsoft.public.windowsxp.general)
  • Re: chkdsk starts every time I restart the computer
    ... Disable or Enable Check Disk Upon Boot ... The only way to clear the dirty bit is to run chkdsk to try to clear it. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: NTLDR is Missing
    ... I did the chkdsk and it found 1 ... If the disk isn't bad and the NTLDR isn't really ... I will do the checkdisk, but when I couldn't get it to boot, I went into ... what if I can't get past the NTLDR is missing error ...
    (microsoft.public.windowsxp.general)
  • Re: Disk Checker Utility Problem
    ... No warranty of any kind, either expressed or implied, is made in relation to the accuracy, reliability or content of this mail/post. ... to make sure we are talking about the same Check Disk utility? ... chkdsk might take a long time ... Since it stops my normal boot at the progress bar, ...
    (microsoft.public.windowsxp.newusers)
  • Re: HELP!! What a mess I got!!
    ... needing chkdsk, then onto the desktop. ... recovering, it said "Recovering KEY files" and then the hard drive ... what would happen, and the computer now says "DISK BOOT FAILURE, ...
    (comp.os.os2.misc)