Extended Virtual Machine hard drive-linux

Source: Internet
Author: User
Tags gparted
Extended Virtual Machine hard drive-linux environment: VMWareWorkstation80 and Linux system requirements: extended 20 GB size hard drive to 40 GB size 1, PowerOff virtual machine system and delete all Snapshot, (because the disk size can be expanded only after the unique node ). 2. extended virtual machine hard drive-linux environment: VMWare Workstation 8.0 and Linux system requirements: extended 20 GB hard drive to 40 GB size 1, Power Off virtual machine system and delete all Snapshot, (because the disk size can be expanded only after the unique node ). 2. Expand the Hard Disk size of the linux system under the virtual machine: choose VM> Settings> Hard Disk> Utilities> Expand... -> set Maxmum disk size to the size of the extended hard disk (for example, change the size of the original 20 GB to 40 GB ). 3. enable the virtual machine system and install the gparted tool (a hard disk management tool on a graphical interface): (1) install sudo apt-get install gparted directly (2) manually download the deb file and install: dpkg-I gparted_0.5.1-1ubuntu3_i386.deb, 4. start the gparted tool and create and format the new hard disk: format as ext4: (1) sudo gparted enter the tool (2) select the hard disk space that is not used in gray (that is, the row marked by Unallocated and the size is about 20) (3) Select Pattion-> new. in the pop-up window, select file system Select EXT4, and click Add to Add. (4) click the check mark on the gparted interface to perform all operations. a new hard disk (such as/dev/sda3) is added. 5. mount the new hard disk to the specified directory. (1) create a directory such as/Disk2: sudo mkdir/Disk2 (2) mount the newly created hard disk to this directory: sudo mount/dev/sda3/Disk2 now you can access this directory for operations, you can use fd-h to check whether the disk size and mounting are successful. 6. modify/etc/profile to mount the machine each time it is started: run gedit/etc/fstab to add the following command to the end of the file: # new disk was on/dev/sda3/dev/sda3/Disk2 ext4 defaults 0 0 restart the machine to check whether the hard disk is automatically mounted. Note: dpkg command details 1. "dpkg-I" <安装包名称> : Install a "Debian" software package, such as the file you manually download. 2. "dpkg-c" <安装包名称> : List <安装包名称> . 3. "dpkg-I" <安装包名称> : Slave <安装包名称> . 4. "dpkg-r" <安装包名称> : Remove an installed deb package. 5. "dpkg-P" <安装包名称> : Completely clear an installed package. Unlike "remove", "purge" also deletes all preparation files. 6. "dpkg-L" <安装包名称> : List <安装包名称> List of all installed files. Also, check "dpkg-c" to check the content of A. deb file.

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.