2012-11-27

USB Drive Backup Speed Slow

Howto: Speed-up all USB drives in  Windows 11, Windows 10, and Windows 7. USB speeds for all Thumb drives, cameras, and other external USB disks will be oodles faster with a minor tweak.  This change is recommended.

Acronis full system backups to an external USB drive were horrible -- 8 hours to backup 100G. Similarly, other large file copies were slow (see the glorious DirectoryPulse Backup program).  Backups should only take about 20 minutes.  This is not a problem with the backup.

Follow these steps - which must be done for each plugged-in USB Device where you want improved speed.  The drawback is you can't unplug the drive at will; you must use the system tray menu to eject the drive, described below.

Even with these steps, I have failed with some types of USB drives.  For external "spinny" drives (real hard drives), these steps have worked, but for some USB thumb drives, the results have not always worked.  I am unclear why this is.

Multi-Step Solution:

In Device Manager, change the drive's USB Policy to "Better Performance" and turn off a Write Cache switch.


1. Start Device Manager in administrative mode:

Press the Windows-R key ("Run")
Type "devmgmt.msc" (no quotes, do not yet press Enter)
Press Ctrl-Shift-Enter to open with elevated permissions (administrative mode)

(Starting in Windows 10/11, Microsoft made this so hard to run in administrative mode!)

2. Plug-in the USB drive and allow it to mount normally.

3. In Device Manager, expand the "Disk Drive" section,

In the details, locate the plugged-in USB drive.
For example, my drive is an external Seagate 5G disk, labeled "Seagate BUP".   A second drive I own was labeled "General UDisk USB Device", etc.

Make these changes:

a. Other-mouse-click (right mouse) the drive, Properties
b. Click the [Policies] tab

c. Choose  "[x] Better Performance"
    Choose  "[x] Enable Write caching on the device"

In Windows 11, some devices appear this way:

Click for larger view


! Some devices do not have the [x] "Enable Write Cache" switch and I am unclear why -- without that switch, the drive will not be able to run any faster and this article will not be helpful.

Leave device manager open.

Power Changes:

4.  Make this additional recommended change:

     In device manager, expand "Universal Serial Bus Controllers"
     Locate "Generic SuperSpeed USB Hub"
     In the [Power Management] tab,
     Uncheck [ ] Allow the computer to turn off this device to save power

     (this keeps the drive from going to sleep during long-run backups and file-copies)

     Click OK and close the control panel


5. Eject the disk and re-insert:

In the System Tray (Windows 7 illustrated), click the arrow to expand hidden icons;

Choose the USB icon ("Safely Remove Hardware and Eject Media);
"Eject the disk"
Unplug the USB cable.

Re-plug-in the disk for the changes to take effect.




6.  Reformat the drive to remove "exFat" partition

Many external USB disk drives come pre-formatted using an "exFat" partition -- which makes the drive compatible with Apple computers.  Revert the drive to an "NTFS" partition in order to improve the speed.

Important: Confirm the drive-letter of your USB (aka Drive D:, E:)

a.  Press Windows-R (Run) and launch a DOS Command Prompt
b.  Type "cmd"  (no quotes, do not yet press Enter)
c.  Press Ctrl-Shift-Enter to run as Administrator (run with elevated permissions)

d.  Type this command:
     format e: /v:backupDisk /fs:ntfs /q

where the volume label, "backupDisk" is a cosmetic name and the file-system is NTFS.  "/q" is a quick format.

e.  Press Enter to format. 

Formerly, this article recommended formatting the disk using non-quick (remove the /q switch) format.  Experimentation showed no difference in the drive's speed.  "Slow formatting was abandoned for a more practical reason.  A 1 terabyte disk took nearly 24 hours to format.  A 5 terabyte drive took better than 4 days.



Results:

USB Disk operations will be roughly a zillion times faster. The new backup took 23 minutes, which was a slight improvement over the original 8 hours. Everything, including standard file-copies to this drive, was improved.


Microsoft made a conservative default setting, which allows you to pull drives without fiddling around with software. But if you make these changes, you will have to exercise restraint when pulling a drive; you will have to use the System Tray menu to eject the disk.

Drawbacks:

If you like to jerk the USB drive out when you are done with your file-copy, you may be in trouble.  With this change, you must click the system-tray icon and eject the disk in a controlled manner. Out of habit, you should be doing this anyway -- just to be safe.

Cameras seem to corrupt their memory cards more-often-than-not and it is probably best to leave the USB settings for this device unchanged, mostly because people tend to unplug cameras and run away; everyone is always in a rush.. 

If you purchase a new USB drive, make these same changes. 
Set one time per-device, regardless of which USB port it is plugged into.

This holds true with thumb drives, cameras and all other external writable drives. I have not researched, but there is probably a global policy which can set this for all devices.

Hard Disk Cache

The local Hard Disk has a similar setting, which I also enable on my own computers. 
*Only recommended on battery-powered laptops or on desktops with UPS protection.

A.  In Control Panel, Device Manager (run as Administrator), "Disk Drives"
      Locate the hard disk (may be labeled as "ATA Device")

B.  Select Properties, [Policies] tab,
[x] Enable Write Caching on the Device
[x] Turn off Windows Write-cache buffer flushing on this device (e.g. - check the box -- a double-negative)*



Related Articles:
Disk Imaging Cleanup Steps - Make your backups faster - All versions of Windows
Windows 11 Tuning
Windows Deleting unused apps


Windows 7 Explorer Changes
Streamline Windows 7 Start Menus

 

2012-11-24

Run a Windows 8 DOS CheckDisk



If your disk-image backup program hangs or crashes, or you have other reasons to believe a disk is corrupt (power failures, etc.), run a DOS check disk (chkdsk).  This command will more thoroughly repair the disk than the default Windows-based error-check routines.

Steps:

A check disk will take approximately 1.5hrs, depending on the size of the disk.  It will spend a huge amount of time at 28%, be patient.

1.  Launch an Administrator DOS Prompt

     Windows 8
     a.  From the Start Page, swipe from bottom or "other-mouse-click" background
     b.  Click "All Apps"
     c.  Locate "Command Prompt"
     d.  Other-mouse-click Command Prompt icon; choose "Run as Administrator"

     Windows 7
     a.  In the Start Menu, locate "Command Prompt"
     b.  Other-mouse-click menu item, choose "Run as Administrator"

2.  Type this command:

     chkdsk C: /f /r    (enter)

     With the C: drive, DOS will complain the disk is in-use ("volume in use")
     Acknowledge the prompt with "Y".
     Nothing else will happen.



3.  Close the DOS window by typing this command:  exit

4.  Gracefully reboot / restart the computer. 

     The CheckDisk will start when the machine boots.
     Go out and have a nice dinner.
     When done, it will automatically load Windows.


Review the Results:

Windows 7 and Windows 8 may not show the results of the scan, especially if no errors were found.  Optionally confirm what Chkdsk found by looking in the Application Event Log.

5.  In Control Panel, Administrative Tools, "Event Viewer"
     Open Windows Logs, Applications
     Click "Filter"
     In Event Sources, type "chkdsk"; Click OK

     Review the events.
     Within each found event, note the two tabbed items below. 
     Scroll down to read the reports.


     What you want to see is a report similar to this:

   Windows has scanned the file system and found no problems.
   No further action is required.
    :
   0 KB in bad sectors.
    :
 

      Anything else may be cause for concern; see below.

 6.  With File Explorer, examine the root directory of the scanned disk (C:)

     Look for chkdsk log files with names similar to this:
    Chkdsk20120703093010.log

     If found, these are recovered damaged files but are likely not useful.
     Examining (with Notepad) and you will probably find they are useless and can be
     deleted. 



What if Bad Sectors / Bad Clusters are Found?


A few (hundred) bad sectors is not the end of the world, but does indicate some kind of hard disk trauma or power problem.  As Chkdsk runs, it marks bad clusters and takes them out of rotation.  Rarely, viruses will damage clusters but most do not do this anymore - a killed host can't propagate the virus. 

If you find a larger number of chkdsk log files and the Event Viewer shows a large number of errors, Reboot and run these steps again. If errors continue, your disk is failing.  Manually copy important files to separate media and replace the drive, or if you are like most people, buy a new computer. 

Times like this are a good time to take an image of the disk, but the image may fail if clusters are misbehaving.  This can be a scary time.  See this keyliner article: Acronis Step-by-Step.

Related Articles
Acronis Step-by-Step
Disk Image Cleanup Steps
USB Backup Drive Slow
Frankenputer comics

2012-11-10

Windows 8 Border Thickness

How to: Change Windows 8 default border thickness

The default Windows 8 border thickness is too thick for desktop and laptop users.  You can make the border thinner, matching the Windows 7 style. 

Windows 11 Notes:
Border cannot be adjusted in Windows 11.  But note this important thought:  Although the borders display with a thin, 1 pixel thickness, they actually active around 10 pixels.  This setting is no longer needed in Windows 11.


Recommendations:
  • Make this change only on desktop and laptop computers.
  • For some people this change may not be recommended on touch-screens - the border may be too thin for accurate finger placement.  This is easily tested.

Steps:

This change requires editing in the Windows Registry.

1.  From the Start Page, "other-mouse-click" the background (or swipe from bottom).
Click "All Apps"




2.  From the Charm menu, search for and run "Regedit"



3.  In the Registry Editor, locate this key on the tree-side:

HKEY_CURRENT_USER\
Control Panel
Desktop
WindowMetrics

HKCU\Control Panel\Desktop\WindowMetrics

4.  On the detail side, change these two values:

BorderWidth from -15 to 0 (zero)
PaddedBorderWidth from -60 to 0 (zero)

Click for larger view
5.  Close Regedit

6.  Reboot.  You must reboot to see the change.

Testing

Launch any standard desktop application, such as Notepad; Confirm border width / thickness.
To undo this change, return the two values to their previous value (documented above) and reboot.

Additional Notes:

Unfortunately, this registry change can only be made in the Current User Registry key and cannot be made in the HKLM key.  Because of this, it must be made for each new user in the system. 

This key can be changed in the Default User's key but this will only help new users added to the system (Keyliner, untested).
HKEY_USERS\.Default\Control Panel\Desktop\WindowMetrics

Changed Keys:
HKCU\Control Panel\Desktop\WindowMetrics\BorderWidth
HKCU\Control Panel\Desktop\WindowMetrics\PaddedBorderWidth