Converting from JHFS+ to APFS (Non-Destructively)

joshua_phillips
New Contributor

Hi ,

I started a process to convert to High Sierra through jamf imaging. I completed the process by first running a script to change the drive to jhfs+ then laying down a high sierra hfs image that was made with autodmg. Finally, I run a script that creates a recovery partition upon reboot. When the process is complete the machine is on High Sierra 10.13.3 but it is still on MacOS Extended Journaled. I wanted to know if anyone knew of a script that could change a drive from JHFS to APFS non-destructively which I would place at the end of the imaging process. Thank you in advance.

3 REPLIES 3

dzogrim
New Contributor III

Hi. I think you could easily write a script with the provided command apfs_hfs_convert to convert any HFS volume to APFS. Check the man.

joshua_phillips
New Contributor

Yes, I believe this can work but this is for hfs not jhfs whenever I run the command it says hfs volume not found.

dzogrim
New Contributor III

As I could understand it here and here, shouldn't be a problem… can you display what a

diskutil list

give as results for the drive/volume you wanna convert please?