defrag can't with a file

Z

zero

Tried windows xp pro defrag and can't defrag some files that
I see in red (those should be perfectly movable) I have enough
disk space (some 32%).

Then I see big green blocks (non movable).

Defragmented once, then again (seems to defragment some more)

Then safe booted, and defragmented again. But still can't with some files.
(those green blocks and one in Doc and set\myuser\ntuser.dat.log

What can I do?
Is there more powerfull tools to do that or other procedures I ignore?
 
W

Wesley Vogel

\Documents and Settings\Your Name\Ntuser.dat.log is probably locked and in
use.

Ntuser.dat and Ntuser.dat.log are the HKEY_CURRENT_USER registry hive.
Ntuser.dat is the actual data and Ntuser.dat.log is a backup file.
Ntuser.dat.log is a transaction log of changes to the keys and value entries
in the HKEY_CURRENT_USER hive. Ntuser.dat.log is used to provide fault
tolerance, allowing Windows NT to recover a user profile if a problem occurs
while the NTuser.dat file is being updated.

\Documents and Settings\Your Name\Ntuser.dat.log should only be between 1KB
and 16KB in size. Why worry whether or not it even gets defragmented?
Ntuser.dat.log is more or less continually in use and even if it did get
defragged, it would just fragment right away anyway.

<quote>
What are Ntuser.dat and ntuser.dat.LOG file, anyway, and what are the
differences between them? The Ntuser.dat file contains all the user-specific
configuration settings in the Registry, specifically from the
HKEY_CURRENT_USER subtree, locally. The ntuser.dat.LOG file is a transaction
log. Basically, when the user uses the computer, the user's profile data is
copied to that subkey. As the user makes any changes to the working
environment, the Ntuser.dat file is updated. The ntuser.dat.LOG file is
there to serve as a transaction log, which provides fault tolerance as
updates are made to the Registry database.
<quote>
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarexnt01/html/ewn0142.asp

Files Excluded by the Disk Defragmenter Tool
http://support.microsoft.com/kb/227350

It means that everything got defragmented than can be defragmented. Don't
worry, be happy.

If you have enough free space, sometimes running defrag a second or third
may get files that were missed on the first or second run.

Except the files listed below and they are not included in the
defragmentation report...

Files That You Cannot Defragment
http://www.microsoft.com/technet/prodtechnol/winxppro/reskit/c28621675.mspx

[[After you defragment a volume, you can view the defragmentation report to
see the results. The report includes a list of files that remain fragmented
(having two or more fragments). Some reasons that a file might remain
fragmented include:

* The volume lacks adequate contiguous free space to defragment all files.
Disk Defragmenter requires at least 15 percent free disk space to completely
defragment a volume.

* During defragmentation, a new file is created on the volume in disk space
that was previously free space. In this case, if Disk Defragmenter tries to
move a file to that space to defragment the file, the move fails and the
file remains fragmented.

* The file is the master file table (MFT) on an NTFS volume. Because the
first fragment of the MFT cannot be moved, the MFT is typically contained
within two fragments when sufficient space is available on the volume. If
the MFT is contained within three or more fragments, Disk Defragmenter looks
for free space where the MFT might fit. If sufficient free space exists, the
MFT is moved as a whole (minus the first fragment). If space is not
available, the MFT is not defragmented.

* The file is permanently excluded, in which case it might appear in the
defragmentation report as still being fragmented no matter how many times
you defragment the volume. The following files are permanently excluded from
being defragmented.

* Bootsect.dos
* Safeboot.fs
* Safeboot.csv
* Safeboot.rsv
* Hiberfil.sys
* Memory.dmp
* Paging file ]]
from...
Windows XP Resource Kit: Troubleshooting Disks and File Systems
http://www.microsoft.com/technet/prodtechnol/winxppro/reskit/c28621675.mspx

Analyze Operation Suggests Defragmenting Disk Multiple Times
http://support.microsoft.com/kb/229850

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

Gerry Cornell

Zero

Wes has given you lots of information. From what you say your problem
is created by the fragmented pagefile. This means that the free space
is fragmented, which has the effect of fragmenting large files when
they are written to disk. You can try to get the unmovable pagefile to
coalesce into one block but unless you have something like 60% to 70%
free space it is extremely difficult to achieve, The reason is that
the system will place the page file in the middle of the partition. If
part of that area is occupied the pagefile will be placed in free
space between occupied areas in the middle of the partition. Once that
happens unless you increase the free space to something like 70% you
cannot get the pagefile to reform as a solid block.

If you have 70% free space you set the page file to zero and reboot.
You then run Disk Defragmenter to get all files to the beginning of
the drive. You reset the pagefile size to what you wish and reboot. If
you are lucky you can get the green pagefile to form one block.
However, if you subsequently reset the pagefile you could be back to
square one.

An easier solution is available if you have two drives. You create a
separate empty partition at the beginning of the second drive and move
your pagefile to that partition. You place no other files in that
partition. If you do this you should retain a 50 mb pagefile on the
first drive.

--

Hope this helps.

Gerry
~~~~
FCA
Stourport, England
Enquire, plan and execute
~~~~~~~~~~~~~~~~~~~
 
Z

zero

I have 1 hd with 2 partitions C and F,
C has the windows and programs
F just data.

Actually I have no pagefile for C
And 512 min and max for F...

Is there a way to make the F partition go, and have only C to take advantage
of space there?
(without reinstalling all my SO and software?)

I wonder if its possible to move all F content to an external hd and make
that


"Gerry Cornell" <[email protected]> escribió en el mensaje
Zero

Wes has given you lots of information. From what you say your problem
is created by the fragmented pagefile. This means that the free space
is fragmented, which has the effect of fragmenting large files when
they are written to disk. You can try to get the unmovable pagefile to
coalesce into one block but unless you have something like 60% to 70%
free space it is extremely difficult to achieve, The reason is that
the system will place the page file in the middle of the partition. If
part of that area is occupied the pagefile will be placed in free
space between occupied areas in the middle of the partition. Once that
happens unless you increase the free space to something like 70% you
cannot get the pagefile to reform as a solid block.

If you have 70% free space you set the page file to zero and reboot.
You then run Disk Defragmenter to get all files to the beginning of
the drive. You reset the pagefile size to what you wish and reboot. If
you are lucky you can get the green pagefile to form one block.
However, if you subsequently reset the pagefile you could be back to
square one.

An easier solution is available if you have two drives. You create a
separate empty partition at the beginning of the second drive and move
your pagefile to that partition. You place no other files in that
partition. If you do this you should retain a 50 mb pagefile on the
first drive.

--

Hope this helps.

Gerry
~~~~
FCA
Stourport, England
Enquire, plan and execute
~~~~~~~~~~~~~~~~~~~
 
G

Gerry Cornell

Zero

To non-destructively remove partitions you need third party software.
The Disk Management software provided with Windows XP destroys the
files on the disk. BootIt NG is shareware so can get it on a trial
basis. I have not tried it but I probably will be doing so as the
latest version is compatible with Windows Vista. The other well known
partitioning tool is Partition Magic but the latest version is not
compatible with Windows Vista. You have to purchase Partition Magic
and Symantec tend to charge for updates.
http://www.bootitng.com/utilities.html

How large are these two partitions and how much free space on each?

Is your computer a desktop or desktop? What make and model?


--

Hope this helps.

Gerry
~~~~
FCA
Stourport, England
Enquire, plan and execute
~~~~~~~~~~~~~~~~~~~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top