How To: Set up to automatically defragment
Dual boot and other guides.

Moderators: Forum Experts, Management

Postby e to the x on Tue May 02, 2006 6:01 pm

This is my code. When I run it, it says cmd is using 85% of the CPU and csrss is using 15%. Dooes that mean its working?

Code: Select all
@echo off
color 0a
title defragger (1.4) pass 1 C:
defrag C: -v -b
defrag c: -v
title defragger (1.4) pass 1 D:
defrag D: -v -b
defrag D: -v

echo, finished with pass one
cls

title defragger (1.4) pass 2 C:
defrag C: -v -b
defrag C: -v
title defragger (1.4) pass 2 D:
defrag D: -v -b
defrag D: -v

echo, finished with pass two
cls

title defragger (1.4) pass 3 C:
defrag C: -v -b
defrag C: -v
title defragger (1.4) pass 3 D:
defrag D: -v -b
defrag D: -v

echo, finished with pass three
cls

title defragger (1.4) pass 4 C:
defrag C: -v -b
defrag C: -v
title defragger (1.4) pass 4 D:
defrag D: -v -b
defrag D: -v


echo, finished with pass four
cls

title defragger (1.4) pass 5 C:
defrag C: -v -b
defrag C: -v
title defragger (1.4) pass 5 D:
defrag D: -v -b
defrag D: -v
echo pass 2 DONE
echo all done
echo DONE!
pause
Image
~Main Rig~
Quad Q8200
Asus P5Q3 P45
8 GB Corsair DDR3-1333
eVGA 9800GT
3x250GB HDD
WinXP; W7 x64
~Audio Stream Rig~
Athlon XP 2000+
MSI Motherboard
1 GB DDR-400
SoundBlaster Audigy2
160 GB HDD
WinXP
User avatar
e to the x
PROfessional Member
 
Posts: 6346
Joined: Mon Oct 18, 2004 12:55 pm
Location: Long Island, NY

Postby l33t on Tue May 02, 2006 6:20 pm

e to the x wrote:This is my code. When I run it, it says cmd is using 85% of the CPU and csrss is using 15%. Dooes that mean its working?

Code: Select all
@echo off
color 0a
title defragger (1.4) pass 1 C:
defrag C: -v -b
defrag c: -v
title defragger (1.4) pass 1 D:
defrag D: -v -b
defrag D: -v

echo, finished with pass one
cls

title defragger (1.4) pass 2 C:
defrag C: -v -b
defrag C: -v
title defragger (1.4) pass 2 D:
defrag D: -v -b
defrag D: -v

echo, finished with pass two
cls

title defragger (1.4) pass 3 C:
defrag C: -v -b
defrag C: -v
title defragger (1.4) pass 3 D:
defrag D: -v -b
defrag D: -v

echo, finished with pass three
cls

title defragger (1.4) pass 4 C:
defrag C: -v -b
defrag C: -v
title defragger (1.4) pass 4 D:
defrag D: -v -b
defrag D: -v


echo, finished with pass four
cls

title defragger (1.4) pass 5 C:
defrag C: -v -b
defrag C: -v
title defragger (1.4) pass 5 D:
defrag D: -v -b
defrag D: -v
echo pass 2 DONE
echo all done
echo DONE!
pause


lol... it could be.. what are the specs on your box (defragging *can* be taxing on a system) it isint for me but if it is for you set it up every other night (or once a week, but try atleast 2x a week for the fastest performance)

i have a 3000+ (oced to a 3800)
and 1.5 gigs o ram
and
1/2 of a TB local...
when i run it (on a relativly defragged drive) cmd.exe uses 0 cpu and 2k ram crss uses 0 cpu and 5k o ram but the process that this tool takes advantage of is dfrgntfa.exe which uses 2 cpu and 55 k ram and my system idle process is 78 cup and 24k ram

er all measurements are in Kb ram *NOT* kb (yes there is a difference...)
User avatar
l33t
PRO Level 14
PRO Level 14
 
Posts: 977
Joined: Sun May 01, 2005 9:06 pm

Postby e to the x on Tue May 02, 2006 6:23 pm

System is in my sig.
Image
~Main Rig~
Quad Q8200
Asus P5Q3 P45
8 GB Corsair DDR3-1333
eVGA 9800GT
3x250GB HDD
WinXP; W7 x64
~Audio Stream Rig~
Athlon XP 2000+
MSI Motherboard
1 GB DDR-400
SoundBlaster Audigy2
160 GB HDD
WinXP
User avatar
e to the x
PROfessional Member
 
Posts: 6346
Joined: Mon Oct 18, 2004 12:55 pm
Location: Long Island, NY

Postby l33t on Tue May 02, 2006 6:25 pm

e to the x wrote:System is in my sig.


ooo
ok, well are you running winxp x64 (thats a very nice proc and sound card btw... :drool: )

edit: i guess that the more fragmented the HD is the mroe those processes will use ( i run defraggmenter AT least once a day...)

try running it several times... if the numbers dont get better over time (say 5 defragments) then something is wrong...

best of luck.
User avatar
l33t
PRO Level 14
PRO Level 14
 
Posts: 977
Joined: Sun May 01, 2005 9:06 pm

Postby e to the x on Tue May 02, 2006 6:34 pm

the cmd window was blank except the title bar which read out correctly. Otherwise i see nothing else from the window. I'm gonna guess something is wrong with the code.
Image
~Main Rig~
Quad Q8200
Asus P5Q3 P45
8 GB Corsair DDR3-1333
eVGA 9800GT
3x250GB HDD
WinXP; W7 x64
~Audio Stream Rig~
Athlon XP 2000+
MSI Motherboard
1 GB DDR-400
SoundBlaster Audigy2
160 GB HDD
WinXP
User avatar
e to the x
PROfessional Member
 
Posts: 6346
Joined: Mon Oct 18, 2004 12:55 pm
Location: Long Island, NY

Postby l33t on Tue May 02, 2006 6:40 pm

e to the x wrote:the cmd window was blank except the title bar which read out correctly. Otherwise i see nothing else from the window. I'm gonna guess something is wrong with the code.


hmmm
well could be...
it should be blank for a few seconds (or maby a few min.... it will not show anything durring BOOT sector defragment)

try running just this code.
Code: Select all
@echo off
echo defragging your boot sector now
defrag C: -b
echo done with that
moveing on to main drive (verboose mode)
defrag C: -v

echo all done!
pause
cls




save that as a batch file and run...
tell me what it does... btw (if C is NOT your default boot drive then change the code to indicate your drive)

enjoy :P
User avatar
l33t
PRO Level 14
PRO Level 14
 
Posts: 977
Joined: Sun May 01, 2005 9:06 pm

Postby e to the x on Tue May 02, 2006 7:03 pm

l33t wrote:
e to the x wrote:the cmd window was blank except the title bar which read out correctly. Otherwise i see nothing else from the window. I'm gonna guess something is wrong with the code.


hmmm
well could be...
it should be blank for a few seconds (or maby a few min.... it will not show anything durring BOOT sector defragment)

try running just this code.
Code: Select all
@echo off
echo defragging your boot sector now
defrag C: -b
echo done with that
moveing on to main drive (verboose mode)
defrag C: -v

echo all done!
pause
cls




save that as a batch file and run...
tell me what it does... btw (if C is NOT your default boot drive then change the code to indicate your drive)

enjoy :P


shoudl the line with -b only be for the last install of an OS, in my case x64, or is it for each install?
Image
~Main Rig~
Quad Q8200
Asus P5Q3 P45
8 GB Corsair DDR3-1333
eVGA 9800GT
3x250GB HDD
WinXP; W7 x64
~Audio Stream Rig~
Athlon XP 2000+
MSI Motherboard
1 GB DDR-400
SoundBlaster Audigy2
160 GB HDD
WinXP
User avatar
e to the x
PROfessional Member
 
Posts: 6346
Joined: Mon Oct 18, 2004 12:55 pm
Location: Long Island, NY

Postby l33t on Tue May 02, 2006 7:22 pm

e to the x wrote:
l33t wrote:
e to the x wrote:the cmd window was blank except the title bar which read out correctly. Otherwise i see nothing else from the window. I'm gonna guess something is wrong with the code.


hmmm
well could be...
it should be blank for a few seconds (or maby a few min.... it will not show anything durring BOOT sector defragment)

try running just this code.
Code: Select all
@echo off
echo defragging your boot sector now
defrag C: -b
echo done with that
moveing on to main drive (verboose mode)
defrag C: -v

echo all done!
pause
cls




save that as a batch file and run...
tell me what it does... btw (if C is NOT your default boot drive then change the code to indicate your drive)

enjoy :P


shoudl the line with -b only be for the last install of an OS, in my case x64, or is it for each install?


it should be for the one drive that has the bot partition on it (the MBR) but if you want to play it safe then just add the -b flag to ALL drives (just to be safe....)
User avatar
l33t
PRO Level 14
PRO Level 14
 
Posts: 977
Joined: Sun May 01, 2005 9:06 pm

Postby gries818 on Thu May 04, 2006 3:58 pm

if you run

Code: Select all
defrag C:\ -b


it doesn't defrag the hard drive just the mbr. so i have mine set up to the mbr 2 times and the hard drive 3 times. everything seems to run faster. this can't reduce the lifespan of your hard drive can it?
Image

Mac OS 10.6.1 - Personal
Ubuntu Server 9.04 - Server
User avatar
gries818
Support Team
 
Posts: 6083
Joined: Wed Jul 07, 2004 1:28 pm

Postby kd1966 on Thu May 04, 2006 4:03 pm

I think that if you only use the -b switch, the ONLY thing it defrags is the MBR................?? Anyone??

I did this and without a display telling me what is occurring, I'm only guessing at this point, but with the size of my XP drive, it should have taken longer than it did just using the -b switch.
User avatar
kd1966
PRO MASTER
PRO MASTER
 
Posts: 8081
Joined: Mon Aug 08, 2005 9:00 pm
Location: USA - GSO - NC

PreviousNext

Return to Guides

Who is online

Users browsing this forum: No registered users and 1 guest