Conas a leathnú an Ubuntu Linux tiomáint dhiosca crua dheighilt fréimhe i VirtualBox?
Má tá tú ag rith amach as an spás i Ubuntu Linux in VirtualBox ansin, beidh ort a mhéadú an méid dhiosca crua agus ansin ath-mhéid an laindéal. The following will show you how to do this.
Tá mé VM Ubuntu a bhfuil méid dhiosca crua de 8GB. I want to increase the size to 16Gb.

- Déan cinnte go bhfuil do VM atá casta as.
- Téigh go dtí an ordú go pras agus dul ar an eolaire suiteáil VirtualBox. The default location usually is C:\Program Files\Oracle\VirtualBox
- Sa ordú go pras isteach:
VBoxManage modifyhd "Agus:\VirtualBox VMs\Ubuntu 14.04.3\Ubuntu 14.04.3.vdi” --resize 16000 - Seiceáil an méid sa GUI VirtualBox. The size should have changed.

- Anois go bhfuil an diosca crua VirtualBox athraigh an laindéal gá a athrú i Ubuntu ionas gur féidir é a úsáid. In order to resize the partition use the gparted live CD which can be downloaded from anseo
- Nuair a íoslódáil isteach an comhad GParted ISO isteach sa tiomáint CD VM céanna agus cuir tic sa ticbhosca CD beo. Start the VM booting into the CD drive.
- Chomh luath GParted booted ba chóir duit a bheith in ann a fheiceáil do Deighiltí chomh maith leis an un-leithdháileadh críochdheighilte.

- An ceart cliceáil ar an laindéal atá neadaithe faoin laindéal leathnaithe leis an PV córas comhaid lvm2 agus dhíghníomhachtú an laindéal.
- Roghnaigh an tsraith nua síneadh agus cliceáil ar an ath-size / bogadh. 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.
- Cliceáil ar na cnaipí iarratas a dhéanamh chun shábháil ar na hathruithe.
- Shutdown the VM and remove the GParted CD
- Start the VM to boot up the Ubuntu install
- Dioscaí Rith ag baint úsáide as an cuardach Ubuntu

Is féidir leat a fheiceáil go bhfuil méadú tagtha ar an méid diosca crua ach nach bhfuil an spás in úsáid ag an córas comhad Ubuntu. The root partition is only using 6.1gb of space. Ní mór dúinn a reáchtáil a dtoil a insint Ubuntu a bhaint as an spás seo. Déan nóta de thoirt loighciúil don laindéal fhréamh. In this tutorial it is /dev/ubuntu-vg/root. - Críochfort oscailte agus cineál an ordú seo a leanas in ionad an t-ainm toirt loighciúil le do chuid féin:
An Úsáideann os cionn an -L paraiméadar a insíonn Ubuntu an méid de na críochdheighilte loighciúil i ghigibheart. 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-AM / fréimhe
- Anois, tá muid a leagtar ar an méid is gá dúinn a insint Ubuntu chun dul ar aghaidh agus ath-mhéid é. Type the following to do this:
sudo resize2fs / dev / ubuntu-AM / fréimhe
- Anois seiceáil an fóntais dioscaí. 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.

