Yadda za a mika Ubuntu Linux wuya faifai drive tushen bangare a VirtualBox?

If you are running out of space in Ubuntu Linux in VirtualBox then you will need to increase the hard disk size and then re-size the partition. The following will show you how to do this.

Ina da Ubuntu VM wanda yana da wuya faifai girman 8GB. I want to increase the size to 16Gb.

Yadda za a mika Ubuntu Linux wuya faifai drive tushen bangare

  1. Tabbatar da VM ke a kashe.
  2. Ka je wa umurnin m kuma tafi da da VirtualBox shigarwa shugabanci. The default location usually is C:\Program Files\Oracle\VirtualBox
  3. A cikin umurnin m shiga:
    VBoxManage modifyhd "Kuma:\VirtualBox VMs\Ubuntu 14.04.3\Ubuntu 14.04.3.vdi” --resize 16000
  4. Duba da girman a cikin VirtualBox Gui. The size should have changed.
    Yadda za a mika Ubuntu Linux wuya faifai drive tushen bangare 2
  5. Yanzu da VirtualBox wuya faifai ya canza bangare bukatar a canja a Ubuntu saboda haka za a iya amfani. In order to resize the partition use the gparted live CD which can be downloaded from a nan
  6. Da zarar sauke saka GParted ISO fayil a cikin wannan VM CD drive da Tick da live CD akwati. Start the VM booting into the CD drive.
  7. Da zarar GParted ya booted kun kasance iya ganin ka partitions kazalika da un-kasaftawa bangare.
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
  8. Dama danna bangare da aka nested karkashin Extended bangare tare da fayil tsarin lvm2 PV da kashe bangare.
  9. Zaži mika jere da kuma danna sake girman / tafi. 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. Danna amfani Buttons domin ya ceci canje-canje.
  12. Shutdown the VM and remove the GParted CD
  13. Start the VM to boot up the Ubuntu install
  14. Gudu DISKs ta amfani da Ubuntu search
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
    Za ka ga cewa da wuya faifai size ya kara amma sarari ba da ake amfani da Ubuntu filesystem. The root partition is only using 6.1gb of space. Muna bukatar mu gudu wani umurni in gaya Ubuntu a yi amfani da wannan sararin samaniya. Yi bayanin kula daga cikin ma'ana girma ga tushen bangare. In this tutorial it is /dev/ubuntu-vg/root.
  15. Open m da kuma rubuta da wadannan umurnin maye gurbin ma'ana girma sunan da ka:
    sudo lvextend -L13.385G / Aman / Ubuntu-VG / tushe
    A bisa amfani da siga -L abin da ya gaya Ubuntu girman da ma'ana bangare a 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. Yanzu mun saita girman muna bukatar mu gaya Ubuntu don zuwa gaba da kuma sake girman shi. Type the following to do this:
    sudo resize2fs / Aman / Ubuntu-VG / tushe
  17. Yanzu duba DISKs mai amfani. 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

Leave a Reply