Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 07:19:45 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Why are non-selected files still showing in zone?  (Read 788 times)
woodfold
JkDefrag Senior
****
Posts: 31


View Profile
« on: May 04, 2012, 10:14:39 pm »

I have a drive that has both mp3s and archives on it and I decided I'd put all of the mp3s in their own zone (#3) and let any other files just be "moved out of the way". After running the script, I can still see non-mp3 files (which are yellow-orange) in the 3rd zone, near the end.

Why are they still there? How can I move them out of that zone, or is this a bug in MDF?


Here is the code:
Code:
/* Select and process the volumes one by one. */
VolumeSelect
  CommandlineVolumes()
VolumeActions

  SetFileColor(FileName("*.mp3"),All,255, 191, 0)
  SetFileColor(FileName("*.*.rar"),All,42, 142, 255)
  SetFileColor(FileName("*.part*.rar"),All,75, 255, 255)
  SetFileColor(FileName("*.zip"),All,30, 255, 116)

  /* Write the "before" statistics to the logfile. See the "Settings.MyD" file
     for the definition of the "LogBefore" string. */
  AppendLogfile("!ScriptTitle!.log","LogBefore")

  /* Zone 1: Place the MFT and some other special NTFS files. */
  FileSelect
    SelectNtfsSystemFiles(yes)
  FileActions
    PlaceNtfsSystemFiles(Ascending,MftSize * 0.005)
  FileEnd

  /* Zone 2: Directories. */
  FileSelect
    Directory(yes)
  FileActions
    SortByName(Ascending)
  FileEnd

  MakeGap(ZoneEnd + 1500 MB)

  /* Zone 3: MP3 files. */
  FileSelect
    FileName("*.mp3")
  FileActions
    Defragment(Fast)
    Defragment()
    MaxRunTime(300)
    FastFill(WithShuffling)
  FileEnd

  MakeGap(ZoneEnd + 200 MB)

  /* Zone 4: Archives. */
  FileSelect
    All
  FileActions
    MaxRunTime(180)
    MoveUpToZone()
  FileEnd

The image shows a RAR file (circled) that should not be in zone 3.



* MDFzone3.jpg (125.89 KB, 848x714 - viewed 211 times.)
« Last Edit: May 05, 2012, 06:03:04 pm by woodfold » Logged
Darlis
JkDefrag Hero
*****
Posts: 1708


View Profile WWW
« Reply #1 on: May 05, 2012, 06:43:04 am »

Maybe that file was marked as unmovable?

Is the file still there on the second run?
Logged

Need help creating a script? Try MyDefrag Script Creator.
woodfold
JkDefrag Senior
****
Posts: 31


View Profile
« Reply #2 on: May 05, 2012, 04:48:07 pm »

None show as immoveable (red) and haven't been accessed in a long time.

BTW, the MDF window is zoomed in at 4, so it's easier to spot the fragments.

Multiple runs leave the files where they are.
« Last Edit: May 05, 2012, 05:34:03 pm by woodfold » Logged
woodfold
JkDefrag Senior
****
Posts: 31


View Profile
« Reply #3 on: May 05, 2012, 05:32:52 pm »

I just zoomed in using the "analyze only" script (to avoid the wait) and it seems every file that is not an mp3 is a RAR file in a folder called e:\Processed stored here\

It turns out all of the files that stayed in the wrong zone (see below) had a name with periods surrounding a number, like:
Teen Pop & Doo Wop Vol.5.rar

Is there something magical about that folder name? I don't see anything unusual in the folder or file attributes.
« Last Edit: May 05, 2012, 06:24:59 pm by woodfold » Logged
Darlis
JkDefrag Hero
*****
Posts: 1708


View Profile WWW
« Reply #4 on: May 05, 2012, 06:06:25 pm »

Is the file still there on the second run? If so, you have to create a debug log to see what's going on.

It may be possible that MyDefrag does not have the permissions to move files in that specific folder. Check if the role "Administrators" has read and write permissions.
Logged

Need help creating a script? Try MyDefrag Script Creator.
woodfold
JkDefrag Senior
****
Posts: 31


View Profile
« Reply #5 on: May 17, 2012, 05:08:04 pm »

This problem doesn't fix itself after multiple runs. I'm now thinking it has something to do with the large unmovable file (the pagefile) and it not being included in the zone size calculations. Moveup doesn't touch those files, so maybe it thinks the zone is smaller than it "really" is.

Other drives don't have this problem, and they don't have a pagefile either:


* Clipboard01.jpg (238.35 KB, 853x713 - viewed 151 times.)
Logged
Kasuha
JkDefrag Hero
*****
Posts: 595


View Profile
« Reply #6 on: May 31, 2012, 11:04:52 am »

MaxRunTime and FastFill(WithShuffling) don't go together well.

MaxRunTime limits the amount of time spent on further operations and that's the likely reason why your script doesn't finish.

FastFill(WithShuffling) has tendency to spend progressively longer and longer time filling the same zone, particularly if you don't mix up the zone files different way.

My suggestion is to remove the MaxRunTime commend altogether unless you really really need the script to finish fast even if it's not done.

And I also suggest to remove the WithShuffling option as that will make your script run much faster. If you're not a perfectionists, that is, because it will leave some tiny gaps. But I don't think it's a problem on mp3 zone.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!