Using Ubuntu too card, how to extend storage to Ubuntu?
Principle: You need to format the storage into some kind of file system and mount it in a directory before it takes effect.
Step: Format (file system), Mount (directory)
1. Turn Ubuntu off, on the Vmvare home page, click Extensions, manually expand to the storage size that you think of, I set the 100G
2. Click Virtual Machine > Snapshot > Take Snapshot (when Ubuntu is damaged or you want to revert to the previous state, you can choose to restore the snapshot, when you can save the snapshot, the lower right corner has a Save progress bar)
3. Login user, switch to root user
4. Format the storage
Mkfs-t Ext4/dev/sda3
Input m F N Enter start number end number other follow the default prompts, last input W save input Shutdown-r now restart your computer
5. Mount Storage
Create new folder in/below to save all files under/home
Mkdir/new Creating a new Folder
Mount/dev/sda3/new Mounting the new folder
Cp-a/home/*/new Copy all the files under the home to the new file (-a keeps the file's original properties. )
rm-rf/home/* Remove all files under the home folder
Mount/dev/sda3/home Mount Home File
Umount/new removing the new partition
Rm-rf/new deleted the new folder and all the files below.
Df-m See if the storage belongs to the filesystem is/dev/sda3 and mount point under/home
Gedit/etc/fstab Edit Configuration
Then will/dev/sda3/home ext4 defaults 0 0
Paste in the last line, save, restart the computer can
6. After the end, you can expand the memory on the VMware homepage, the number of processors, so that Ubuntu becomes faster.
How to expand storage for Ubuntu?