lubuntu14.04 under virtual machine disk expansion

Reference: https: //blog.csdn.net/think_nothing/article/details/53788524

1, the virtual machine expansion

D:\VirtualBox VMs>VBoxManage list hdds
UUID: f69aee89-bdb3-4337-9ec3-6231b97e981e
Parent UUID: base
State: created
Type: normal (base)
Location: D:\VirtualBox VMs\ESP8266_lubuntu\ESP8266_lubuntu-disk1.vdi
Storage format: vdi
Capacity: 8192 MBytes
Encryption: disabled

UUID: 1ce8cdcb-22d2-42a4-90c5-1cd6214f34bb
Parent UUID: base
State: created
Type: normal (base)
Location: D:\VirtualBox VMs\lubuntu\lubuntu1804.4-disk001.vdi
Storage format: vdi
Capacity: 61440 MBytes
Encryption: disabled


D: \ Lizenzvertrag VMS \ ESP8266_lubuntu> VBoxManage modifyhd ESP8266_lubuntu-disk1.vdi --resize 16384
0% ... 10% ... 20% ... 30% ... 40% ... 50% ... 60 % ... 70% ... 80% ... 90% ... 100%


2, the partition sudo fdisk / dev / sda partition according to step
3, the mkfs -t ext4 formatting the sudo / dev / sda4
. 4, mounted to create the directory / home / esp8266 / sda4

sudo mkdir sda4

The partition / dev / sda4 mounted to / home / esp8266 / sda4

sudo mount /dev/sda4 /home/esp8266/sda4

5,
boot automatically mount, then modify / etc / fstab file, add a line in this file inside:
Use vim command to edit / etc / fstab file

sudo vim /etc/fstab

Add the following line of code

/dev/sda4 /home/esp8266/sda4/ ext4 defaults 0 1

 

 

Guess you like

Origin www.cnblogs.com/CodeWorkerLiMing/p/12537444.html