© J.C. Kessels 2009
MyDefrag Forum
June 18, 2013, 08:37:37 am
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
>
Move files starting at the end of the drive downwards?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Move files starting at the end of the drive downwards? (Read 1372 times)
rstarkov
JkDefrag Supporter
Posts: 12
Move files starting at the end of the drive downwards?
«
on:
March 23, 2012, 12:17:20 pm »
I would like MyDefrag to move the files from the end of the drive downwards, starting at the very last file. All the file actions that I’m familiar with start with the bottommost selected file instead.
Is this possible?
Why I want this: I’d like to free up as much space as possible at the end of the drive, until an unmovable file is hit.
Logged
jonib
JkDefrag Hero
Posts: 810
Re: Move files starting at the end of the drive downwards?
«
Reply #1 on:
March 23, 2012, 12:53:40 pm »
The included
Consolidate Free Space
script does exactly this.
jonib
Logged
MyDefrag script syntax highlighting generator
.
rstarkov
JkDefrag Supporter
Posts: 12
Re: Move files starting at the end of the drive downwards?
«
Reply #2 on:
March 23, 2012, 12:59:49 pm »
Thanks, but it does not. I’ve run it for several minutes, and the topmost file did not move.
It might be doing something similar (the end result is that all free space is at the top), but certainly not exactly this (it starts by moving files *below* the topmost unmoveable file, which is pointless for me).
Logged
jonib
JkDefrag Hero
Posts: 810
Re: Move files starting at the end of the drive downwards?
«
Reply #3 on:
March 23, 2012, 08:04:42 pm »
I did a quick test on my c: drive, and Consolidate Free Space script definitely started moving files from the very end of the volume.
Maybe you need to run it a bit longer to see whats going on and maybe zoom in at the end of the volume to see more details.
If it's really not doing that for you, make a debug log following these instructions
I have a problem!
and attach it to a post, and somebody should be able to figure out why.
jonib
Logged
MyDefrag script syntax highlighting generator
.
rstarkov
JkDefrag Supporter
Posts: 12
Re: Move files starting at the end of the drive downwards?
«
Reply #4 on:
March 24, 2012, 09:19:33 pm »
Tried again, this time leaving it for longer. It does generally seem to prefer files higher up, but definitely doesn’t treat them as a priority. Here’s a typical operation:
Those files at the very top? Never touched by this script. Unmovable files would have been highlighted with purple.
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7156
Re: Move files starting at the end of the drive downwards?
«
Reply #5 on:
April 18, 2012, 03:49:42 am »
Quote from: rstarkov on March 24, 2012, 09:19:33 pm
I would like MyDefrag to move the files from the end of the drive downwards, starting at the very last file.
The
ForcedFill
action does exactly that, it moves data to the beginning of the disk, starting with the highest data and working backwards.
Quote
Those files at the very top? Never touched by this script. Unmovable files would have been highlighted with purple.
MyDefrag scripts only move data that has been selected. It looks like the
FileBoolean
in your script is not selecting the data in question.
Tip: see the free
Gnome Partition Editor
for resizing partitions. It can squeeze the data on partitions as you describe, by itself without the need of a tool such as MyDefrag, and since it does not boot Windows it can move data that cannot be moved by MyDefrag.
Logged
rstarkov
JkDefrag Supporter
Posts: 12
Re: Move files starting at the end of the drive downwards?
«
Reply #6 on:
April 21, 2012, 11:44:09 am »
Quote from: jeroen on April 18, 2012, 03:49:42 am
The
ForcedFill
action does exactly that, it moves data to the beginning of the disk, starting with the highest data and working backwards.
And so it does! Perfect, thank you!
Quote from: jeroen on April 18, 2012, 03:49:42 am
MyDefrag scripts only move data that has been selected. It looks like the
FileBoolean
in your script is not selecting the data in question.
I did not actually mean "never" when I said it... my fault
They would be touched eventually, I just never waited long enough because the script wasn’t doing what I wanted it to.
Quote from: jeroen on April 18, 2012, 03:49:42 am
Tip: see the free
Gnome Partition Editor
for resizing partitions.
Doesn’t work for me, as my entire disk is encrypted with TrueCrypt. I’d have to decrypt it first, which is not an option because it’s an SSD that I might want to sell eventually - and I’d rather it had no traces of decrypted files on it...
«
Last Edit: April 21, 2012, 11:59:50 am by rstarkov
»
Logged
woodfold
JkDefrag Senior
Posts: 31
Re: Move files starting at the end of the drive downwards?
«
Reply #7 on:
April 24, 2012, 03:12:15 pm »
If your drive is an SSD, you shouldn't defragment it at all. There's no moving parts, so no savings.
Logged
rstarkov
JkDefrag Supporter
Posts: 12
Re: Move files starting at the end of the drive downwards?
«
Reply #8 on:
April 24, 2012, 03:15:03 pm »
Quote from: woodfold on April 24, 2012, 03:12:15 pm
If your drive is an SSD, you shouldn't defragment it at all. There's no moving parts, so no savings.
Who says I'm defragmenting anything?
I'm just moving files down. Unfortunately it turns out the effort was in vain, since the built-in Windows partition tools can only move the upper boundary of a partition, but not the lower one, so while I can shrink C: using built-in tools, that doesn't let me grow D:
Logged
andublin
JkDefrag Hero
Posts: 103
Re: Move files starting at the end of the drive downwards?
«
Reply #9 on:
April 27, 2012, 10:50:26 am »
Use Gparted.
I recommend download PartedMagic CD/ISO as the best combination of tools utilities for this stuff. Open source, Free for use even in commercial environments.
http://partedmagic.com
(Put it to USB key if wished). Boot from it;
That way gparted can shuffle partition D: down . Gparted will show you the disk and partition names in Linux format: sda or sdb for the disk: sda1, sda2 for the partitions.
And with the current version of partedmagic you can even TRIM a windows XP SSD disk partition!
Command
wiper.sh --commit /dev/sda1
where sda1 is the first partition for example.
«
Last Edit: April 27, 2012, 10:58:00 am by andublin
»
Logged
rstarkov
JkDefrag Supporter
Posts: 12
Re: Move files starting at the end of the drive downwards?
«
Reply #10 on:
April 27, 2012, 10:56:12 am »
Quote from: andublin on April 27, 2012, 10:50:26 am
Use Gparted.
I recommend download PartedMagic CD/ISO as the best combination of tools utilities.
I appreciate your input guys, but I'd like to point out once again that the whole SSD is TrueCrypt'ed, which, I assume, precludes the use of GParted booted off a CD. GParted has no way of seeing the partitions. It would have to replace my Windows bootloader to have a chance of working, which it can only do from within Windows itself, but even then I'm not sure: any raw disk accesses might bypass the TrueCrypt driver.
If I'm wrong, or there's another way, please do let me know!
Logged
Darlis
JkDefrag Hero
Posts: 1725
Re: Move files starting at the end of the drive downwards?
«
Reply #11 on:
April 28, 2012, 01:06:57 pm »
Parted Magic has TrueCrypt on board, so you should be able to mount the volumes and rearrange them.
Logged
Need help creating a script? Try
MyDefrag Script Creator
.
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...