Disk Deframentation in Vista

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two physical hard disks. How do I tell Vista to only defragment only
one hard disk at a time?
 
If you're just using the GUI, you can't. But, if you run a Command Prompt
in Administrator mode (right-click on it and select "Run as administrator"),
you can type "defrag x" (where x is the drive you want to defragment). To
get the full syntax, type "defrag /?". I'll include it here, too:

Syntax: defrag <volume> -a [-v]
defrag <volume> [{-r | -w}] [-f] [-v]
defrag -c [{-r | -w}] [-f] [-v]

Parameters:

Value Description

<volume> Specifies the drive letter or mount point path of the volume
to
be defragmented or analyzed.

-c Defragments all volumes on this computer.

-a Performs fragmentation analysis only.

-r Performs partial defragmentation (default). Attempts to
consolidate only fragments smaller than 64 megabytes (MB).

-w Performs full defragmentation. Attempts to consolidate all
file
fragments, regardless of their size.

-f Forces defragmentation of the volume when free space is low.

-v Specifies verbose mode. The defragmentation and analysis
output
is more detailed.

-? Displays this help information.

Examples:

defrag d:
defrag d:\vol\mountpoint -w -f
defrag d: -a -v
defrag -c -v
 
David: I've been looking for an answer to the OP's question since I first
started running RC1. Now I'm using OEM version of Vista Ultimate 64.
However, if I click on "run as administrator," where am I supposed to type
in the command? No command-line interface opens up when I click on "run as
administrator."
Am I supposed to click on that AND open a command prompt at the same time?



David A. Lessnau said:
If you're just using the GUI, you can't. But, if you run a Command Prompt
in Administrator mode (right-click on it and select "Run as
administrator"), you can type "defrag x" (where x is the drive you want to
defragment). To get the full syntax, type "defrag /?". I'll include it
here, too:

Syntax: defrag <volume> -a [-v]
defrag <volume> [{-r | -w}] [-f] [-v]
defrag -c [{-r | -w}] [-f] [-v]

Parameters:

Value Description

<volume> Specifies the drive letter or mount point path of the volume
to
be defragmented or analyzed.

-c Defragments all volumes on this computer.

-a Performs fragmentation analysis only.

-r Performs partial defragmentation (default). Attempts to
consolidate only fragments smaller than 64 megabytes (MB).

-w Performs full defragmentation. Attempts to consolidate all
file
fragments, regardless of their size.

-f Forces defragmentation of the volume when free space is low.

-v Specifies verbose mode. The defragmentation and analysis
output
is more detailed.

-? Displays this help information.

Examples:

defrag d:
defrag d:\vol\mountpoint -w -f
defrag d: -a -v
defrag -c -v




StephenIn ABQ said:
I have two physical hard disks. How do I tell Vista to only defragment
only
one hard disk at a time?
 
Right click on the command prompt and 'then' choose run as administrator

--
John Barnett MVP
Associate Expert
Windows - Shell/User

Web: http://xphelpandsupport.mvps.org
Web: http://vistasupport.mvps.org

The information in this mail/post is supplied "as is". No warranty of any
kind, either expressed or implied, is made in relation to the accuracy,
reliability or content of this mail/post. The Author shall not be liable for
any direct, indirect, incidental or consequential damages arising out of the
use of, or inability to use, information or opinions expressed in this
mail/post..

DP said:
David: I've been looking for an answer to the OP's question since I first
started running RC1. Now I'm using OEM version of Vista Ultimate 64.
However, if I click on "run as administrator," where am I supposed to type
in the command? No command-line interface opens up when I click on "run as
administrator."
Am I supposed to click on that AND open a command prompt at the same time?



David A. Lessnau said:
If you're just using the GUI, you can't. But, if you run a Command
Prompt in Administrator mode (right-click on it and select "Run as
administrator"), you can type "defrag x" (where x is the drive you want
to defragment). To get the full syntax, type "defrag /?". I'll include
it here, too:

Syntax: defrag <volume> -a [-v]
defrag <volume> [{-r | -w}] [-f] [-v]
defrag -c [{-r | -w}] [-f] [-v]

Parameters:

Value Description

<volume> Specifies the drive letter or mount point path of the
volume to
be defragmented or analyzed.

-c Defragments all volumes on this computer.

-a Performs fragmentation analysis only.

-r Performs partial defragmentation (default). Attempts to
consolidate only fragments smaller than 64 megabytes (MB).

-w Performs full defragmentation. Attempts to consolidate all
file
fragments, regardless of their size.

-f Forces defragmentation of the volume when free space is
low.

-v Specifies verbose mode. The defragmentation and analysis
output
is more detailed.

-? Displays this help information.

Examples:

defrag d:
defrag d:\vol\mountpoint -w -f
defrag d: -a -v
defrag -c -v




StephenIn ABQ said:
I have two physical hard disks. How do I tell Vista to only defragment
only
one hard disk at a time?
 
Back
Top