Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have my first attempt to install an OS using virtual box and for that I made a 25 gb partition to my hard disk and now I want to increase its size. Is that valid, and if yes, how can i do it?enter image description here

enter image description here

This is the current status of my virtual machine. I have another question regarding 3d settings for Windows 7 which is installed in virtual box. can virtual box support 3d games enter image description here

enter image description here this is shown when i type the given commands in terminal

share|improve this question

1 Answer 1

up vote 5 down vote accepted

For example in order to increase the virtual disk size to 60GB you need to run the following command:

VBoxManage modifyhd "/home/agha/VirtualBox VMs/agha rehan abbas/agha rehan abbas.vdi" -–resize 60000 (size is in MB)

Then you need to start you Windows machine and go to Control Panel -> Administrative Tools -> Computer Management -> Disk management right click the disk and select Extend volume to add the unallocated space to the current volume.

share|improve this answer
    
will this be completely safe –  agha rehan abbas May 15 at 13:35
    
i mean is there any chance of losing memory and data of hard drive –  agha rehan abbas May 15 at 13:35
1  
the is a 's' at the end of the agha name. Please remove that s. Sorry once again for mistyping the path. it should be VBoxManage modifyhd "/home/agha/VirtualBox VMs/agha rehan abbas/agha rehan abbas.vdi" -–resize 60000 –  cioby23 May 15 at 14:01
2  
As said, it should be safe. But every time you play with disks and partitions, in whichever operating system, have a backup ready. Always. –  Rmano May 15 at 14:11
1  
its done buddy thank you very much –  agha rehan abbas May 15 at 14:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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