Fix: Boot Camp Assistant stuck on Partitioning

Yesterday, when I was removing Windows partition through Boot Camp Assistant, it got stuck on partitioning:

Status: Partitioning Disk

I’m lucky to fix it manually. There are my steps:

1 Command+Q to quit the Boot Camp Assistant.

2 Open Disk Utility, select the harddisk, go to tab Partition.

3 I see there is some free space after my osx partition. Simply, I extend my osx partition and click Apply.

4 An error message is given to me. Due to some error within my osx partition, this operation cannot be done.

5 Reboot computer with Option key down, and select Recovery.

6 Use Disk Utility to repair the osx partition.

7 Do not try to extend partition here. You cannot make it successfully.

8 Reboot to osx normally.

9 Open Disk Utility again to extend osx partition. It can be done now.

10 Start Boot Camp Assistant if you need to re-install another Windows instance.

 

That’s my story.

Environment:

OSX 10.8

Windows to remove: Win7 with single partition, created by Boot Camp Assistant of OSX 10.8.

 

PS, Windows 8 works great. Except there is a bug on current version of Boot Camp. You can only back to OSX by holding Option button down while powering up, not able to do that with the menu command within Boot Camp.

OSX: Disable automount on specific partitions (disks)

We know that when a new hard drive inserted to a mac, OSX will mount all partitions in it. In some situation, we may not want to mount some partitions. In that case, we need to adjust fstab manually.

Skills need:
1 OSX simply operations, and
2 vi operations.

Step:
1 mount the partitions / disks in question. If you want to adjust more than one, do them all at the same time or make them into several batches as you wish.
2 Remember the names or Universal Unique Identifiers of partitions. You can see the names as the text of the specific tree nodes within the left panel of Disk Utility. Universal Unique Identifiers can be found in the pop-up window shown after click the Info button. You can choose to remember names or Universal Unique Identifiers. If you choose to use name, all partitions with the same name will be affected in the same way.
3 Unmount the partitions / disks.
4 Open Terminal.
5 sudo -s
6 vi /etc/fstab
add lines one by one like this (choose one format below):

LABEL=name none ntfs ro,noauto 0 0
UUID=51C9C66D-B850-3285-884E-D48B9F616809 none msdos ro,noauto 0 0

You can check http://en.wikipedia.org/wiki/Fstab for more detailed information.
Save that file.

Now these partitions will not be mounted unless you do it manually.