
我有一個外接硬碟,想在 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