| APFS_HFS_CONVERT(8) | System Manager's Manual | APFS_HFS_CONVERT(8) |
apfs_hfs_convert —
convert an existing HFS file system to APFS file
system
apfs_hfs_convert |
[-D] [-g]
[-e] [-v]
[-i] [-S
path] [-n]
[-f] [-F
index] [-M
mount_path] [-o
nx-apfs-format]
<device-path> |
The apfs_hfs_convert command converts an
existing HFS file system to a new APFS file system.
It is recommended not to run the
apfs_hfs_convert directly, but to run `diskutil apfs
convert`.
The device-path parameter should be the path to a disk device node, such as /dev/disk1s2, with an existing HFS file system, which needs to be converted. The device-path may be a path to a whole disk, such as /dev/disk0, which contains Lightweight Volume Manager (LwVM) structures; all HFS slices will be converted and LwVM replaced by a GPT partition map with a single partition containing the APFS container.
The options are as follows:
-e |
--estimate-v |
--verbose-s |
--force-case-sensitive-S
path |
--stats
path-n |
--dry-run-f |
--force-F
index |
--fixed
index-M
mount_path |
--mount-path
mount_path-o
nx-apfs-format-g-D |
--skip-single-dirlinks--feature-formatdirents=unhashed is a feature format
flag that will specify to the converter that it should produce a volume
with legacy (non-standard) directory entries. That is, the resulting
volume will have file names that are both normalization-sensitive and
case-sensitive. This is not recommended in most cases.
The apfs_hfs_convert utility
exits 0 on success, and >0 if an error occurs.
The following converts the HFS file system on the /dev/disk1s2 device:
apfs_hfs_convert
-v /dev/disk1s2The apfs_hfs_convert utility first
appeared in OS X 10.12.
| September 15, 2015 | Mac OS X |