Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 21, 2013, 01:56:59 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: MyFragment questions  (Read 733 times)
NSteel
Newbie
*
Posts: 4


View Profile
« on: May 01, 2012, 08:44:49 pm »

Hi. I have a couple of questions regarding MyFragment. First of... I am working on my bachelor thesis about file carving (recovering deleted files). I need to fragment a couple of files to be able to evaluate the file carving softwares performance. MyFragment does a great job with fragmenting the files, but i need to know more about how it really fragments files. I could not find any information about how it works. Infromation under "see also" is not enough. I hope someone here can help me.

What i need to know:

1. Is it possible to copy a file to a usb drive and simultaneously fragment the file?
2. Is it possible to fragment multiple files at the same time?
3. When fragmenting a file, what happens with the clusters which used to be occupied by the file? Does it overwrite the old clusters?
4. How do MyFragment determine where to put the file parts? Is it a random or a fixed location?
5. How do MyFragment determine what part of a file should be moved? Fixed or random?
6. Is it possible to view the source code of MyFragment?
7. Is it possible to edit or add code if needed?

I hope somebody can give me some good answers  Smiley
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: May 02, 2012, 07:59:17 am »

1. Is it possible to copy a file to a usb drive and simultaneously fragment the file?
Not with MyFragmenter, no. MyFragmenter cannot copy files between volumes. It fragments files with system calls from the Microsoft defragmentation API, and this API can only move files inside a volume. You will first have to copy the file to the usb drive, and then use MyFragmenter to fragment it.

Quote
2. Is it possible to fragment multiple files at the same time?
Yes. Simply specify all the filenames on the commandline. Please note that Windows has a limit on the length of the commandline, depending on the Windows version.

Quote
3. When fragmenting a file, what happens with the clusters which used to be occupied by the file? Does it overwrite the old clusters?
The old clusters are not overwritten. They are discarded and marked "free", similar to when a file is deleted.

Quote
4. How do MyFragment determine where to put the file parts? Is it a random or a fixed location?
MyFragmenter looks for the largest gap on disk and puts the part bang in the middle. This is repeated for all the parts.

Quote
5. How do MyFragment determine what part of a file should be moved? Fixed or random?
The entire file is moved, one part after another starting at the beginning of the file.

Quote
6. Is it possible to view the source code of MyFragment?
7. Is it possible to edit or add code if needed?
Sorry. The sources of MyDefrag (and MyFragmenter) are not public domain, they are copyrighted and only available for a hefty license fee.
Logged
NSteel
Newbie
*
Posts: 4


View Profile
« Reply #2 on: May 02, 2012, 01:09:09 pm »

Thank you! Your answers will be of great value for me Smiley
Logged
NSteel
Newbie
*
Posts: 4


View Profile
« Reply #3 on: May 05, 2012, 10:27:20 pm »

I have another question.
What does Vcn and NextVcn mean?
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #4 on: May 06, 2012, 08:50:04 am »

VCN = Virtual Cluster Number, the cluster number inside a file (from zero to the end of the file).
NextVcn = The VCN of the first cluster of the next extent.
Extent = Part of a file, usually the same as a fragment, but can also be part of a fragment.

The MFT (Master File Table) stores files as a list of extents, each extent as a physical LCN (Logical Cluster Number) and a NextVcn.
Logged
NSteel
Newbie
*
Posts: 4


View Profile
« Reply #5 on: May 06, 2012, 10:09:34 pm »

Thank you! Smiley
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!