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.

Pehea ki te whakawhānui i te arai pakiaka puku kōpae mārō Ubuntu Linux

  1. Āta whakakāhia koutou VM atu.
  2. Haere ki te wawe whakahau, me haere te whaiaronga te tāutanga VirtualBox. The default location usually is C:\Program Files\Oracle\VirtualBox
  3. I roto i te wawe whakahau tomo:
    VBoxManage modifyhd "A:\VirtualBox VMs\Ubuntu 14.04.3\Ubuntu 14.04.3.vdi” --resize 16000
  4. Tirohia te rahi i roto i te gui VirtualBox. The size should have changed.
    Pehea ki te whakawhānui i te arai pakiaka puku kōpae mārō Ubuntu Linux 2
  5. 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
  6. 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.
  7. Booted Kia kua GParted kia taea ki te kite i to koutou wawahitanga me te te arai-un tohaina koe.
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
  8. 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.
  9. Tīpakohia te rarangi atu, ka pāwhiri i te re-rahi / tere. Drag the arrow right to the end.
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted-2
  10. 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.
  11. Pāwhiritia te pātene te tono ki te whakaora i te huringa.
  12. Shutdown the VM and remove the GParted CD
  13. Start the VM to boot up the Ubuntu install
  14. Whakahaere kōpae mā te whakamahi i te rapu Ubuntu
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
    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.
  15. Ka pato i te whakahau e whai ake Open kāpeka whakakapi i te ingoa rōrahi arorau ki tou ake:
    sudo lvextend -L13.385G / dev / Ubuntu-VG / pakiaka
    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.
  16. 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
  17. 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.
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted