© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 11:09:20 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Bugs and problems
>
V4 requires private key to move EFS encrypted files
Pages: [
1
]
« previous
next »
Print
Author
Topic: V4 requires private key to move EFS encrypted files (Read 952 times)
usch
JkDefrag Senior
Posts: 35
V4 requires private key to move EFS encrypted files
«
on:
July 27, 2009, 01:25:38 pm »
I just upgraded from JkDefrag to MyDefrag. It's undoubtedly an improvement. ;-)
However, one of the first things I noticed was that it does no longer defrag or move EFS encrypted files, unless the user who is running MyDefrag has a private key to access that file.
To reproduce:
Log in as Administrator
Create two files, TEST1 and TEST2, using MyFragmenter.exe
Make sure all users have read and write access to these files
Encrypt TEST1 from the Administrator account
Log in as another user
Encrypt TEST2 from that account
Log in as Administrator again
Run MyDefrag
Result: File TEST1 is processed properly, but file TEST2 is marked as unreadable and remains fragmented.
Now run JkDefrag (V 3.3.4, if that matters) on the same drive: TEST2 is defragmented, too, as expected.
Since this used to work before, I'm sure it is easy to fix. Thanks
«
Last Edit: July 27, 2009, 02:21:12 pm by usch
»
Logged
peters40
JkDefrag Hero
Posts: 61
Re: V4 requires private key to move EFS encrypted files
«
Reply #1 on:
July 27, 2009, 01:32:37 pm »
Thanks for that usch, it explains why some of my encripted files are not being processed. I have 3 accounts home user, work user , and admin account, now i understand.
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: V4 requires private key to move EFS encrypted files
«
Reply #2 on:
July 27, 2009, 06:33:48 pm »
Quote from: usch on July 27, 2009, 01:25:38 pm
Result: File TEST1 is processed properly, but file TEST2 is marked as unreadable and remains fragmented.
Thank you very much for the excellent instructions. I have managed to reproduce the problem and have found the reason. JkDefrag opened encrypted files just like any other file, MyDefrag uses the method recommended by Microsoft, which is different than for regular files. I never tested with encrypted files by other userids, using only a single userid on my desktop, so I never encountered the problem myself. Anyway, I am scrapping the method that Microsoft is recommending and going back to the good old JkDefrag way of opening files. In other words, the problem will be fixed in the next release.
Logged
boco
JkDefrag Hero
Posts: 153
Re: V4 requires private key to move EFS encrypted files
«
Reply #3 on:
July 27, 2009, 08:09:18 pm »
How 'bout using the MS method, but fallback to the old behavior if it fails.
Logged
T hi s Sign a tu re is q uit e sor te d -op tim i zed b y desi gn .
usch
JkDefrag Senior
Posts: 35
Re: V4 requires private key to move EFS encrypted files
«
Reply #4 on:
July 27, 2009, 08:21:24 pm »
Quote from: jeroen on July 27, 2009, 06:33:48 pm
In other words, the problem will be fixed in the next release.
Thanks for the fast response!
I forgot to mention that I am running XP 32bit; other Windows versions might of course behave differently.
Logged
cg
JkDefrag Hero
Posts: 101
Re: V4 requires private key to move EFS encrypted files
«
Reply #5 on:
July 27, 2009, 08:35:50 pm »
Quote from: jeroen on July 27, 2009, 06:33:48 pm
Thank you very much for the excellent instructions. I have managed to reproduce the problem and have found the reason. JkDefrag opened encrypted files just like any other file, MyDefrag uses the method recommended by Microsoft, which is different than for regular files. I never tested with encrypted files by other userids, using only a single userid on my desktop, so I never encountered the problem myself. Anyway, I am scrapping the method that Microsoft is recommending and going back to the good old JkDefrag way of opening files. In other words, the problem will be fixed in the next release.
I was one of the people with difficulty using Encrypted Files (See the 1.5 GB Memory Post -
http://www.mydefrag.com/forum/index.php?topic=1622.0
) When I turned the EFS encryption off, my memory usage dropped significantly and SlowOptimize worked fine. When it was on, I couldn't complete a SlowOptimize - it eventually used up all my free RAM and just seemed to hang. I wonder if the so called "Memory Leak" concerns aren't MyDefrag, but using Microsoft's recommended way of opening the files? Wouldn't that be funny if this fixed those problems as well?
I would suggest using the recommended way only if the JKDefrag way doesn't work - especially if the side effect does actually address the memory concern.
«
Last Edit: July 27, 2009, 08:37:51 pm by cg
»
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: V4 requires private key to move EFS encrypted files
«
Reply #6 on:
July 27, 2009, 11:00:03 pm »
Quote from: cg on July 27, 2009, 08:35:50 pm
When I turned the EFS encryption off, my memory usage dropped significantly
Well, I spend a couple of hours on it this afternoon and it all seems to work great now. You're talking about the beta versions in that other thread, lot's of changes since then.
Logged
cg
JkDefrag Hero
Posts: 101
Re: V4 requires private key to move EFS encrypted files
«
Reply #7 on:
July 28, 2009, 12:17:28 am »
Quote from: jeroen on July 27, 2009, 11:00:03 pm
Well, I spend a couple of hours on it this afternoon and it all seems to work great now. You're talking about the beta versions in that other thread, lot's of changes since then.
Yes - but I've been using every version up to the 4.1.1. I haven't done an EFS on/off check on each and every one because of the time that takes, but I know the problem was still there in v4.0 final. And the change you're making may not make a memory difference, but it is interesting that you found this issue which at least seems to corroborate what I was seeing when I did my own testing. In my case when I removed the EFS, the memory utilization dropped. That would seem to indicate that maybe when you use the Microsoft method and it isn't able to move a file, that perhaps the open attempt is using memory and not releasing it. Again - I could be wrong.
In any case it sounds like you've got a workable solution for EFS which is great!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...