كلمة منفعة
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

VHD disappears upon reboot

اذهب الى الأسفل

VHD disappears upon reboot  Empty VHD disappears upon reboot

مُساهمة  minagou الثلاثاء فبراير 25, 2014 10:55 am

How do I make the VHD stay attached after I reboot? I don't want to have to manually attach it every time.

minagou
Admin

المساهمات : 1035
تاريخ التسجيل : 13/07/2010

http://kelmetmanfa3a.forumaction.net

الرجوع الى أعلى الصفحة اذهب الى الأسفل

VHD disappears upon reboot  Empty Automatically attaching VHD files in Windows 7 and Windows 2008

مُساهمة  minagou الثلاثاء فبراير 25, 2014 11:04 am

[ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط]


If you have played with the new VHD feature in windows 7 or windows 2008 then you know just how cool of a feature this is. However the problem is that when you reboot your machine you find that when it comes back up all your VHD files are no longer attached? Here is what I did to get around the issue.

  1. Create a batch file that will hold the following line:

    diskpart /s “c:\path to script\diskpartscript.txt”

    I named my batch file attachvhd.bat and placed it in the same folder as my VHD files


    [ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط]
  2. Create the script file that is being referenced by the attachvhd.bat batch file. Here is what the contents of that script needs to contain:
    select vdisk file="c:\path to vhd files\myvhddrive.vhd"
    attach vdisk

    I named my script file diskpartscript.txt and placed it in the same folder as my VHD files.

    [ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط] 
  3. Create a scheduled task that will automatically run when your machine starts up.



  • You have now completed all the necessary steps. Restart your computer and you should find that your VHD files are now automatically attached. One caveat is that if you reboot and you log into your machine quick enough it is possible that the task may not have been run yet. Once you are logged in if the task runs you will get an Autoplay dialog as follows. Simply close it. This does not happen if the task runs before you get logged in.

    [ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط]

  • minagou
    Admin

    المساهمات : 1035
    تاريخ التسجيل : 13/07/2010

    http://kelmetmanfa3a.forumaction.net

    الرجوع الى أعلى الصفحة اذهب الى الأسفل

    VHD disappears upon reboot  Empty رد: VHD disappears upon reboot

    مُساهمة  minagou الثلاثاء فبراير 25, 2014 11:06 am

    try VHD Attach 1.60 (http://www.jmedved.com/?page=vhdattach) or use this script:

    minagou
    Admin

    المساهمات : 1035
    تاريخ التسجيل : 13/07/2010

    http://kelmetmanfa3a.forumaction.net

    الرجوع الى أعلى الصفحة اذهب الى الأسفل

    الرجوع الى أعلى الصفحة


     
    صلاحيات هذا المنتدى:
    لاتستطيع الرد على المواضيع في هذا المنتدى