You are currently offline, waiting for your internet to reconnect

Backup Error using a Virtual Hard Disk with File History

About Author:
MVPThis 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.



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.
    • 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.

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

    • 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.


    • 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.

  6. Move the Mount.cmd file we saved on the Desktop into the Startup dragging and dropping it into the folder.



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

  7. Reboot your machine. Confirm any prompt from DiskPart after the restart.

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.

    • 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.

  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.

  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.

  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.

  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.

    • 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: 09/25/2013 11:08:00 - Revision: 1.1

Windows 8, Windows 8 Pro

  • kbcommunity kbmvp kbstepbystep KB2790565
Feedback
ePV = 1; var varClickTracking = 1; var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write(" ListForLargeScreens track by $index" class="col-sm-6 col-xs-24 ng-scope"> Paraguay - Español
Venezuela - Español
/html>mp;t=">I=4050&did=1&t="> var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write(" ')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?"> 50&did=1&t=">