哪些文件系统与 Mac 和 PC 兼容并支持扩展文件属性

哪些文件系统与 Mac 和 PC 兼容并支持扩展文件属性

我有一个外置硬盘,我想在 Mac 和 Windows 上使用。我想避免 ._ 文件问题(请参阅从 Dropbox 中的非 Mac OS 文件系统中删除 ._ 文件

我可以将 HD 格式化为哪种文件系统,以支持扩展文件属性(从而避免 ._ 文件)并且无需使用额外的驱动程序或任何其他东西即可与 Mac 和 Windows 兼容?

我知道有很多关于 Mac/PC 之间共享的文件系统的问题。我特别想知道哪些文件系统兼容,而且还支持扩展文件属性。

谢谢

答案1

没有什么能满足您的所有标准。macOS 开箱即用且无需执行 ._ AppleDouble 文件的文件系统只有 Apple 专有的 HFS+ 和 APFS 文件系统系列。Windows 开箱即用,无法读取和写入这两个文件系统。

答案2

macOS 操作系统包含该dot_clean命令,可用于从 FAT32 或 ExFAT 格式的驱动器分区中删除点文件。我认为定期运行此命令所需的工作与清空垃圾箱大致相同。

例如,如果我的外部驱动器名为MYEXTUSB,那么我可以使用下面显示的命令来删除点文件。

dot_clean /Volumes/MYEXTUSB  

附录

dot_clean下面是 macOS 10.13.3(High Sierra)的手册页。

DOT_CLEAN(1)              BSD General Commands Manual             DOT_CLEAN(1)

NAME
     dot_clean -- Merge ._* files with corresponding native files.

SYNOPSIS
     dot_clean [-fmnsv] [--keep=[mostrecent|dotbar|native]] [dir ...]

DESCRIPTION
     For each dir, dot_clean recursively merges all ._* files with their cor-
     responding native files according to the rules specified with the given
     arguments.  By default, if there is an attribute on the native file that
     is also present in the ._ file, the most recent attribute will be used.

     If no operands are given, a usage message is output.  If more than one
     directory is given, directories are merged in the order in which they are
     specified.

OPTIONS
     -f      Flat merge.  Do not recursively merge all directories in the
             given dir.  This is off by default.

     -h      Help. Prints verbose usage message.

     -m      Always delete dot underbar files.

     -n      Delete dot underbar file if there is no matching native file.

     -s      Follow symbolic links.  This will follow symbolic dot underbar
             files when they are found.

     -v      Print verbose output.

     --keep=mostrecent
             The default option.  If an attribute is associated with a data
             fork, use that.  Otherwise, use information stored in the Apple-
             Double file.  Note that the native fork's data is preferred even
             if the data in the AppleDouble file is newer.

     --keep=dotbar
             Always use information stored in the AppleDouble file, replacing
             any extended attributes associated with the native file.

     --keep=native
             Always use the information associated with the data fork, ignor-
             ing any AppleDouble files.

EXAMPLES
     The following is how to do an dot_clean merge on the mounted volume test,
     always using the dot underbar information.

           dot_clean --keep=dotbar /Volumes/test

DIAGNOSTICS
     The dot_clean utility exits 0 on success, and >0 if an error occurs.

BUGS
     None known.

BSD                              Sept 27, 2012                             BSD

相关内容