flutter 运行 无法访问我的辅助硬盘的文件

flutter run cannot access files of my secondary hard disk

我的 system.I 中有一个 SSD 和一个 HDD,我使用 ssd 存储 ubuntu 和 windows,并将我的项目文件保存在 HDD 中。但我无法访问硬盘中的文件。 它正在抛出此错误消息

糟糕; flutter 意外退出:“FileSystemException:无法删除文件, path = '/path to project/.flutter-plugins' (OS 错误: 只读文件系统,errno = 30)”。 由于次要错误无法生成崩溃报告:FileSystemException:无法创建文件,路径 = '/path to project/flutter_01.log' (OS Error: Read-only file system, errno = 30) 请在 https://github.com/flutter/flutter/issues.

报告错误

糟糕; flutter 意外退出:“FileSystemException:无法删除文件, path = '/path to project/.flutter-plugins' (OS 错误: 只读文件系统,errno = 30)”。 由于次要错误无法生成崩溃报告:FileSystemException:无法创建文件,路径 = '/path to project/flutter_01.log' (OS Error: Read-only file system, errno = 30) 请在 https://github.com/flutter/flutter/issues 报告错误。 未处理的异常: 处理出口:1 #0 _handleToolError(包:flutter_tools/runner.dart:172:7) #1 运行..(包:flutter_tools/runner.dart:86:7)

我的辅助硬盘挂载为只读文件系统。 我已经重新安装它来解决问题。