 |
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.
Windows 7 - Disk Defragmenter - Open and Use Disk Defragmenter - Open and Use How to Use Windows 7 Disk Defragmenter
Published by Brink
06-01-2009
| Disk Defragmenter - Open and Use How to Use Windows 7 Disk Defragmenter  Information Fragmentation makes your hard disk do extra work that can slow down your computer. Removable storage devices such as USB flash drives can also become fragmented. Disk Defragmenter rearranges fragmented data so your disks and drives can work more efficiently. While Disk Defragmenter can run on a schedule, this will show you how to open and use Disk Defragmenter to manually analyze and defragment your disks and drives in Windows 7.  Note - If the disk is already in exclusive use by another program, or if the disk is formatted using a file system other than NTFS file system, FAT, or FAT32, then it cannot be defragmented.
- Network locations cannot be defragmented.
- If a disk that you're expecting to see under Current status is not showing up there, it might be because it contains an error. You should try to repair the disk first with Disk Check, then return to Disk Defragmenter to try again.
 Warning Solid State Drives (SSD) and USB flash key drives do not need to be defragmented. Doing so may shorten the lifespan of them. OPTION ONE
Using "Disk Deframenter" in Windows 7
1. Open the Start Menu, and double click on to expand All Programs, Accessories, System Tools, and click on Disk Defragmenter. (See screenshot below)
A) Go to step 3. OR 2. Open the Start Menu, then type dfrgui into the search line and press Enter. 3. To Anaylze a Disk NOTE: This will anaylze the selected disk to see what percentage fragmented it is. If the number is above 10%, you should defragment the disk.A) Select a disk, and click on the Anaylze disk button. (See screenshot below)
4. To Defragment a Disk NOTE: Disk Defragmenter might take from several minutes to a few hours to finish, depending on the size and degree of fragmentation of your hard disk. You can still use your computer during the defragmentation process.A) Select a disk, and click on the Defragment disk button. (See screenshot below) B) You will now see the disk being defragmented. (See screenshot below) NOTE: You can abort the defragmentation of the selected disk at anytime by clicking on the Stop operation button. 
5. When finished, click on Close. (See screenshot below)
OPTION TWO
Run Defragmenter from Drive's Properties Page
1. Open the Start Menu and click on the Computer button on the right dark side. 2. Right click the hard disk drive that you want to check, and click on Properties. (see screenshot below) 3. Click on the Tools tab, and click on the Defragment now button. (see screenshot below) 4. You can now do either step 3 or 4 in OPTION ONE above. OPTION THREE
Run Defragmenter in a Command Prompt
1. Do step 2 or 3 below for what how you would like to run the defrag command. 2. To Use a Elevated Command Prompt in Windows 7A) Open a elevated command prompt.
B) Go to step 4. 3. To Use a Command Prompt at BootA) Open a command prompt at startup.
B) In the command prompt, type diskpart and press Enter.
C) In the command prompt, type list volume and press Enter. NOTE: Make note of the drive letter that you want to run defrag on. The drive letter for the drive will not always be the same at boot as it is in Windows 7.
D) In the command prompt, type exit and press Enter.
E) Continue on to step 4. 4. In the command prompt, type in the following command below followed by one or more switches (flags) that you would like to use below with a space between each switch and press Enter. NOTE: For example, the most common command to run defrag on your C: drive is: defrag C: /Fdefrag [drive letter]: [switches] Switches: NOTE: The ones in red below are new to Windows 7. - /A - Perform analysis on the specified volumes.
- /B - Boot optimization to defrags the boot sector of the boot volume (ex: Windows drive). This will not work on a SSD.
- /C - Perform the operation on all volumes.
- /E - Perform the operation on all volumes except those specified.
- /F - Forces defragmentation of the volume when free space is low.
- /H - Run the operation at normal priority (default is low).
- /M - Run the operation on each volume in parallel in the background.
- /R - Performs partial defragmentation (default). Attempts to consolidate only fragments smaller than 64 megabytes (MB).
- /T - Track an operation already in progress on the specified volume.
- /U - Print the progress of the operation on the screen.
- /V - Print verbose output containing the fragmentation statistics.
- /W - Performs full defragmentation. Attempts to consolidate all file fragments, regardless of their size.
- /X - Perform free space consolidation on the specified volumes.

That's it,
Shawn |  Published by | | Administrator Join Date: Oct 2008 Location: Texas Posts: 37,303 | |
 Tutorial Tools | | | | | | | | | |
07-25-2009
|
#1 | | Windows 7 Home Premium 64 |
Disk degfragmenter hanging and crashing computer Hi, I have just installed windows 7 after a particularly bad virus destroyed xp, and I could not restore xp (even system restore was wiped off!)
So I have tried to run the Windows 7 defrag to see if that would clear a bit of the mess left by the virus, but when I tried to run it, it got stuck at 97% analysed. When I came back a bit later to see if it had done anything, the computer had crashed.
I tried a hard reboot, and when Windows 7 recovered the session, the defrag came back on its own, and was showing the c drive as 0% consolidated, and just got stuck there too.
Has this happened to anyone else? Because from what I read the defrag tool is meant to be very good, but it doesn't seem to do much on my pc?
| My System Specs | | System Manufacturer/Model Number Custom Build OS Windows 7 Home Premium 64 CPU Intel Quad Core Q9550 2.83 GHz (not overclocked) Motherboard Asus P5QL/EPU (Intel P43 chipset, 4x DDR2, PCI-E 2.0) Memory 4.0GB Corsair DDR2 800mhz XMS2 (2x 2GB) Graphics Card ATI Radeon HD 4850 512MB Sound Card Onboard 7.1 Audio Monitor(s) Displays DVI LG Monitor Screen Resolution 1440 x 900 Keyboard PS/2 Keyboard Mouse USB HID Compliant Mouse PSU EZ Cool 700W Tornado PSU Case Asus TA-210 Cooling Standard CPU heatsink & fan Hard Drives Hitachi HDT721010SLA360 1TB S-ATAII 3.0Gb/s Internet Speed 10 MBs Other Info Cannon Lide Scanner
Cannon IP5200 |
07-25-2009
|
#2 | | |
there are also a few command-line options for those that like that kind of thing. Disk Defragmenter from Command Prompt - Vista Forums
open a command prompt, and type defrag to see the full list.
probably the most useful is the /c switch which will defrag all your drives/partitions one after the other.
if you have multiple drives (rather than multiple partitions on the one drive) you can also use the /m switch in combination with /c - this will partition your drives in parallel ie all at the same time - please note that this switch is best avoided on multi-partitioned drives, as it will put too much strain on the drive as the heads will be constantly switching from one partition to the other.
you can also use further switches to exclude certain partitions.
happy defragging!
Last edited by Brink; 07-25-2009 at 01:00 PM..
| My System Specs | | System Manufacturer/Model Number mickey megabyte 1234 OS ultimate 64 sp1 CPU i5 2500K 3.3@4.2GHz Motherboard MSI P67A-GD53 Memory 8 gigs GSkill Ripjaws 1600 Graphics Card amd hd6950 Sound Card creative x-fi gamer Monitor(s) Displays samsung 24" Screen Resolution 1920x1080 Keyboard saitek eclipse ii Mouse logitech g3 PSU antec 550 Case antec three hundred Cooling i'm a cooling fan Hard Drives ocz vertex 2e 60 gig, samsung f3 1tb, buffalo 2tb ext Internet Speed about 4 Mbps Other Info i love win7 |
07-26-2009
|
#3 | | Windows 7 Home Premium 64 |
Cheers for that-weirdly enough after I tried rebooting again it has worked! But if it hangs again I might give that a go.
Take it easy | My System Specs | | System Manufacturer/Model Number Custom Build OS Windows 7 Home Premium 64 CPU Intel Quad Core Q9550 2.83 GHz (not overclocked) Motherboard Asus P5QL/EPU (Intel P43 chipset, 4x DDR2, PCI-E 2.0) Memory 4.0GB Corsair DDR2 800mhz XMS2 (2x 2GB) Graphics Card ATI Radeon HD 4850 512MB Sound Card Onboard 7.1 Audio Monitor(s) Displays DVI LG Monitor Screen Resolution 1440 x 900 Keyboard PS/2 Keyboard Mouse USB HID Compliant Mouse PSU EZ Cool 700W Tornado PSU Case Asus TA-210 Cooling Standard CPU heatsink & fan Hard Drives Hitachi HDT721010SLA360 1TB S-ATAII 3.0Gb/s Internet Speed 10 MBs Other Info Cannon Lide Scanner
Cannon IP5200 |
11-24-2009
|
#4 | | |
Surely USB Flash Drives should not be defragmented? "Removable storage devices such as USB flash drives can also become fragmented."
True - but since there's no time-consuming disk head movement a fragmented UFD is no slower than a defragmented one. Additionally, the UFD 'wears out' by being written. See, for example, Should I defragment my USB Flash drive? | My System Specs | | |
11-24-2009
|
#5 | | Windows 7 Ultimate x64 SP1 |
Hello John, and welcome to Seven Forums.
No, it would not be a good idea to defragment a USB flash drive. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
03-25-2011
|
#6 | | |
what happens if you defragment a 3% fragmented disk or even a 0% fragmented disk ?? | My System Specs | | OS Windows 7 Home Premium CPU Discovery Motherboard Asrock Memory 2.00 GB Graphics Card NVIDIA 1.00 GB Screen Resolution 1366 x 768 Keyboard A4Tech Mouse A4Tech Run on Shine Case Discovery Hard Drives C:74 GB
D:74.9 GB Internet Speed 80 mbps |
03-25-2011
|
#7 | | Windows 7 Ultimate x64 SP1 |
Hello Villanuevayael,
As long as it's not a SSD, then it's not going to hurt anything to defrag a 3% fragmented HDD or even a 0% fragmented HDD. It's just that there's really no need to until it reaches a higher percentage, say around 10%. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
03-26-2011
|
#8 | | |

Quote: Originally Posted by Brink Hello Villanuevayael,
As long as it's not a SSD, then it's not going to hurt anything to defrag a 3% fragmented HDD or even a 0% fragmented HDD. It's just that there's really no need to until it reaches a higher percentage, say around 10%. -- thanks Brink :] this really helps a lot | My System Specs | | OS Windows 7 Home Premium CPU Discovery Motherboard Asrock Memory 2.00 GB Graphics Card NVIDIA 1.00 GB Screen Resolution 1366 x 768 Keyboard A4Tech Mouse A4Tech Run on Shine Case Discovery Hard Drives C:74 GB
D:74.9 GB Internet Speed 80 mbps |
03-26-2011
|
#9 | | Windows 7 Ultimate x64 SP1 |
You're most welcome Villanuevayael. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 Disk Defragmenter - Open and Use problems? All times are GMT -5. The time now is 11:05 PM. |  |