Skip navigation.

This Day in History: May 1stAll recent posts.Net Web Hosting with ASP.NET 2.0 Beta 2

Adding Hard Disk in Virtual PC 2004

The other day I installed Microsoft Virtual PC 2004 and quickly whipped out a WinXP installation on it. My mistake was to allocate a “hard drive” with only 4G of space. Surprisingly, a bare-bones WinXP installation after all service packs took a little over 3G!

Ready…

Luckily, VPC allows adding two more hard disks. To add another virtual disk, you have to select an available slot and launch the Virtual Disk Wizard. Follow on-screen instructions and create a new virtual hard disk (dynamically expanding, fixed, differencing—doesn’t matter), then go back to the settings screen, select Virtual hard disk file and browse to the one you have created a minute ago.

A screen with settings of a virtual machine (Windows XP in this case)

This is only half the story. You now have a “physical” hard disk, but Windows won’t see it because the disk doesn’t have any logical partitions and is not formatted.

At first, I couldn’t figure out how to make Windows see my new disk, and searching online turned up absolutely nothing. I hope this post helps those of you struggling with the same problem.

Set…

I did find a mention of a tool called DiskPart. I’ve become a bit rusty on the disk partition and volume theory, but it didn’t take long to figure it out.

Boot up Windows in VPC, and launch DiskPart.exe from command line. In DiskPart

  1. Run the list disk command. You will see your hard disk listed there.
  2. Select it by running select disk 1 if you’re adding Hard Disk 2, or select disk 2 for Hard Disk 3 respectively (their numbering starts at 0).
  3. Run create partition extended followed by create partition logical. This way the logical partition will take up all the space on the new disk.
  4. Run assign. If you wish to assign a specific available (!) letter, plug it after the assign command.

Go!

At this point Windows should see your drive. You’re all set.

Don’t do any of it on a development or production drive. These instructions are for virtual disks within Virtual PC only! Help you God if you destroy a live disk.

By the way, in terms of performance, I enjoy VPC soooo much better than VMWare!

Comments

Comment permalink 1 Brett |
Could you not just use the Disk Manager (you get get to it from computer management)? You could have the loaded the additional drive as an NT folder even.
Comment permalink 2 Milan Negovan |
Duh! I forgot about that MMC snap-in. :) I went back and did the same routine with Disk Management, and it worked like charm.
Comment permalink 3 Devdatta |
Thanks a lot :)
Saved me a lot of trouble. I was in the same predicament..had installed windows on a small VHD
Comment permalink 4 Dave |
thanks man!!! this is exactly what I was looking for!
Comment permalink 5 Fabio |
Thaths God
Comment permalink 6 Robert |
Many thanks to you. A useful thing
Comment permalink 7 Alex |
Thanks, very good
Comment permalink 8 giulioski |
Hi, I've the same problem but with Win 98 and diskpart is not available for Win 98. I can see only the second hd but not the 3rd. HELP !
Comment permalink 9 Scott |
Exactly what I was looking for. Thank you far taking the time to share the hard-won info.
Comment permalink 10 Robert |
for win98... type command the run box.. get a dos windows. then use fdisk (type it). Change to disk 2 then create a primary dos drive. Reboot, and then you will find the drive in my computer.. format it and your done.
Comment permalink 11 demefemf |
good man!!!
i searched for hours in the vpc itself....
ty for placing this topicXD
Comment permalink 12 chris |
Thanks, that helped a lot =D

Had to install virtual PC and install xp just so i can install my game (which doesnt run on vista. full stop.)
Comment permalink 13 thuyduong |
Thank you so much
Comment permalink 14 Jose |
Thank you!! I have been in problems with the recogntion of the physical unit for a long time ... until now :D.
Comment permalink 15 Dave W |
Thank you - just what I needed

Emails and Notifications

Would you like to be notified when somebody responds to this post?  Would you like to have these comments emailed to you?

TrackBacks

Sorry, TrackBacks are not allowed.

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):