© J.C. Kessels 2009
MyDefrag Forum
May 20, 2013, 06:59:21 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
>
Questions and help
>
Defrag Directories only
Pages: [
1
]
« previous
next »
Print
Author
Topic: Defrag Directories only (Read 1215 times)
rdsu
JkDefrag Hero
Posts: 97
Defrag Directories only
«
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: 1707
Re: Defrag Directories only
«
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: 1113
Re: Defrag Directories only
«
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
Re: Defrag Directories only
«
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: 1707
Re: Defrag Directories only
«
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
Re: Defrag Directories only
«
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: 1113
Re: Defrag Directories only
«
Reply #6 on:
April 23, 2010, 09:11:59 pm »
Quote from: rdsu 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...
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
Re: Defrag Directories only
«
Reply #7 on:
April 23, 2010, 09:14:31 pm »
Quote from: BloodySword on April 23, 2010, 09:11:59 pm
Quote from: rdsu 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...
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
Re: Defrag Directories only
«
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: 1707
Re: Defrag Directories only
«
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
Re: Defrag Directories only
«
Reply #10 on:
April 24, 2010, 02:42:18 pm »
Quote from: Darlis 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.
You are right, your solution works better...
Thanks
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...