Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: How to resize Hard drive in Virtualbox

  1. #11
    Join Date
    Aug 2010
    Location
    USA
    Beans
    13
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Smile Re: How to resize Hard drive in Virtualbox

    Quote Originally Posted by jacksonam View Post
    the steps:
    1. start Virtual Box and log on windows.
    2. download free partition utility at: http://download.cnet.com/Partition-A...-75118871.html
    3. use partition tool to extend your partition.
    if you need to create, delete or format, read how to partition a hard drive.
    It worked for me, thank you.

  2. #12
    Join Date
    Nov 2010
    Location
    Thailand
    Beans
    236
    Distro
    Ubuntu

    Re: How to resize Hard drive in Virtualbox

    Quote Originally Posted by jacksonam View Post
    the steps:
    1. start Virtual Box and log on windows.
    2. download free partition utility at: http://download.cnet.com/Partition-A...-75118871.html
    3. use partition tool to extend your partition.
    if you need to create, delete or format, read how to partition a hard drive.
    This doesn't make sense. If you download and install Partition Assistant within the Windows environment, then how does windows see anything outside of the virtual hard disk it was installed on?

    If this works for other people then perhaps you could explain to the rest of us how this is possible. Are you saying this is installed on Ubuntu? If so then these instructions are a little unclear.
    **** www.followtheboat.com ****
    Tales (not just) from the high seas

  3. #13
    Join Date
    Dec 2008
    Location
    Calgary, Canada
    Beans
    199
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to resize Hard drive in Virtualbox

    Hi,

    I was trying to expand my virtual harddrive and nearly went crazy with the complexity. Then I stumbled on this, it worked with a bit of syntax change. Use it at your own risk, but it makes the entire process much simpler.

    http://www.eggheadcafe.com/sample-co...hard-disk.aspx

    By using the VBoxManage terminal command, it is simple.

    VBoxManage clonehd --existing /home/goat/.VirtualBox/HardDisks/goatXP.vdi /home/goat/.VirtualBox/HardDisks/goatXP_20GB.vdi

    Happy expanding.

  4. #14
    Join Date
    Nov 2009
    Location
    Nutley, NJ
    Beans
    665
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: How to resize Hard drive in Virtualbox

    I just wanted to add to Fisheater's post by writing that I had to create a new fixed capacity virtual disk within Sun/Oracle Virtualbox beforehand to running the VBoxManage clonehd --existing command. Otherwise, VBoxManage complains that there is no target virtual disk to do the disk clone. Later on, I followed the directions for expanding the size of the hard drive by booting off of the new and larger capacity virtual disk, running the Disk Management snap-in tool, and extending the partition to the maximum capacity. It worked.

  5. #15
    Join Date
    Jul 2010
    Beans
    2

    Re: How to resize Hard drive in Virtualbox

    You must go to folder where is OldDisk.vdi .
    30000 = 30GB
    Code:
    VBoxManage modifyhd OldDisk.vdi –-resize 30000
    And it's done .

  6. #16
    Join Date
    Jul 2006
    Beans
    15

    Re: How to resize Hard drive in Virtualbox

    jacksonam - great tip, worked a treat.

    the trick is that i needed to copy the vdi to a new virtual hard-disk with the expanded size - then i used Partition Assistant Home Edition to resize the partition to take up the extra space in the new virtual hard-drive.

  7. #17
    Join Date
    Jul 2010
    Beans
    2

    Re: How to resize Hard drive in Virtualbox

    Quote Originally Posted by Bungtung View Post
    jacksonam - great tip, worked a treat.

    the trick is that i needed to copy the vdi to a new virtual hard-disk with the expanded size - then i used Partition Assistant Home Edition to resize the partition to take up the extra space in the new virtual hard-drive.
    Code:
    VBoxManage clonehd "DiskToClone.vdi" "ClonedDisk.vdi"

  8. #18
    Join Date
    Jul 2008
    Beans
    18

    Re: How to resize Hard drive in Virtualbox

    Quote Originally Posted by andig View Post
    You must go to folder where is OldDisk.vdi .
    30000 = 30GB
    Code:
    VBoxManage modifyhd OldDisk.vdi –-resize 30000
    And it's done .
    This worked for me, then in my Windows guest OS, I went to Disk Management and expanded the existing volume.

    Thanks andig!

  9. #19
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,792

    Re: How to resize Hard drive in Virtualbox

    Hmmm, maybe stop and think why you need a bigger disk. If it is only for data, then enable a shared folder on the host and put your data there.

    I prefer keeping my VMs small and keep all the data outside the VM. It is more storage efficient that way.

  10. #20
    Join Date
    May 2009
    Beans
    12

    Re: How to resize Hard drive in Virtualbox

    Quote Originally Posted by andig View Post
    You must go to folder where is OldDisk.vdi .
    30000 = 30GB
    Code:
    VBoxManage modifyhd OldDisk.vdi –-resize 30000
    And it's done .
    Worked like a charm in VirtualBox 4.1.6 r74713. Thx andig!

    in terminal:
    Code:
    VBoxManage modifyhd "/home/user/VirtualBox VMs/YourVBoxGuestHDD.vdi" --resize 30000
    Afterwards simply boot your VBox-guest from a Ubuntu Live CD and start gparted in order to add the new free space to the existing Windows partition.

Page 2 of 3 FirstFirst 123 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
  •