MacOSでフォルダの複写がうまくいかなかった件。
MacOS同士
1.
MacOSのファインダで、フォルダの複写を何度やっても途中で止まってしまいました。
止まるだけで、警告を出してもらえなく、何がなんだかわかりませんでした。
terminalを立ち上げ
cp命令で、フォルダの複写をしたら、
2つファイルが存在しないという警告を出して、
複写は完了しました。
bash
cp -r /Users/administrator/ .
cp: /Users/administrator//.config/configstore: unable to copy extended attributes to ./.config/configstore: Permission denied
cp: /Users/administrator//.config/configstore: Permission denied
cp: /Users/administrator//Library/Saved Application State/com.microsoft.Outlook.savedState: No such file or directory
cp: /Users/administrator//Library/IdentityServices: unable to copy extended attributes to ./Library/IdentityServices: Operation not permitted
cp: /Users/administrator//Library/IdentityServices: Operation not permitted
cp: /Users/administrator//Library/WebKit/com.apple.finder/WebsiteData/IndexedDB/v0: directory causes a cycle
cp: /Users/administrator//Library/Developer/Xcode/GPUToolsAgent.sock: Operation not supported on socket
2
cp命令がなかなか終わらない時には、
どこを現在複写中か探す方法。
bash
$ ls -al
...
drwxr-xr-x@ 147 administrator staff 4998 3 31 11:22 AB
-rw-r--r--@ 1 administrator staff 109545 3 31 11:24 C.docx
drwxr-xr-x@ 1203 administrator staff 40902 3 31 11:37 Downloads
drwxr-xr-x@ 29 administrator staff 986 3 31 11:25 Instagram_files
...
$ cd Downloads
$ ls -al
...
drwxr-xr-x@ 5 administrator staff 170 3 31 11:31 org
drwxr-xr-x@ 5 administrator staff 170 3 31 11:27 pb
drwxr-xr-x@ 93 administrator staff 3162 3 31 11:28 prob
っと、最新のフォルダの中をさがしていく。
3
複写の途中で許諾確認画面で止まることがある。
その他
llvm
GNOME
の2つのフォルダがおおきすぎ、複写がおわりそうになかった。
両方とも途中でフォルダを削除した。
ゴミ箱を空にするが、10,000ファイルぐらいに2時間かかって、おわらなかった。
詳細は順次掲載します。
WindowsHDDから
Windowsの予備HDDからフォルダごと複写しようとしたら途中でなかなか動かない。
terminalを立ち上げ
cp命令で、フォルダの複写をしたら、
$ cp -r /Volumes/Untitled .
cp: /Volumes/Untitled/Backup/Users/administrator/AppData/Local/Microsoft/Windows/UsrClass.dat.LOG2: Operation not permitted
cp: /Volumes/Untitled/Backup/Users/administrator/ntuser.dat.LOG2: Operation not permitted
cp: /Volumes/Untitled/Backup/Users/Default/AppData/Local/Microsoft/Windows/UsrClass.dat.LOG2: Operation not permitted
...
Author And Source
この問題について(MacOSでフォルダの複写がうまくいかなかった件。), 我々は、より多くの情報をここで見つけました https://qiita.com/kaizen_nagoya/items/a82cdc1278631a548fb0著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .