Ubuntu系统的硬盘放到Windows系统后,挂回Ubuntu后,硬盘只读不能写的问题

问题:

修复硬盘:sudo fsck /dev/sda3
重新挂载:sudo mount /dev/sda3 /media/wy/76BE01AFBE016947

错误提示:

The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting.)
Could not mount read-write, trying read-only ntfs-3g-mount: failed to access mountpoint /media/wy/76BE01AFBE016947: No such file or directory

解决方法:

这个错误表明你的 NTFS 分区处于不安全的状态,通常是因为 Windows 没有正常关闭或者开启了快速启动(Fast Startup)。要解决这个问题,可以尝试以下步骤:

1. **确保 Windows 完全关闭

确保 Windows 完全关闭,而不是进入休眠或快速启动状态。以下是步骤:

- **关闭快速启动**:
  1. 在 Windows 中,打开“控制面板”。
  2. 选择“硬件和声音” > “电源选项” > “选择电源按钮的功能”。
  3. 点击“更改当前不可用的设置”。
  4. 取消选中“启用快速启动(推荐)”。
  5. 保存更改,并关闭计算机。

- **完全关机**:
  1. 在 Windows 中,点击“开始”菜单。
  2. 选择“电源”按钮,然后点击“关机”。
  3. 确保计算机完全关闭,而不是进入休眠或休眠状态。

2. **检查磁盘健康**

在 Windows 中,你可以使用 `chkdsk` 命令检查并修复磁盘错误:

1. 打开命令提示符(以管理员身份运行)。
2. 运行以下命令来检查和修复文件系统:

   ```cmd
   chkdsk X: /f
   ```

   其中 `X:` 是 NTFS 分区的驱动器号。

3. **重新挂载 NTFS 分区**

在确保 Windows 完全关闭并修复了文件系统之后,尝试重新挂载 NTFS 分区:

1. 确保在 Linux 中卸载 NTFS 分区:

   ```bash
   sudo umount /media/wy/76BE01AFBE016947
   ```

2. 再次尝试挂载:

   ```bash
   sudo mount /dev/sda3 /media/wy/76BE01AFBE016947
   ```

 4. **使用 `ntfsfix`**

如果在 Windows 中没有解决问题,可以尝试使用 `ntfsfix` 工具修复文件系统:

   ```bash
   sudo ntfsfix /dev/sda3
   ```

`ntfsfix` 可以修复一些 NTFS 错误,但它不能完全替代 Windows 的 `chkdsk`。

5. **检查挂载点**

确保挂载点 `/media/wy/76BE01AFBE016947` 存在。如果它不存在,可以创建它:

   ```bash
   sudo mkdir -p /media/wy/76BE01AFBE016947
   ```

备注:

这个问题也困扰了我一天了,我在Google上搜索发现竟然有人和我有一样的困扰。给个链接,大家有兴趣也可以了解一下。

下面这个链接和这个问题一样 。     

https://forums.opensuse.org/t/the-disk-contains-an-unclean-file-system-0-0-metadata-kept-in-windows-cache-refused-to-mount/144625/4

解决方法:Unless you have turn off fast shutdown - shutdown in Windows 8 or 10 is just a hibernate - that makes the NTFS file system marked as still in use. Here is a link on how to turn off fast shutdown so you can mount NTFS in Linux when you shutdown Windows 8 or 10.Windows 10 Goes Into Hibernation When Shut Down - Technipages。

附录:Windows 10关闭时进入休眠状态。(Windows 10 Goes Into Hibernation When Shut Down. )

https://www.technipages.com/windows-10-goes-into-hibernation-when-shut-down/

  • 17
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值