macos sierra_如何在macOS Sierra上使用APFS文件系统格式化驱动器

macos sierra

macos sierra

Apple is working on a new file system known as the Apple File System. APFS will probably become the default file system on macOS and iOS in 2017, but it’s available as prerelease software on macOS Sierra.

Apple正在开发一种称为Apple File System的新文件系统。 APFS可能会在2017年成为macOS和iOS上的默认文件系统,但可以作为macOS Sierra上的预发布软件使用。

This new file system isn’t done yet, so we don’t recommend you do this for any reason other than experimentation. Don’t store your only copies of any important data on an APFS drive.

这个新的文件系统尚未完成,因此我们不建议您出于实验目的而不是出于其他原因进行此操作。 不要将任何重要数据的唯一副本存储在APFS驱动器上。

为什么您可能仍不想使用APFS (Why You Probably Don’t Want to Use APFS Yet)

The new Apple File System is currently experimental. Apple is targeting a final release in 2017, and your Mac’s system drive–and the drives inside iPhones, iPads, Apple TVs, and Apple Watches–should automatically convert to APFS at that point.

新的Apple文件系统目前正在试验中。 Apple的目标是在2017年发布最终版本,此时Mac的系统驱动器以及iPhone,iPad,Apple TV和Apple Watch内的驱动器应自动转换为APFS。

For now, the only reason to format a drive with APFS is to experiment with it. However, APFS is in development, so benchmarks performed with it may not be representative of the file system’s final performance.

目前,使用APFS格式化驱动器的唯一原因是对其进行试验。 但是,APFS正在开发中,因此使用它执行的基准测试可能无法代表文件系统的最终性能。

Apple also warns that drives formatted with this prerelease version of APFS may not be compatible with future versions of macOS and the final version of APFS. Don’t use an APFS drive for anything important.

苹果还警告说,使用此预发行版本的APFS格式化的驱动器可能与以后的macOS版本和APFS的最终版本不兼容。 不要将APFS驱动器用于任何重要的事情。

macOS Sierra中的APFS限制 (APFS Limitations in macOS Sierra)

macOS Sierra places a few limitations on the new APFS file system, as it’s still experimental:

macOS Sierra仍在试验中,对新的APFS文件系统有一些限制:

  • Mac startup disks can’t be formatted with APFS, so you can’t use this for your Mac’s system drive.

    Mac启动盘无法使用APFS格式化,因此您不能将其用于Mac的系统驱动器。
  • APFS file systems are currently case sensitive only, which means that “file” is different from “File”.

    APFS文件系统当前仅区分大小写,这意味着“文件”与“文件”不同。
  • Time Machine can’t back up to an APFS drive.

    Time Machine无法备份到APFS驱动器。

  • FileVault can’t encrypt an APFS drive.

    FileVault无法加密APFS驱动器。

  • APFS can’t be used in Fusion Drives, which are Apple’s type of hybrid hard drive that combines an SSD and mechanical drive.

    APFS不能在Fusion Drives中使用,Fusion Drives是Apple的结合了SSD和机械驱动器的混合型硬盘驱动器。

The important limitations should be lifted when Apple releases APFS as a final product.

当Apple将APFS作为最终产品发布时,应取消重要限制。

如何在macOS Sierra中将驱动器格式化为APFS (How to Format a Drive as APFS in macOS Sierra)

When APFS launches as a final product, Apple will offer a way to convert HFS+ file systems to APFS without deleting any data. However, if you want to test APFS out before then, you’ll have to wipe a drive and reformat it with the APFS file system.

当APFS作为最终产品发布时,Apple将提供一种无需删除任何数据即可将HFS +文件系统转换为APFS的方法。 但是,如果您想在此之前进行APFS的测试,则必须擦除驱动器并使用APFS文件系统对其进行重新格式化。

You can choose to format a USB drive, SD card, or external hard drive with APFS. You could also use a secondary internal drive.

您可以选择使用APFS格式化USB驱动器,SD卡或外部硬盘驱动器。 您也可以使用辅助内部驱动器。

Warning: Back up any files on a drive before you format it. The formatting process will delete all files currently on the partition you’re formatting.

警告 :在格式化驱动器之前,请先备份驱动器上的所有文件。 格式化过程将删除您正在格式化的分区上当前的所有文件。

The graphical Disk Utility tool can’t yet format drives as APFS. However, Apple’s documentation notes that you can use the diskutil command to format a partition or disk image as APFS.

图形磁盘实用程序工具尚无法将驱动器格式化为APFS。 但是,Apple的文档指出,您可以使用diskutil命令将分区或磁盘映像格式化为APFS。

First, figure out which the device identifier of the disk you want to format. To do this, open a Terminal window and run the following command:

首先,找出要格式化的磁盘的设备标识符。 为此,请打开“终端”窗口并运行以下命令:

diskutil list

Here, we’re looking for an external USB drive of 16GB in size. We see the partition we want to format at “disk2s2”.

在这里,我们正在寻找大小为16GB的外部USB驱动器。 我们在“ disk2s2”上看到了要格式化的分区。

Be very careful when finding the device identifier. If you choose the wrong device identifier, you could format the wrong drive and delete important files.

查找设备标识符时要非常小心。 如果选择了错误的设备标识符,则可能会格式化错误的驱动器并删除重要文件。

To format it with APFS, first run the following command to create an APFS container Remember, enter the correct identifier for your drive instead of “disk2s2”.

要使用APFS对其进行格式化,请首先运行以下命令以创建APFS容器。请记住,为驱动器输入正确的标识符,而不是“ disk2s2”。

diskutil apfs createContainer /dev/disk2s2

Second, run the following command to add an APFS volume. Replace “disk2s2” with the same device identifier you used above, and “newAPFS” with whatever you want to name the APFS volume.

其次,运行以下命令以添加APFS卷。 用上面使用的相同设备标识符替换“ disk2s2”,并用要命名APFS卷的名称替换“ newAPFS”。

diskutil apfs addVolume disk2s2 APFS newAPFS

Your APFS volume will appear mounted in Finder like any other volume. If you right-click or Control-click it and select “Get Info”, you’ll see that its file system format is “APFS”.

您的APFS卷将像其他任何卷一样显示在Finder中。 如果右键单击或按住Control键单击它,然后选择“获取信息”,则会看到其文件系统格式为“ APFS”。

If you decide you no longer want to use the volume as an APFS volume, you can use the Disk Utility application to format the partition with the Mac HFS+ file system or the cross-platform exFAT file system.

如果您决定不再希望将该卷用作APFS卷,则可以使用Disk Utility应用程序使用Mac HFS +文件系统或跨平台的exFAT文件系统格式化分区。

Just launch the Disk Utility, right-click or Control-click the drive containing your APFS partition, and select “Erase”. Choose another file system from the Format box and click “Erase”. This will completely wipe the drive, deleting all the files on it and converting it to whatever file system you choose.

只需启动磁盘实用程序,右键单击或按住Control键单击包含您的APFS分区的驱动器,然后选择“擦除”。 从格式框中选择另一个文件系统,然后单击“擦除”。 这将完全擦除驱动器,删除驱动器上的所有文件,并将其转换为您选择的任何文件系统。

For more information about the Apple File System, consult the detailed APFS documentation on Apple’s developer site.

有关Apple文件系统的更多信息,请查阅Apple开发人员站点上的详细APFS文档

翻译自: https://www.howtogeek.com/272741/how-to-format-a-drive-with-the-apfs-file-system-on-macos-sierra/

macos sierra

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值