首页 » 系统管理 » 正文

Mac下使用Mounty挂载NTFS出现了文件不能拷贝的解决办法

删除不能拷贝文件的扩展属性:

xattr -d com.apple.FinderInfo *

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
robert at robert in ~
$ mount
/dev/disk1 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk2s2 on /private/var/folders/xg/y9ymv2110kx2wd2k8s5pns9w0000gn/T/Seagate Backup Plus Drive (ntfs, local, nodev, nosuid, noowners, nobrowse)

robert at robert in ~
$ cd "/private/var/folders/xg/y9ymv2110kx2wd2k8s5pns9w0000gn/T/Seagate Backup Plus Drive"

robert at robert in /private/var/folders/xg/y9ymv2110kx2wd2k8s5pns9w0000gn/T/Seagate Backup Plus Drive
$ ls -l@  
total 384
-rwxr-xr-x@ 1 robert  staff      32 Feb  5 18:37 Autorun.inf
    com.apple.FinderInfo        32
    Mac_Metadata        20
-rwxr-xr-x@ 2 robert  staff  194586 Feb  5 18:37 BackupPlus.ico
    com.apple.FinderInfo        32
    Mac_Metadata        20
drwxr-xr-x@ 1 robert  staff       0 Feb  5 18:37 Seagate
    com.apple.FinderInfo        32
    Mac_Metadata        20
drwxr-xr-x@ 1 robert  staff    4096 Jan  2 20:07 mybackup
    Mac_Metadata        20
drwxr-xr-x  1 robert  staff    4096 Feb  5 18:41 myinstallers
drwxr-xr-x  1 robert  staff    8192 Feb  5 18:39 mylife
drwxr-xr-x  1 robert  staff   12288 Jan  2 20:16 myphotos
drwxr-xr-x  1 robert  staff       0 Jun 19  2016 mysongs
drwxr-xr-x  1 robert  staff    4096 Jan  2 20:16 mytech
drwxr-xr-x  1 robert  staff    4096 Jan  2 20:16 电视剧

robert at robert in /private/var/folders/xg/y9ymv2110kx2wd2k8s5pns9w0000gn/T/Seagate Backup Plus Drive
$ xattr -d com.apple.FinderInfo *
xattr: mybackup: No such xattr: com.apple.FinderInfo
xattr: myinstallers: No such xattr: com.apple.FinderInfo
xattr: mylife: No such xattr: com.apple.FinderInfo
xattr: myphotos: No such xattr: com.apple.FinderInfo
xattr: mysongs: No such xattr: com.apple.FinderInfo
xattr: mytech: No such xattr: com.apple.FinderInfo
xattr: 电视剧: No such xattr: com.apple.FinderInfo

原文:

终端进到目录下
ls -l@
会看见多了很多类似于
com.apple.FinderInfo 32
com.apple.metadata:kMDItemWhereFroms 207
com.apple.quarantine 63
这种东西
用xattr删除掉扩展属性就可以正常使用了。