Messed up partitions to the point where I am not sure what steps to take to get back to vanilla.

A long time ago I had Windows installed on my iMac 2017 and eventually removed that partition. I wanted to add it back but every time I installed it would give man issue about not knowing where the partition was based on the unattended.xml file. I tried troubleshooting that with no luck and found documentation that said I would be able to install using USB drive and creating a FAT32 partition for it to be installed on. This is where things seemed to have gone wrong. It wont let me install it because again it is having some issue finding the partition. Now I am stuck with half of the storage on my iMac side and no working Windows side. Any help would be appreciated on this one! Spent all day trying to get it to work.


iMac:EFI mbrotman$ diskutil list

/dev/disk0 (internal):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme 121.3 GB disk0

1: EFI EFI 314.6 MB disk0s1

2: Apple_APFS Container disk2 121.0 GB disk0s2


/dev/disk1 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *2.0 TB disk1

1: EFI EFI 209.7 MB disk1s1

2: Apple_APFS Container disk2 940.1 GB disk1s2

3: EFI NO NAME 104.9 MB disk1s3

4: Apple_HFS BC2 523.2 MB disk1s4

5: EFI NO NAME 104.9 MB disk1s5

6: Apple_HFS BC3 523.2 MB disk1s6

7: EFI 104.9 MB disk1s7

8: EFI 104.9 MB disk1s8

9: EFI 104.9 MB disk1s9

10: Microsoft Basic Data BOOTCAMP 1.1 TB disk1s10


/dev/disk2 (synthesized):

#: TYPE NAME SIZE IDENTIFIER

0: APFS Container Scheme - +1.1 TB disk2

Physical Stores disk0s2, disk1s2

1: APFS Volume Macintosh HD 243.5 GB disk2s1

2: APFS Volume Preboot 42.1 MB disk2s2

3: APFS Volume Recovery 512.8 MB disk2s3

4: APFS Volume VM 2.1 GB disk2s4

Posted on Dec 27, 2018 1:29 PM

Reply

Similar questions

7 replies

Dec 27, 2018 7:05 PM in response to mbrotman

A 2017 iMac does not use an external USB installer. BC Assistant should be used to install Windows. the EFI NO NAME partitions indicate that an external storage (or a storage hub) was attached. We first need to cleanup.


  • Step 1


Run


diskutil eraseVolume jhfs+ BC1 disk1s3

diskutil eraseVolume jhfs+ BC4 disk1s5

diskutil eraseVolume jhfs+ BC5 disk1s7

diskutil eraseVolume jhfs+ BC6 disk1s8

diskutil eraseVolume jhfs+ BC7 disk1s9

diskutil eraseVolume jhfs+ BC8 disk1s10

diskutil mergePartitions jhfs+ BCMP disk1s3 disk1s10

diskutil list


  • Step 2


If you see disk1s3 as the last disk in disk1, then run


diskutil eraseVolume fat32 BOOTCAMP disk1s3


and run BC Assistant and click on Remove/Restore, before we go further.

Dec 27, 2018 7:43 PM in response to Loner T

Thanks for stepping in, I noticed you working with a lot of the people here and you're very knowledgable! I performed the steps and everything completed successfully. Here is the output from the diskutil list now.


iMac:~ mbrotman$ diskutil list

/dev/disk0 (internal):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme 121.3 GB disk0

1: EFI EFI 314.6 MB disk0s1

2: Apple_APFS Container disk2 121.0 GB disk0s2


/dev/disk1 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *2.0 TB disk1

1: EFI EFI 209.7 MB disk1s1

2: Apple_APFS Container disk2 2.0 TB disk1s2


/dev/disk2 (synthesized):

#: TYPE NAME SIZE IDENTIFIER

0: APFS Container Scheme - +2.1 TB disk2

Physical Stores disk0s2, disk1s2

1: APFS Volume Macintosh HD 243.6 GB disk2s1

2: APFS Volume Preboot 42.1 MB disk2s2

3: APFS Volume Recovery 512.8 MB disk2s3

4: APFS Volume VM 2.1 GB disk2s4


/dev/disk3 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme +43.4 MB disk3

1: Apple_HFS Sublime Text 43.3 MB disk3s1

Dec 27, 2018 7:59 PM in response to Loner T

please see the below:


iMac:~ mbrotman$ sudo fsck_apfs -n -l /dev/rdisk2

Password:

** Checking the container superblock.

** Checking the fusion superblock.

** Checking the EFI jumpstart record.

** Checking the space manager.

** Checking the space manager free queue trees.

** Checking the object map.

** Checking the Fusion data structures.

** Checking volume.

** Checking the APFS volume superblock.

** The volume Macintosh HD was formatted by hfs_convert (945.200.129) and last modified by apfs_kext (945.220.38).

** Checking the object map.

** Checking the snapshot metadata tree.

** Checking the snapshot metadata.

** Checking the extent ref tree.

** Checking the fsroot tree.

** Checking volume.

** Checking the APFS volume superblock.

** The volume Preboot was formatted by hfs_convert (945.200.129) and last modified by apfs_kext (945.220.38).

** Checking the object map.

** Checking the snapshot metadata tree.

** Checking the snapshot metadata.

** Checking the extent ref tree.

** Checking the fsroot tree.

** Checking volume.

** Checking the APFS volume superblock.

** The volume Recovery was formatted by diskmanagementd (945.200.129) and last modified by apfs_kext (945.220.38).

** Checking the object map.

** Checking the snapshot metadata tree.

** Checking the snapshot metadata.

** Checking the extent ref tree.

** Checking the fsroot tree.

** Checking volume.

** Checking the APFS volume superblock.

** The volume VM was formatted by apfs.util (945.200.129) and last modified by apfs_kext (945.220.38).

** Checking the object map.

** Checking the snapshot metadata tree.

** Checking the snapshot metadata.

** Checking the extent ref tree.

** Checking the fsroot tree.

** Verifying allocated space.

** Performing deferred repairs.

** The volume /dev/rdisk2 appears to be OK.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Messed up partitions to the point where I am not sure what steps to take to get back to vanilla.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.