文章目录
U盘/移动硬盘
自动卸载/不显示
插入移动硬盘后,不显示(自动unmount 了),可能是文件系统损坏;
可以通过 磁盘工具
app 来 急救
修复;
如果修复失败,使用 windows 电脑,以管理员权限执行下述命令(移动硬盘挂载为 G 盘):
chkdsk G: /f
视频文件显示灰色
视频文件没拷贝完,可能会显示灰色,不能拷贝,但可以播放。这种情况下可以使用下述命令:
$ cd /Volumes/U盘名字
$ xattr -d -r com.apple.FinderInfo *
终端命令
将终端内容输出到文件:
$ man xattr > ~/Desktop/001.md
有个问题:如果内容中包含 粗体,可能会导致这部分异常,如何解决?
Error: Your CLT does not support macOS 11.
使用brew安装 mongodb 的时候,提示下面的信息
==> Installing mongodb/brew/mongodb-community dependency: mongodb-database-
Error: Your CLT does not support macOS 11.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/more/.
Error: An exception occurred within a child process:
SystemExit: exit
按照提示解决了,解决方法:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
移动文件到 /usr/bin
参考: https://blog.csdn.net/SL_World/article/details/108050614
执行语句
$ sudo mv /Users/user/Desktop/001/aexec /usr/bin
需要关闭 SIP
$ csrutil status # 查看 SIP 状态
System Integrity Protection status: disabled.
如果 SIP 已关闭,还出现 Read-Only filesystem
相关的报错,执行下述命令后,再执行 mv 操作:
sudo mount -uw /