I have VHD file attached as a disk (Disk 2 on screenshot below). It has only 1 partition formatted in FAT32 (so Linux clients can write something there). It got full, so I want to extend it. I used Hyper-V tool to extend the size of the disk - but I can't "expand" exiting partition:

DISKPART> expand vdisk maximum=50000

DiskPart has encountered an error: The parameter is incorrect. See the System Event Log for more information.

and there is nothing in the Event Log (or may be I'm looking at a wrong place?..)

it's on Windows 2008 R2. Any idea how can I extend my disk from 30Gb to 50Gb?

Thank you.

enter image description here

  • Why do you have a FAT32 partition in a VHD? – Zoredache Jun 26 '12 at 23:25
  • so Linux clients can write something there – avs099 Jun 26 '12 at 23:32
  • Still don't understand why you need FAT32. When you say clients, are they accessing that volume via the network? If so, the filesystem doesn't matter. If you are running VMs, why don't you do the filesystem resize within your Linux VM? – Zoredache Jun 27 '12 at 0:02

According to Microsoft, you can't.


... You can extend a volume only if it does not have a file system or if it is formatted using the NTFS file system. You cannot extend volumes formatted using FAT or FAT32.

You cannot extend a system volume, boot volume, striped volume, mirrored volume, or RAID-5 volume. ...

Simplest solution I can see is to create a new 50 GB disk, format it as FAT32, move the data over, delete the old one and redo your drive settings (letter, shares, etc).

Also, you might want to look into using SAMBA so you don't have to have FAT formatted drives for your Linux boxes.

  • thank you! Can you point me to any good SAMBA how-to by any chance? – avs099 Jun 26 '12 at 23:33
  • Sorry, I can't. It's been ages since I set up SAMBA, and I used the O'Reilly book on it when I did. – HopelessN00b Jun 26 '12 at 23:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.