Pehea ki te whakawhānui i te arai pakiaka puku kōpae mārō Ubuntu Linux i VirtualBox?
Ki te rere koe i roto i te wāhi i roto i te Ubuntu Linux i VirtualBox ka koe e hiahia ki te whakapiki ake i te rahi kōpae mārō, me te ka anō-rahi te arai. The following will show you how to do this.
I ahau i te Ubuntu VM e he rahi kōpae mārō o 8GB. I want to increase the size to 16Gb.

- Āta whakakāhia koutou VM atu.
- Haere ki te wawe whakahau, me haere te whaiaronga te tāutanga VirtualBox. The default location usually is C:\Program Files\Oracle\VirtualBox
- I roto i te wawe whakahau tomo:
VBoxManage modifyhd "A:\VirtualBox VMs\Ubuntu 14.04.3\Ubuntu 14.04.3.vdi” --resize 16000 - Tirohia te rahi i roto i te gui VirtualBox. The size should have changed.

- Na e kua puta ke te arai i te kōpae mārō VirtualBox Me ki kia puta ke i roto i Ubuntu kia taea te whakamahi i te reira. In order to resize the partition use the gparted live CD which can be downloaded from konei
- Kia tīkina kōkuhu te kōnae GParted ISO ki te puku CD VM taua, me te tohua te pouakataki CD ora. Start the VM booting into the CD drive.
- Booted Kia kua GParted kia taea ki te kite i to koutou wawahitanga me te te arai-un tohaina koe.

- Matau pāwhiri te arai ratou ohanga e te i raro i te arai whānui ki te pv lvm2 pūnaha kōnae, me te wetehohe te arai.
- Tīpakohia te rarangi atu, ka pāwhiri i te re-rahi / tere. Drag the arrow right to the end.

- Select the partition that is nested under the extended partition with the file system lvm2 pv and click the re-size/move button. Drag the arrow right to the end.
- Pāwhiritia te pātene te tono ki te whakaora i te huringa.
- Shutdown the VM and remove the GParted CD
- Start the VM to boot up the Ubuntu install
- Whakahaere kōpae mā te whakamahi i te rapu Ubuntu

Ka taea e koe te kite e kua nui haere te rahi kōpae mārō engari e kore kei te whakamahia te wāhi i te pūnaha Ubuntu. The root partition is only using 6.1gb of space. E ti'a ia tatou ki te whakahaere i te whakahau ki te korero ki Ubuntu ki te whakamahi i tēnei wāhi. Hanga he tuhipoka o te rōrahi arorau mo te arai pakiaka. In this tutorial it is /dev/ubuntu-vg/root. - Ka pato i te whakahau e whai ake Open kāpeka whakakapi i te ingoa rōrahi arorau ki tou ake:
Ka whakamahi i runga i te te -L tawhā e parau Ubuntu te rahi o te arai arorau i roto i gigabytes. Change the size to your needs. The above command can be run as many times as you need so don’t worry about making a mistake.sudo lvextend -L13.385G / dev / Ubuntu-VG / pakiaka
- Na kua whakatakotoria e matou te rahi e ti'a ia tatou ki te korero ki Ubuntu ki te haere i mua, me te re-rahi te reira. Type the following to do this:
sudo resize2fs / dev / Ubuntu-VG / pakiaka
- Na tirohia te whaipainga kōpae. The size of the root logical volume should now have increased. Ubuntu is now using the extra disk space that we had increased in VirtualBox.

