当前位置:网站首页>Ubantu disk expansion (VMware)

Ubantu disk expansion (VMware)

2022-07-05 02:56:00 Like a feather

Premise : When using virtual machines , We sometimes take snapshots , But there are snapshots , Unable to expand disk , If snapshots are important , Just clone the virtual machine , Expand the disk capacity on the new virtual machine , conversely , Capacity expansion after deleting snapshots .
1. Expand to the memory size you want .
 Insert picture description here
2. Enter virtual machine , Open the terminal .
(1) Input :sudo apt-get install gparted download gparted.
(2) Input after downloading :sudo gparted Start the program .
 Insert picture description here
3. After entering the program , Delete all partitions between keys and unassigned , Only as shown in the figure :
 Insert picture description here
4. Right click the partition with key , Click resize / Move (R), Then Ann looks for the picture content and fills in the numbers ( After that, the available space is modified to 1024 reserve 1G Space is used to create extended partitions and logical partitions ):
 Insert picture description here
5. Check unassigned , Then click New , Analogy to 6 Operation of pictures in , Change the creation to extended partition , File system after selecting extended partition , Will automatically modify , There is no need to modify .
6. Check unassigned , Then click New , Modify according to the content of the picture ( The file system needs to be selected by itself ).
 Insert picture description here 7. After the above operations are completed , Follow the figure below :
 Insert picture description here
8. Then you will enter such a page .
 Insert picture description here
9. to update UUID value ( Follow the picture to do this ):
 Insert picture description here
 Insert picture description here
Console input :sudo gedit /etc/fstab Put inside UUID Change to the one above UUID.
 Insert picture description here
10. Exit after saving , Input at the console df -h , You can check whether the expansion is successful .
 Insert picture description here

原网站

版权声明
本文为[Like a feather]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140837234314.html