vmtoolkit.com
The source for virtual machine tools and expertise
Welcome to vmToolkit Sign in | Join | Help
in Search

VHD corrupt after resize?

Last post 01-05-2009, 5:23 AM by crikisia. 10 replies.
Sort Posts: Previous Next
  •  10-03-2007, 5:36 AM 378

    VHD corrupt after resize?

    I've converted my dirrerencing Windows XP disk to a dynamically expanding disk by merging it with the parent. This new merged disk boots just fine, but ofcourse still has the same old size. So I added it as a secondary disk on a Windows Server 2003 machine, and followed these points to expand the disk:

    -Gave it a drive letter in Administrative Tools-> Computer Management-> Disk Management
    -Ran DISKPART:

    DISKPART>list disk
    DISKPART>select disk 1
    DISKPART>list part
    DISKPART>select part 1
    DISKPART>extend
    DISKPART>exit

    -Removed the drive letter in Administrative Tools-> Computer Management-> Disk Management
    -Exited Widows Server 2003
    -Changed the primary vhd of my Windows XP machine to the new extended disk

    When I try to boot the Windows XP machine it now fails with a "A disk read error occured. Press Ctr+Alt+Del to restart"

    Has the resizing operation somehow corrupted the disk or have I made some other error in the prosess?

  •  10-10-2007, 5:03 PM 384 in reply to 378

    Re: VHD corrupt after resize?

    I had the same problem -"a disk read error occured" and the VW wouldn't boot.  I tried it a couple of times, tried dismounting and mounting, all sorts of things, but I couldn't get past the problem.  I just went back to my backup.  *shrug*.   If someone finds a resolution to this problem, I'm all ears, but for now I've got to say the product doesn't do what it says on the tin.
    Filed under:
  •  10-15-2007, 1:47 PM 386 in reply to 378

    Re: VHD corrupt after resize?

    You might want to take a look at the following link.

     http://searchwincomputing.techtarget.com/originalContent/0,289142,sid68_gci1126671,00.html

     This might help with increasing the size of your VHD.  I see that you tried to increase the partition size but I think you should have done the volume instead.

  •  11-25-2007, 6:44 AM 419 in reply to 386

    Re: VHD corrupt after resize?

    This article doesn't fix the problem. I get the "disk read error" before and after using diskpart.
  •  11-27-2007, 3:11 PM 421 in reply to 419

    Re: VHD corrupt after resize?

    Im getting this too.. had a 3Gb W2k3 vhd tried to resize it to 20gb .. no go.. tried again to 8gb no go. This is resizing the image file itself using the utility not the partition.
  •  12-18-2007, 6:55 AM 435 in reply to 378

    Re: VHD corrupt after resize?

    I have solved the issue by modifying the Virtual Machine BIOS parameters:

    1. While booting, press DEL to enter setup.
    2. Go to Advanced menu
    3. Select IDE Configuration
    4. Select Primary IDE Channel (0) (or the relevant drive)
    5. Disable LBA/Large Mode
    6. Save settings and exit

    I haven't noticed any performance degradation due to this setting.

    Please let me know if this solves your problems as well.

  •  01-22-2008, 11:35 AM 451 in reply to 435

    Re: VHD corrupt after resize?

    1. While booting, press DEL to enter setup.
    2. Go to Advanced menu
    3. Select IDE Configuration
    4. Select Primary IDE Channel (0) (or the relevant drive)
    5. Disable LBA/Large Mode
    6. Save settings and exit 

    That fixed the disk read error for me.

     

    Thanks

  •  03-28-2008, 8:05 AM 490 in reply to 451

    Re: VHD corrupt after resize?

    murat- you are a star - I don't think I would ever have guessed that!

    Thanks a lot.

  •  10-17-2008, 8:28 AM 612 in reply to 490

    Re: VHD corrupt after resize?

    that sounds easy to do, but what about people running Virtual Server 2005?  I can't get into the BIOS.
  •  11-10-2008, 2:03 PM 631 in reply to 451

    Re: VHD corrupt after resize?

    WinXP Pro, SP1 in the VMC, running on XP Pro SP3.

    Doesn't work for me, currently trying various combinations.

     At first I thought it was because I may not have shut down my VMC prior to running the resizer, so ran through it all again having first shut down the VMC... no luck.

     Tried Murat's suggestion of switching off LBA/Large Mode for the new disk... no luck. (interestingly, my "old" VHD drive only works if I have LBA/Large Mode switched on to "auto").

    Would like to see if anyone else had issues.

  •  01-05-2009, 5:23 AM 657 in reply to 631

    Re: VHD corrupt after resize?

    Ya! Doesn't work for me too... The pointer goes haywire while booting. It never enters the boot screen of the OS hosted, but the pointer jumps around randomly after I tried murat's method.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems sponsored by xcarab, inc