向U盘写入有缓存机制,不要直接拔出
U盘拷贝文件在WIN系统中是一样的,提前拔出也会出问题。
man mount
defaults
Use the default options: rw, suid, dev, exec, auto, nouser, and
async.
Note that the real set of all default mount options depends on
the kernel and filesystem type. See the beginning of this sec‐
tion for more details.
async All I/O to the filesystem should be done asynchronously. (See also the sync option.)
sync All I/O to the filesystem should be done synchronously. In the case of media with a limited number of write cycles (e.g. some
flash drives), sync may cause life-cycle shortening.
猜测流程是这样的:
插入U盘 ->
内核检测到硬件添加事件,建立内核硬件对象,加载驱动之类,发送信号给udev->
udev建立/dev对应文件,调用某功能根据某默认规则挂载u盘.
这个默认规则可能来自/etc/fstab 可能来自udev自己的rules配置,可能来自mount的配置,可能来自文件系统对应内核模块的配置,个人不知道.
解决问题的方式简单粗暴的应该是手动更改/etc/fstab 文件,建立u盘对应行,让u盘直接以sync模式挂载,保持其他挂载选项同default一致.
安全移除功能貌似是调用系统的sync功能,将缓存数据立即写入u盘,
虽然重启之类的又能识别了,但应该意味着u盘有文件或文件系统损坏.
亲!
你在最新的 20.8环境上是否还存在这个问题,我这边在 20.8上尝试没有复现到你这个情况
亲!
你在最新的 20.8环境上是否还存在这个问题,我这边在 20.8上尝试没有复现到你这个情况
20.8磁盘文件拷贝到U盘时,还未到100%,显示拷贝速度的小窗突然关闭,U盘也无法正常弹出显示“磁盘文件被占用,无法弹出”
Popular Ranking
ChangePopular Events
More

中文 
昨天收到deepin的邮件,问我为啥不在论坛活跃了,那今天就反馈个问题吧
插入u盘->拷贝文件到u盘->安全移除,未得到提示前就拔下u盘,这时候拷贝的文件不能用,在次插入u盘,提示需要格式化->强制重启->插入u盘就可以读出来了
另外如果有程序未关闭,还不能直接重启,很尴尬