Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 19, 2013, 04:24:53 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Defrag Directories only  (Read 1250 times)
rdsu
JkDefrag Hero
*****
Posts: 97


View Profile
« on: April 23, 2010, 11:57:20 am »

Hi,

It's possible to defrag Directories, next to $MFT, without defrag $MFT too?

Thanks
Logged
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #1 on: April 23, 2010, 12:21:31 pm »

No. Both directories and MFT have to be moved in order to be put together.
Why don't you want to move/defrag the MFT?
Logged

Need help creating a script? Try MyDefrag Script Creator.
BloodySword
JkDefrag Hero
*****
Posts: 1114



View Profile
« Reply #2 on: April 23, 2010, 12:38:40 pm »

I think he does not want to move the MFT because some programms are locked up while moving the MFT. Instead I suggest to optimize the MFT. A MFT wich is very big is unusual and it should be avoided where it can be.
Logged

Greetings from Germany!
rdsu
JkDefrag Hero
*****
Posts: 97


View Profile
« Reply #3 on: April 23, 2010, 02:12:27 pm »

I don't want to defrag MFT because I want to make a simple defrag, to run in the middle of week, and I don't think it's necessary to defrag MFT, so just defrag Directories and put them next to it will be great...
Logged
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #4 on: April 23, 2010, 03:43:07 pm »

The following script will move the folders as close to the MFT as possible, without moving the MFT. I don't like it IMHO. You'd better take the first two zones of the standard scripts (or exit MyDefrag after it processed the first two zones with the optimize daily scrip).

Code:
Title('Move Folders')
Description("Move Folders")

ExcludeFiles(not (
    SelectNtfsSystemFiles(yes)
    or Directories(yes)
    ))

/* Select and process the volumes one by one. */
VolumeSelect
  CommandlineVolumes()
  and Removable(no)
  and Writable(yes)
  and Mounted(yes)
VolumeActions
 
  /* Place files at 30% into the data on the disk. */
  MakeGap(RoundUp(VolumeUsed * 0.3,VolumeSize * 0.01))

  /* Zone 1: Process MFT and some other special NTFS files without moving them. */
  FileSelect
    SelectNtfsSystemFiles(yes)
  FileActions
  FileEnd

  /* Zone 2: Directories. */
  FileSelect
    Directory(yes)
  FileActions
    Defragment()
    FastFill()
  FileEnd

VolumeEnd
Logged

Need help creating a script? Try MyDefrag Script Creator.
rdsu
JkDefrag Hero
*****
Posts: 97


View Profile
« Reply #5 on: April 23, 2010, 09:08:11 pm »

Maybe the next version will have something to make this work...
Logged
BloodySword
JkDefrag Hero
*****
Posts: 1114



View Profile
« Reply #6 on: April 23, 2010, 09:11:59 pm »

I don't want to defrag MFT because I want to make a simple defrag, to run in the middle of week, and I don't think it's necessary to defrag MFT, so just defrag Directories and put them next to it will be great...

In this case you should not worry about moving the MFT. If it is not neccessary, MyDefrag won't move the MFT. And even if the MFT would be moved every run, it won't hurt your drive and it won't take much more time. Test it ^^.
Logged

Greetings from Germany!
rdsu
JkDefrag Hero
*****
Posts: 97


View Profile
« Reply #7 on: April 23, 2010, 09:14:31 pm »

I don't want to defrag MFT because I want to make a simple defrag, to run in the middle of week, and I don't think it's necessary to defrag MFT, so just defrag Directories and put them next to it will be great...

In this case you should not worry about moving the MFT. If it is not neccessary, MyDefrag won't move the MFT. And even if the MFT would be moved every run, it won't hurt your drive and it won't take much more time. Test it ^^.
I know, but I would like to know if is possible...
Logged
rdsu
JkDefrag Hero
*****
Posts: 97


View Profile
« Reply #8 on: April 23, 2010, 09:17:10 pm »

Deleted to avoid using it...
« Last Edit: April 24, 2010, 02:43:01 pm by rdsu » Logged
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #9 on: April 24, 2010, 12:15:23 pm »

With this script you're moving (shifting) all directories because of the SortBy file action and the additional gap.
Logged

Need help creating a script? Try MyDefrag Script Creator.
rdsu
JkDefrag Hero
*****
Posts: 97


View Profile
« Reply #10 on: April 24, 2010, 02:42:18 pm »

With this script you're moving (shifting) all directories because of the SortBy file action and the additional gap.
You are right, your solution works better... Smiley

Thanks
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!