Jump to content

Remove caching of UDB flash dirve


Agwan
 Share

Recommended Posts

Hi,

I have a USB SRAM drive, its like a USB flash drive, but it can update its files it self. The problem with windows in this case is that it caches the drives and no file information after the drive has been enummerated will be shown. I have to pull the device out, and put it in the USB port again to get updated files.

1: Can I turn this caching of, so that every time I open a file on the dirve, I get the latest information from the drive?

2: If I read the files from the drive using a C#, C++ or C-program on the PC, will it also just get the cached file information?

Thanks!

/Anders

Link to comment
Share on other sites

Hi,Agwan.

Welcome to Windows Forum.

If you browse Device Manager>Disk Drives>right click the disk in question and select Properties.Under the Policies tab,chek that Optimize for quick removal is checked or that Enable write cahing on the disk is not selected.

Hope this is of use.

Link to comment
Share on other sites

No, sorry to say it does not help. The drive is already in optimize for removal and it still cashes the read. Writing to the drive is updated instantly, its the read that is only done once, and then this cashe is used.

Are we talking about Windows Write Caching?

Or some software that came preinstalled on the USB device?

Link to comment
Share on other sites

No, sorry to say it does not help. The drive is already in optimize for removal and it still cashes the read. Writing to the drive is updated instantly, its the read that is only done once, and then this cashe is used.

Are we talking about Windows Write Caching?

Or some software that came preinstalled on the USB device?

No, we are talking about read cashing. Windows read from the device only once. But since the files on the drive changes by it self, windows needs to be told to read from the drive every time the file is accessed, and not from the read cashe.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy