कैसे VirtualBox में लिनक्स हार्ड डिस्क ड्राइव रूट विभाजन का विस्तार करने के लिए?

आप VirtualBox में लिनक्स में अंतरिक्ष से बाहर चल रहे हैं तो आप विभाजन को फिर से आकार तो हार्ड डिस्क आकार बढ़ाने के लिए और करने की आवश्यकता होगी. The following will show you how to do this.

मैं 8GB की एक हार्ड डिस्क के आकार की है, जो एक उबंटू वीएम है. I want to increase the size to 16Gb.

कैसे लिनक्स हार्ड डिस्क ड्राइव रूट विभाजन का विस्तार करने के लिए

  1. अपने वीएम बंद है सुनिश्चित करें.
  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 के जीयूआई में आकार की जाँच करें. The size should have changed.
    कैसे लिनक्स हार्ड डिस्क ड्राइव रूट विभाजन का विस्तार करने के लिए 2
  5. अब VirtualBox के हार्ड डिस्क विभाजन बदल गया है कि इसे इस्तेमाल किया जा सकता है, ताकि उबंटू में बदलने की जरूरत है. In order to resize the partition use the gparted live CD which can be downloaded from यहां
  6. डाउनलोड होने के बाद ही वीएम सीडी ड्राइव में GParted आईएसओ फाइल डालने और लाइव सीडी चेकबॉक्स टिक. Start the VM booting into the CD drive.
  7. GParted हटा दिया गया है एक बार जब आप संयुक्त राष्ट्र आवंटित विभाजन के रूप में के रूप में अच्छी तरह से अपने विभाजन देखने के लिए सक्षम होना चाहिए.
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
  8. सही फाइल सिस्टम lvm2 पीवी के साथ विस्तारित विभाजन के तहत नेस्ट है कि विभाजन के लिए क्लिक करें और विभाजन को निष्क्रिय.
  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. उबंटू खोज का उपयोग करके चलाने के लिए डिस्क
    Resize Hard Disk Drive partition of Ubuntu Linux in VirtualBox using GParted
    आप देख सकते हैं हार्ड डिस्क के आकार में वृद्धि हुई है, लेकिन अंतरिक्ष उबंटू फाइल सिस्टम के द्वारा प्रयोग किया जा रहा है कि. 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 / देव / 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 / देव / Ubuntu-वी.जी. / जड़
  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