Ինչպես երկարացնել Ubuntu Linux կոշտ սկավառակատար արմատային բաժանման VirtualBox?

Եթե ​​դուք են վազում դուրս տարածության մեջ Ubuntu Linux - ի VirtualBox, ապա դուք պետք է բարձրացնել կոշտ սկավառակի չափը, եւ ապա կրկին չափ միջնորմ. The following will show you how to do this.

Ես ունեմ մի Ubuntu VM, որն ունի կոշտ սկավառակի չափը 8GB. I want to increase the size to 16Gb.

Ինչպես երկարացնել Ubuntu Linux կոշտ սկավառակատար արմատային կտորը

  1. Համոզվեք, որ Ձեր VM անջատված է.
  2. Գնալ դեպի հրամանատարության արագ եւ գնալ այն VirtualBox տեղադրման տեղեկատու. The default location usually is C:\Program Files\Oracle\VirtualBox
  3. Ի հրամանը արագ մուտք գործել:
    VBoxManage modifyhd «Եվ:\VirtualBox VMs\Ubuntu 14.04.3\Ubuntu 14.04.3.vdi” --resize 16000
  4. Ստուգեք չափը VirtualBox GUI. The size should have changed.
    Ինչպես երկարացնել Ubuntu Linux կոշտ սկավառակատար արմատային կտորը 2
  5. Հիմա, որ այդ VirtualBox կոշտ սկավառակի փոխվել կտորը պետք է փոխել Ubuntu, այնպես, որ այն կարող է օգտագործվել. In order to resize the partition use the gparted live CD which can be downloaded from այստեղ
  6. Երբ բեռնել տեղադրեք GParted ISO ֆայլի մեջ: Նույն VM CD drive եւ տիզ ուղիղ CD վանդակը. Start the VM booting into the CD drive.
  7. Մի անգամ GParted ն booted դուք պետք է կարողանա տեսնել ձեր partitions, ինչպես նաեւ ՄԱԿ-ի հատկացրել բաժանման.
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
  8. Աջ սեղմեք բաժանման, որ nested տակ ընդլայնված բաժանման հետ ֆայլի համակարգի lvm2 pv եւ ապաակտիվացնել կտորը.
  9. Ընտրել երկարաձգվում շարքը եւ սեղմեք վերակազմակերպման չափը / քայլ. 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. Սեղմեք Դիմել կոճակները փրկել փոփոխությունները.
  12. Shutdown the VM and remove the GParted CD
  13. Start the VM to boot up the Ubuntu install
  14. Run սկավառակներ օգտագործելով Ubuntu որոնումը
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
    Դուք կարող եք տեսնել, որ կոշտ սկավառակի չափը աճել է, բայց տարածությունը չի օգտագործվում է Ubuntu filesystem. The root partition is only using 6.1gb of space. Մենք պետք է վազել մի հրաման է ասել Ubuntu է օգտագործել այս տարածք. Կատարել նոտա է տրամաբանական ծավալը արմատի բաժանման. In this tutorial it is /dev/ubuntu-vg/root.
  15. Բաց տերմինալ մուտքագրել հետեւյալ հրամանը փոխարինելու տրամաբանական ծավալը անունը ձեր սեփական:
    sudo lvextend -L13.385G / dev / Ubuntu-VG / արմատ
    Վերը նշված օգտագործում է պարամետր -L որը պատմում է Ubuntu չափը տրամաբանական բաժանման մեջ գիգաբայթ. 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. Այժմ մենք սահմանել չափը, որ մենք պետք է ասել, Ubuntu գնալ առաջ եւ կրկին չափ այն. Type the following to do this:
    sudo resize2fs / dev / Ubuntu-VG / արմատ
  17. Այժմ ստուգեք սկավառակների կոմունալ. 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