Windows 10: Problem creating GPT VHD automatically

Discus and support Problem creating GPT VHD automatically in Windows 10 Virtualization to solve the problem; I have a script which produces a diskpart script to create a virtual hard drive. Code: create vdisk file="F:\hyper-V\virtual hard disks\2004dn.vhdx"... Discussion in 'Windows 10 Virtualization' started by cereberus, Jun 14, 2020.

  1. cereberus Win User

    Problem creating GPT VHD automatically


    I have a script which produces a diskpart script to create a virtual hard drive.

    Code:
    This works perfectly but when I try and produce a script for a GPT VHD (I want more than 4 primary partitions, I alsi have t select a volume.

    Code:
    Problem is a GPT drive also requires the volume number. I have to manually enter the Volume number # into my script that creates diskpart.

    Only way I can think of doing it is to run diskpart list volume command outputting list of existing drive volumes to a text file, parse text file to get last volume number, then add 1 (or 2 maybe), then running diskpart script in a separate batch file, passing volume number as an argument.

    Can anybody think of a simpler way?


    :)
     
    cereberus, Jun 14, 2020
    #1

  2. How to mount a vhd automatically on startup

    I seem to have found a solution to the problem of moving OneDrive folders to a SD Card in Windows 10.

    The solution in a nutshell is to create a vhd on the SD card, unlink Onedrive from the Microsoft account.

    On re-starting OneDrive you can change the location of the OneDrive folder to the vhd on the SD card! Yay!

    My question is, how do I get the vhd to mount automatically when the tablet is started up, and can that be programed to happen before the OneDrive sync service starts running?
     
    Gordon B-P, Jun 14, 2020
    #2
  3. Cannot convert GPT to MBR.

    Hi Michael,



    I suggest you to follow the below steps and check if it helps.

    This method you have to backup all your data and delete all partitions and volumes. Then use the
    DISKPART command.

    • Open command prompt and type in DISKPART and press Enter
    • Then type in list disk (Note down the number of disk you want to convert to GPT)
    • Then type in select disk number of disk
    • Finally type in convert gpt.
    Hope the information helps. Do reply if you need further assistance.
     
    Anup Karkal, Jun 14, 2020
    #3
  4. Problem creating GPT VHD automatically

    How to mount a vhd automatically on startup

    Windows 10 - How to Run Program Automatically at Startup

    It took me a good while to find an answer for this one, and so far this is the simplest I've found, but not without its faults.

    Follow the instructions to create the shortcut to the *.vhd file. When creating the shortcut, I also selected the
    Run>Minimized option so it would not open the window on my display, but it still opens as a window anyway.

    The only problem -- and its really just an annoyance, is that OneDrive still starts before the VHD is running, resulting in the error window, but the OneDrive error screen will go away on its own after OneDrive realizes the drive is available. If only
    there was a way to delay the OneDrive connection for 20-30 seconds or so...

    This is on an Asus T100 Chi detachable...
     
    DaveThomasvx, Jun 14, 2020
    #4
Thema:

Problem creating GPT VHD automatically

Loading...
  1. Problem creating GPT VHD automatically - Similar Threads - Problem creating GPT

  2. Problem creating GPT VHD automatically

    in Windows 10 Support
    Problem creating GPT VHD automatically: I have a script which produces a diskpart script to create a virtual hard drive. Code: create vdisk file="F:\hyper-V\virtual hard disks\2004dn.vhdx" maximum=60000 type=expandable select vdisk file="F:\hyper-V\virtual hard disks\2004dn.vhdx" attach vdisk create partition...
  3. VHD

    in Windows 10 Drivers and Hardware
    VHD: just a small question. can i delete a vhd after i hv mounted it permanently? https://answers.microsoft.com/en-us/windows/forum/all/vhd/deab598a-d7fe-4c5c-ace2-91003242d580
  4. Win 10 1903, DiskPart command 'convert gpt' automatically creates an MSR partition at the...

    in Windows 10 Software and Apps
    Win 10 1903, DiskPart command 'convert gpt' automatically creates an MSR partition at the...: Tired of running out of space in the recovery partition and get windows image shadow copy error 0x80780119, I was just trying out the script to prepare the GPT partitions for windows 10 installation, but rather than using WinPE I just used the DiskPart command on a running...
  5. VHD created within OneDrive - any views? Pros and cons?

    in Windows 10 Network and Sharing
    VHD created within OneDrive - any views? Pros and cons?: Somewhere I read about creating a VHD on OneDrive. Would appreciate views on this idea, also the pros and cons. Say I - would create VHD's on PC and laptop - applications should store their data within VHD (Office documents, Outlook (Exchange), PDFs, etc) - in most cases...
  6. Problem switching to GPT

    in Windows 10 Installation and Upgrade
    Problem switching to GPT: The background :- 1. I installed Win10 pro over Win7x64 ultimate on Computer A which went smoothly. 2. I noted the install was on a single partition on the SSD. The SSD over provisioning area had vanished. There was no separate boot partition presumably because there had...
  7. Attaching a VHD

    in Windows 10 Installation and Upgrade
    Attaching a VHD: I am running Windows 10, the latest build and created a Windows Image Backup image with Backup and Restore (Windows 7) from the control panel. To see if it works, I opened Disk Management and clicked on Action - Attach VHD and clicked on the VHD file, which is located on an...
  8. Create BitLocker Encrypted Container File with VHD or VHDX in Windows

    in Windows 10 Tutorials
    Create BitLocker Encrypted Container File with VHD or VHDX in Windows: How to: Create BitLocker Encrypted Container File with VHD or VHDX in Windows How to Create BitLocker Encrypted Container File with a VHD or VHDX File in Windows You can use BitLocker Drive Encryption to help protect your files on an entire drive. BitLocker can help...
  9. Create and Set Up New VHD or VHDX File in Windows 10

    in Windows 10 Tutorials
    Create and Set Up New VHD or VHDX File in Windows 10: How to: Create and Set Up New VHD or VHDX File in Windows 10 How to Create and Set Up New VHD or VHDX File in Windows 10 VHD (Virtual Hard Disk) is a file format which represents a virtual hard disk drive (HDD). It may contain what is found on a physical HDD, such as...
  10. VHD issues on reboot

    in Windows 10 Virtualization
    VHD issues on reboot: Hello I am trying to get the latest update of windows 10. The problem is my tablet does not have enough space. So I made a VHD. I told it to load automatically on reboot using these instructions https://www.eightforums.com/tutorial...tml#post545537 While it...