Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Virtualbox Gparted VDI Resize

  1. #1
    Join Date
    Feb 2009
    Beans
    22

    Virtualbox Gparted VDI Resize

    Hi all,

    My first post in these forums so I apologize if this is the wrong place to be asking this.

    I followed these instructions to start a VDI resize and I am seeing this take a long time and there isn't any visible progress bar or indication of the amount of time it will take to complete (posted in thread on VirtualBox.org):

    Hi,

    You could try something like this (see also Tutorial - All about VDIs: How can I resize the partitions inside my VDI?):

    1. Create a new VDI of the desired size.
    2. Boot GParted Live in a VM with both old and new VDIs attached.
    3. Check in the partition editor (opened automatically after booting) what your old and new disk locations are. (It'll be something like /dev/hda and /dev/hdb.)
    4. Copy contents from old to new disk. This will take a fair amount of time. (Here /dev/hdX is your original disk and /dev/hdY the new one).

    Code: Select all Expand viewCollapse view
    dd if=/dev/hdX of=/dev/hdY

    * Warning: Make sure you do not mix up your input and output disks or you'll wipe all information from your original disk! (if= specifies the input and of= specifies the output.)
    5. Reboot (again with GParted-Live). Now you should be able to increase the Windows partition size on the new disk.

    Once you've verified the larger VDI boots Windows fine (and disk size is as you'd expect) you can of course delete the old smaller VDI.

    Edit: Instead of rebooting before you resize the partition you should be able to run partprobe and the hit CTRL+R in GParted instead.

    Regards,
    VT

    The original VMI is only 3.16GB and the new VMI is 4.7GB. Both are NTFS and I am in the copy phase.

    Anyone have any experience with this that could tell me the time it may take? Sitting here at Starbucks having an Americano and hoping I have the battery power left to complete. (Wont mater if it dies, these are just XP Pro test OS's).

    bf109

  2. #2
    Join Date
    Feb 2009
    Beans
    22

    Re: Virtualbox Gparted VDI Resize

    My bad. It finished the copy about 1 minute after I posted.

    I then tried to boot the new VDI but it would not boot. I get an error that says:

    A disk read error occured.
    Press ctrl+alt+del to restart.

    I went back into GParted and tried to set the flag to "boot" not really knowing what that is supposed to do and it then gave me the error listed above (it was just sitting at a blank screen before that). I guess that copy process in GParted isnt actually creating an image then huh? No clue what to do now. I am just going to reinstall the OS if I can't get this to work but I would really like to know how to do this. Any ideas?

  3. #3
    Join Date
    Feb 2009
    Beans
    22

    Re: Virtualbox Gparted VDI Resize

    I saw a post about having to repair the boot sector on the new VDI so I boot the XP installation disk and in Recovery Console tried a "fixboot" and a "fixmbr" after trying to boot the OS again to no avail.

    Help...anyone...anyone...Bueller...

  4. #4
    Join Date
    Feb 2009
    Beans
    22

    Re: Virtualbox Gparted VDI Resize

    I tried to create a new VDI of 5.19g to see if that would make any difference since I found a post of someone who tried using different size VDI after experiencing the exact same issues I am and it did not work for me. The copy went off fine and this time the "bootable" flag was already marked but I am still getting the same error message as before when trying to boot. Its frustrating because I am seeing multiple posts of people following the exact same procedure as I am and having it work. Have no idea why it's not working for me. Karma? I'm stumped!

  5. #5
    Join Date
    Feb 2009
    Beans
    22

    Re: Virtualbox Gparted VDI Resize

    I tried to make another .vdi file since I wasnt sure if I chose dynamically expanding or fixed the first time thinking that that may be the issue and got the exact same results.

    I also find it surprising that absolutely no one in this forum has anything to offer me in the way of help. Have I broken some rule of forum conduct? There has got to be someone in here that has run in to this same problem before, no?

  6. #6
    Join Date
    Oct 2007
    Beans
    20

    Re: Virtualbox Gparted VDI Resize

    > A disk read error occured.

    could be a machine-level issue. Did you remove the old drive (and attach the new drive as the primary drive)?

  7. #7
    Join Date
    Feb 2009
    Beans
    22

    Re: Virtualbox Gparted VDI Resize

    Yes I did. I saw several tutorials that were quite specific about that, specifically making the newly created .vdi the primary master.
    Last edited by bf109; March 12th, 2009 at 05:13 AM.

  8. #8
    Join Date
    Mar 2009
    Location
    Prato, Italy
    Beans
    3
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Virtualbox Gparted VDI Resize

    Quote Originally Posted by bf109 View Post
    My bad. It finished the copy about 1 minute after I posted.

    I then tried to boot the new VDI but it would not boot. I get an error that says:

    A disk read error occured.
    Press ctrl+alt+del to restart.

    I went back into GParted and tried to set the flag to "boot" not really knowing what that is supposed to do and it then gave me the error listed above (it was just sitting at a blank screen before that). I guess that copy process in GParted isnt actually creating an image then huh? No clue what to do now. I am just going to reinstall the OS if I can't get this to work but I would really like to know how to do this. Any ideas?
    I've got the same problem
    I think I tried all the tips I found... but allways the same result

    A disk read error occured.
    Press ctrl+alt+del to restart

    Any more ideas?

  9. #9
    Join Date
    Nov 2007
    Beans
    3

    Re: Virtualbox Gparted VDI Resize

    Same problem.


    1. Created new vdi disk (tried dynamic and fixed)
    2. Booted to GParted iso.
    3. Copy ntfs partition to new disk (aksed to create msdos partition table)
    4. Tried to leave the size as is, but gparted said that destination partition is smaller than source partition. So extended partition in the copy dialog.
    4. Set boot flag
    4. Reboot
    5. Unable to boot from new disk with the error:
    "A disk read error occured.
    Press ctrl+alt+del to restart."

    If I boot with both attached disks original and new one (as secondary) windows will run checkdisk and I think fix something.

    VB Version: 2.2.0-45846_Ubuntu_intrepid
    GParted: 0.4.3-2.iso

    Should I downgrade?

  10. #10
    Join Date
    Nov 2007
    Beans
    3

    Re: Virtualbox Gparted VDI Resize

    Found the solution in that post http://forums.virtualbox.org/viewtopic.php?t=1878:

    1. Install Boot Builder in your working virtual machine. http://www.majorgeeks.com/Roadkils_B...der_d4980.html
    2. Launch Boot Builder
    3. Read the boot sector from the new disk (Drive D: in my case)
    4. Change the heads setting to 255
    5. Write the modified boot sector back to the same disk (Drive D: again)

    Worked for me.
    Hope it'll help you.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •