How to expand storage for Ubuntu?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.