How to resize VirtualBox .vdi Hard Drive File

Поделиться
HTML-код
  • Опубликовано: 17 фев 2015
  • Here we are resizing the .vdi Virtual Hard Drive file we created in the last video using VirtualBox for Ubuntu. You cannot just change the file size, you have to reorder the drive partitions, which I will show in this video.
    The commands used are as follows:
    vboxmanage modifyhd [AbsoluteFilePath] --resize [SizeInMb]
    sudo apt-get install gparted
    df -h

Комментарии • 24

  • @Caffeinegoesinface
    @Caffeinegoesinface 6 лет назад

    This is awesome!! So clear and step by step explained really well. Thank you!!!

  • @jameslee9289
    @jameslee9289 8 лет назад +1

    Great work!!! I spent hours using everyone else's messed up path structure, you got it right the first time! It was the backslashes I needed for the spaces in the file path that I was getting wrong. Frustrating!

  • @streetjnoun
    @streetjnoun 8 лет назад

    It works fine! Thank you very much :)

  • @FariPayandeh
    @FariPayandeh 7 лет назад

    Excellent!

  • @ishanchoudhary8428
    @ishanchoudhary8428 6 лет назад

    Thanks buddy!!

  • @almeezan9150
    @almeezan9150 8 лет назад

    wonderful thanx u saved me

  • @denzelsoe
    @denzelsoe 8 лет назад

    Thanks!

  • @ambibioleg
    @ambibioleg 8 лет назад

    Thank you very much for this straightforward video and explanation. Just a question, resizing .vdi virtual hard drive means formatting and so erasing this hard drive? Thanks again!

  • @zanekarl8391
    @zanekarl8391 5 лет назад

    Hey @Partatoes great video, just a quick question. Is there any reason you left the amount of space in the sda2 and sda5 (i.e the other partitions) that you did? I think you left 2 gigabytes, and should this scale with the size of your VM?

  • @MrYuyu1017
    @MrYuyu1017 6 лет назад

    Thank you

  • @saeddaoud241
    @saeddaoud241 7 лет назад +1

    Thanks

  • @SmoothChino
    @SmoothChino 7 лет назад

    thanks

  • @CastleFsUczN5nnK
    @CastleFsUczN5nnK 9 лет назад +1

    But what happens if I'm on a mac, and I have Win7 on my virtual machine, do I just do the first part and reset virtualbox? Or do I have to do some extra stuff on win7?

    • @Partatoes
      @Partatoes  8 лет назад

      +Castlemaster712 What you have to do is download a tool for resizing partitions. A quick google search could probably find you plenty of programs for it. The actual resizing steps will be different from the video, but the concept should be the same.

  • @AsifKhan-gb2qu
    @AsifKhan-gb2qu 5 лет назад

    Hi Partatoes, I just installed windows 10 on the virtual box on my macbook pro yesterday. And today the disk on the virtual windows machine show the disk as full. It was set to about 20 GB. What's the issue? Will I be able to install any program or will I have to keep increasing the size. I don't get this? How did my disk space get full in just over a day.

  • @SammyAndTina
    @SammyAndTina 7 лет назад

    Terminal says:
    VBoxManage: error: Error: Attempt to resize the medium from 0.0 MB to 150000.0 MB. Use --resizebyte if this is intended!
    If I try this it says some error in line 360-something and some other errors. Any suggestions @Partatoes ?

    • @gdchronium4265
      @gdchronium4265 7 лет назад

      It might be the limited space in your computer.
      Try setting it to a lower value.

  • @0074908
    @0074908 8 лет назад

    hello, I am running OS El Capitan and I tried to resize the hard drive in windows Xp. But I typed the commands and terminal showed me a lot of information with a legend in the bottom that says Syntax error: Invalid command 'modifyhd/Users/Vichito-007/VirtualBox VMs/XP/XP.vdi' and the new size, I want 20GB. Please HELP

  • @tonellocnpi
    @tonellocnpi 8 лет назад

    And what about if my virtual machine is .vmdk?? What can I do my friend?

  • @danfrye6673
    @danfrye6673 7 лет назад

    I keep getting this... Syntax error: Invalid parameter '--resize'

    • @danfrye6673
      @danfrye6673 7 лет назад

      okay never mind... It did not like that I copied and pasted the command. It messed the with -- part of it. Cheers!

  • @JB_Photog
    @JB_Photog 9 лет назад

    I am trying this on my Mac in the terminal and entering this->
    Javids-MacBook-Pro:~ javidbeykzadeh$ vboxmanage modifyhd /Users/javidbeykzadeh/VirtualBox\ VMs/Win10\ Win10.vdi --resize 50000
    and I get this error->Syntax error: Invalid parameter '--resize'
    Doesn't my syntax seem to be correct?

    • @bobomonkey702
      @bobomonkey702 9 лет назад

      Javid Beykzadeh
      here just copy and paste this. i retype it for you. let me know if this helped you out. it should work fine now.
      /Users/javidbeykzadeh/VirtualBox\ VMs/Win10\ Win10.vdi --resize 50000