磁盘以只读方式安装,但在 fstab 中定义为读写

磁盘以只读方式安装,但在 fstab 中定义为读写

我的电脑出现了一个问题;我最近安装了基于 Debian 的 Deepin Linux,我想在其上使用内部 ntfs 格式的硬盘。

我创建了一个fstab在启动时自动安装它的条目,如下行:

UUID=BE9823F89823AE39 /media/Data ntfs defaults,gid=1000,uid=1000 0 0

问题在于,在默认选项中,磁盘应该被安装为rw,但它仍然处于只读模式。

有人有想法可以帮助我吗?

编辑:
我按照 jpgaugh 所说的做了,但仍然不起作用;这是我的新fstab线路:

UUID=BE9823F89823AE39 /media/Data ntfs-3g defaults,gid=1000,uid=1000,dmask=022,fmask=133 0 0

答案1

好的,我终于找到了让它工作的方法。

问题出在 Windows 10 上,它在分区上留下了一些 Windows 缓存数据。为了解决这个问题,我在 Windows 上启动,禁用了快速启动选项,然后重新启动到 Linux,现在没问题了。

这是我的工作fstab路线:

UUID=BE9823F89823AE39 /media/Data ntfs-3g defaults,gid=1000,uid=1000,dmask=022,fmask=133 0 0 

答案2

还知道Windows 10您必须小心,因为默认关机会使 ntfs 磁盘进入睡眠或休眠状态,而不是传统的刷新和卸载状态或任何它被称为的状态;这要么会导致其他操作系统安装该 ntfs 磁盘出现问题,要么当 windows 10 在 win10 休眠后其他人访问它后再次访问它时,win10 通常会认为它很脏并进行磁盘检查。

Windows 10 - 控制面板 - 电源选项 - 系统设置或选择电源按钮的功能 -取消选中开启快速启动(推荐)

关闭快速启动

为了更好地了解正在发生的事情的技术答案,请在网上搜索windows10磁盘快速启动会解释。我遇到了许多 Windows 10 问题和 Linux 安装问题,在一个磁盘上来回使用 Win10,在另一个磁盘上使用 Linux,其中 Linux 使用ntfs-3g访问我的 ntfs 磁盘。此外,他们说win10快速启动不影响重新开始它只会影响关闭

来自 tuxera.com ntfg-3g 的破解者他们指出:

Windows hibernation and fast restarting

On computers which can be dual-booted into Windows or Linux, Windows has    to be fully shut down before booting into Linux.
otherwise the NTFS file systems on internal disks may be left in an inconsistent state and changes made by Linux may be ignored by Windows.

So, Windows may not be left in hibernation when starting Linux, in order to avoid inconsistencies.
Moreover, the fast restart feature available on recent Windows systems has to be disabled.
This can be achieved by issuing as an Administrator the Windows command which disables both hibernation and fast restarting :

powercfg /h off

相关内容