Forums

Forums (http://www.abandonia.com/vbullet/index.php)
-   Tech Corner (http://www.abandonia.com/vbullet/forumdisplay.php?f=23)
-   -   How to use DISKPART to mount a .VHD file (With Screenshots) (http://www.abandonia.com/vbullet/showthread.php?t=33857)

MrThrall 08-05-2017 11:04 PM

How to use DISKPART to mount a .VHD file (With Screenshots)
 
Ok, so to beginners, this will look sorta Complicated, but trust me when I say that it's easier than it looks.

Shoutout to "zirkoni" for telling me about this method :D

Ok lets get on with it, shall we? :max:

Step 1: Opening "command prompt"

Simple enough, right?

https://hejsmw-ch3302.files.1drv.com...&cropmode=none

Step 2: Navigate to "C:\WINDOWS\System32" and run "DISKPART"

Again, simple enough. just use these commands:

Code:

"cd .." x2
"cd Windows"
"cd System32"
"DISKPART"

Sorry for the cluttered desktop BTW, I'm a heavy user.

https://hujsmw-ch3302.files.1drv.com...&cropmode=none

Now one of 2 things should happen:

If you ran 'Command Prompt" as an Administrator, "Diskpart" should start in the command prompt window without any hassle.

https://epjsmw-ch3302.files.1drv.com...&cropmode=none

Or if you ran it normally, you'll get a UAC or "User Account Control" window pop-up asking if you want to let DISKPART make changes to the disk... and then DISKPART should run in a separate window.

https://svzrbg-ch3302.files.1drv.com...&cropmode=none

https://sfzrbg-ch3302.files.1drv.com...&cropmode=none

Step 3: Selecting and Mounting the .VHD file
This is where is can look complex, but it's really easy if you've done it before.

Now I'm gonna use my newly created Windows 98 VHD in the "Virtualbox VMs" folder. Ok, my name is Carter Nugent, and I'm only telling you this because I'm sick of having to make sure my name is censored in every screenshot.
Anyways, use this command to select the VHD file:

Code:

select vdisk file="c:\Users\{Username}\VirtualBox VMs\Windows 98 SE\Windows 98 SE.vhd"
https://s1zrbg-ch3302.files.1drv.com...&cropmode=none

And now it should say "DiskPart successfully selected the virtual disk file",
now from here all you need to type is:
Code:

attach vdisk
And your VHD should appear as any other drive (for me it actually popped-up as it was attached).

https://slzrbg-ch3302.files.1drv.com...&cropmode=none

and you're done, that was easy right?
again, special thanks "zirkoni" for telling me this method :) .


The current time is 09:25 PM (GMT)

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.