Backup Error using a Virtual Hard Disk with File History

Article translations Article translations
Article ID: 2790565 - View products that this article applies to.
Expand all | Collapse all

On This Page

About Author:

Collapse this tableExpand this table
Collapse this imageExpand this image
MVP
This article is provided by MVP Jay Pilarta. Microsoft is so thankful that MVPs who proactively share their professional experience with other users. The article would be posted on Jay Pilarta's website or the Crimson Spectrum blog later.

Symptoms

After every restart a Virtual Hard Disk used for File History asks to reconnect your drive.

Collapse this imageExpand this image
2790568


Cause

A Virtual Hard Disk starts offline during every machine restart and will be unavailable for use of File History.

Resolution

METHOD 1
  • Method 1 will assume that you already have a VHD file. You may also follow this link for Creating a VHD file.
  • Your Profile must be an Administrator or logged on as the Administrator before continuing with the Steps below.
  • We need to use a Text file and Command script to Auto-Mount a VHD file.
  • We need to use Notepad for the scripts as seen through Steps 1 to 4.
  1. Create a text file to execute auto-mount of a VHD file using Notepad and use the following lines below.
    Collapse this imageExpand this image
    2790574
    • Replace <Path of File> with the exact location and filename of the Virtual Hard Disk either from a Network or Local path.
    • Do not include the <>, e.g. C:\Users\Home\Desktop\Disk.vhd
  2. ave the text file with the name "Mount" to your Local drive where Windows was installed, usually this should be the C: drive. You can use any other filename as long as you remember the name of the text file you created.

    Collapse this imageExpand this image
    2790582
  3. Next is we need to create a Command-Line script. Open Notepad and provide the line below.

    Collapse this imageExpand this image
    2790583
    • If you used a different filename from Step #2, replace the Mount.txt with the filename you used.
  4. Save the file as "Mount.cmd" using the "Save As" function in Notepad through File then select Save As on your Desktop. This will open a window allowing us to save the file as a Command Line Script.

    Collapse this imageExpand this image
    2790585

    • Remember to use " " at the beginning and end of the filename, else this will save the file as a .txt instead of .cmd which we need.
  5. Open File Explorer by pressing the Windows Key+E or by simply clicking the File Explorer icon pinned on the Taskbar. Type the entire path seen below in the Address Bar then hit Enter.

    Collapse this imageExpand this image
    2790596
  6. Move the Mount.cmd file we saved on the Desktop into the Startup dragging and dropping it into the folder.

    Collapse this imageExpand this image
    2790597


    • Confirm any Administrator action for the moving the file by selecting Continue.

      Collapse this imageExpand this image
      2790598
  7. Reboot your machine. Confirm any prompt from DiskPart after the restart.

    Collapse this imageExpand this image
    2790599
METHOD 2
  • Method 1 will assume that you already have a VHD file. You may also follow this link for Creating a VHD file.
  • Your Profile must be an Administrator or logged on as the Administrator before continuing with the Steps below.
  • We will use Task Scheduler to execute an Auto-Mount for a VHD file.
  • We need to use Notepad for the script that will run in Task Scheduler.
  1. Create a text file to execute auto-mount of a VHD file using Notepad and use the following lines below.

    Collapse this imageExpand this image
    2790574
    • Replace <Path of File> with the exact location and filename of the Virtual Hard Disk either from a Network or Local path.
    • Do not include the <>, e.g. C:\Users\Home\Desktop\Disk.vhd
  2. Save the text file with the name "Mount" to your Local drive where Windows was installed, usually this should be the C: drive. You can use any other filename as long as you remember the name of the text file you created.

    Collapse this imageExpand this image
    2790582
  3. Open Task Scheduler by using the Advanced Menu option by pressing the Windows Key+X then select Computer Management. Choose Create Task from the right pane under Actions.

    Collapse this imageExpand this image
    2790603
  4. Name the Task then select the following options within the General Tab for "Run whether the user is logged on or not", "Hidden", "Run with the Highest Privileges", and Configure for Windows 8.

    Collapse this imageExpand this image
    2790604
  5. Move to the Triggers tab. Here select the option for "New...". In the New Trigger window use the dropdown beside "Begin the task" set to "At Startup", once done hit OK.

    Collapse this imageExpand this image
    2790605
  6. Move on to the Actions tab. Here select the option for "New...". In the New Action window specify the Program/Script we will use by browsing to where DiskPart is.

    Collapse this imageExpand this image
    2790607
    • You may choose to manually type the path for diskpart.exe or just use "Browse..." to locate diskpart.exe.
    • In case you installed Windows in a different drive, replace C: with the drive letter where Windows was installed.
    • Inside the "Add arguments" field, replace the Mount.txt with the filename you used from Step #2.
  7. Once all settings for the task is done, hit OK. Restart your system.

Idea

You may also want to use BitLocker Drive Encryption on a VHD file for added security and protection. For more information about enabling BitLocker (BDE) to lock up your data follow this link.

Community Solutions Content Disclaimer

MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

Properties

Article ID: 2790565 - Last Review: September 25, 2013 - Revision: 1.1
Applies to
  • Windows 8
  • Windows 8 Pro
Keywords: 
kbcommunity kbmvp kbstepbystep KB2790565

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com