Sida loo kordhiyo Ubuntu Linux disk drive adag xijaab xididka ee 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 sida loo do this.

Waxaan leeyahay Ubuntu VM ah taas oo uu leeyahay size adag disk ee 8Gb. I want to increase the size to 16Gb.

Sida loo kordhiyo Ubuntu Linux disk drive adag xidid Risaalo

  1. Hubi in VM damiso.
  2. Tag degdeg ah amarka iyo tag tusaha rakibo VirtualBox ah. The default location usually is C:\Program Files\Oracle\VirtualBox
  3. In si degdeg ah amarka galaan:
    VBoxManage modifyhd "Iyo:\VirtualBox VMs\Ubuntu 14.04.3\Ubuntu 14.04.3.vdi” --resize 16000
  4. Hubi size ee gui VirtualBox ah. The size should have changed.
    Sida loo kordhiyo Ubuntu Linux disk drive adag xidid Risaalo 2
  5. Hadda oo ay VirtualBox disk adag ayaa bedelay Risaalo u baahan yahay inuu ku Ubuntu la beddelo si loo isticmaali karaa. In order to resize the partition use the gparted live CD which can be downloaded from halkan
  6. Marka bixi galinta file GParted ISO galay isla VM CD drive iyo sax CD ah checkbox live. Start the VM booting into the CD drive.
  7. Marka GParted ayaa booted waa in aad awoodid in sida wanaagsan wax u arko qoruhu sida xijaab un-qoondeeyey noqon.
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
  8. Midig u guji Risaalo la nested hoos Risaalo ka dheereeyey la PV nidaamka file lvm2 iyo barkinta Risaalo.
  9. Dooro safka kordhiyay oo guji dib-u-size / dhaqaaqo. 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. Riix badhamada codsan karaan inuu ku badbaadiyo isbedelada.
  12. Shutdown the VM and remove the GParted CD
  13. Start the VM to boot up the Ubuntu install
  14. Saxannada Orod oo isticmaalaya raadinta Ubuntu ah
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
    Waxaad arki kartaa in baaxadda disk adag ayaa kor u kacay, laakiin meel bannaan oo aan la isticmaalayn by filesystem Ubuntu ah. The root partition is only using 6.1gb of space. Waxaan u baahanahay in uu ordo amarka ah in aad u sheegto Ubuntu si ay u isticmaalaan meel this. Qor mugga macquul ah xijaab xididka. In this tutorial it is /dev/ubuntu-vg/root.
  15. Terminal Open oo ku qor amarka ka dib markii uu bedelay magaca mugga macquul ah oo aad u gaar ah:
    sudo lvextend -L13.385G / Dev / ubuntu-VG / xididkii
    Kor ku xusan wuxuu isticmaalaa -L dhimaya oo sheegayaa Ubuntu size ee Risaalo macquul ah in gigabytes ah. 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. Laakiin innagu ma aynu dhigay tirada aan u baahanahay in la sheego Ubuntu in ka hor tago oo aan dib-u-size. Type the following to do this:
    sudo resize2fs / Dev / ubuntu-VG / xididkii
  17. Hadda hubi korontada cajaladaha. 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