VMware Virtual Machine mac OS X cannot resize the extended hard disk, and there is not enough disk space to update Xcode

Source: Internet
Author: User

With MacOSX built with VMware virtual machines, there was an insufficient disk space error installing Xcode.

Because many friends in the initial installation of MACOSX, the default choice of 40G disk size, the results in two days after the discovery of the disk is not enough.

At this time, Baidu you will find a lot of related articles, is generally correct, but for the version above OS10.10 may appear the PCI external disk size through the disk tool can not be extended problems.

The result is that the disk tool can see that the corresponding disk has been extended to the target size, but cannot be partitioned, where the only MACOSX partition can not be erased and extended operation, because it is very simple, this is the MACOSX system disk, so you can not operate when the system is running. and VMware can't get into MacOSX's recovery partition, so you can only despair.

Toss n long after, accidentally found MacOSX have a diskutil command (inside the terminal used). And Diskutil has a resizevolume command. Well, you already guessed how I did it.

If you see this text, you are using RSS to read or turn to "a Tree-blog park," The original address: http://www.cnblogs.com/atree/p/MacOSX_diskutil_xcode.html

In fact, it is very simple, the solution:

1. Open terminal, enter Diskutil list;

2. Find the partition you need to expand from the list shown (the partition is not a disk, the ID of the partition is generally DISKXSX);

3. Then enter Diskutil resizevolume disk0s1 100GB, where DISK0S2 is the target size for the ID,100GB of the corresponding partition (the target size cannot exceed the total of this disk);

4. Enter, wait for the completion!

It's that simple.

VMware Virtual Machine mac OS X cannot resize the extended hard disk, and there is not enough disk space to update Xcode

Related Article

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.