
私はMacとWindowsの両方で使用したい外付けハードドライブを持っています。._ファイルの問題を避けたいです(Dropbox の非 Mac OS ファイル システムから ._ ファイルを削除する)
拡張ファイル属性をサポートし (したがって ._ ファイルを回避し)、追加のドライバーなどを使用せずに Mac と Windows の両方と互換性のある HD をフォーマットできるファイルシステムは何ですか?
Mac/PC 間で共有するためのファイルシステムについて、多くの質問があることは承知しています。特に、互換性があり、さらに拡張ファイル属性をサポートしているファイルシステムについて知りたいです。
ありがとう
答え1
すべての条件を満たすものはありません。macOS が ._ AppleDouble ファイルを作成せずにすぐに読み書きできる唯一のファイルシステムは、Apple 独自の HFS+ および APFS ファイルシステム ファミリです。Windows は、これらのファイルシステムのどちらもすぐには読み書きできません。
答え2
macOS オペレーティング システムには、dot_clean
FAT32 または ExFAT でフォーマットされたドライブ パーティションからドット ファイルを削除するために使用できるコマンドが含まれています。このコマンドを定期的に実行するために必要な作業は、ゴミ箱を空にするのとほぼ同じであると考えています。
たとえば、外付けドライブの名前が の場合MYEXTUSB
、以下のコマンドを使用してドット ファイルを削除できます。
dot_clean /Volumes/MYEXTUSB
付録
macOS 10.13.3 (High Sierra) のマニュアルdot_clean
ページを以下に示します。
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