ubuntu vmware disk expansion, no interface version, swap area modification

First, follow the documentation to install gparted, refer to the big brother address, https://www.jianshu.com/p/c228dc429781

Since there is no interface,

Then use the command,

1. mkswap / dev / sda2 Create a swap area. After the execution is completed, the uuid will be displayed. Replace the uuid with the following steps

2. Edit the / et / fstab partition to load the configuration file.
Use the file encoder to open the / etc / fstab file, change the original UUID of the swap partition to the current UUID, and save it.

3 、 swapon -a / dev / sda2

4. Restart the computer

5. At this time, df -h still displays the original size, you need to execute the command, resize2fs / dev / sda1

6, df -h shows the disk size after becoming larger

ps If the download also prompts that there is not enough space, restart again, you may have to restart after resize2fs

 

Refer to the document address,

https://blog.51cto.com/12893781/2380439

Guess you like

Origin www.cnblogs.com/xiongjinpeng/p/12740932.html
Recommended