Mat*_*at7 5 gparted ntfs read-only ntfs-3g
我已经使用 Windows 7 很长时间了,并想尝试一下 Linux (Ubuntu)。我有两个硬盘,一个 120GB,另一个 1TB。第一个用于操作系统和软件,而1TB磁盘用于数据和游戏。因此,我在 120GB 磁盘 (sda) 上安装了 Ubuntu 14.04,并完成了安装 ubuntu 后您应该做的所有 10 件事。但是,它根本不想挂载 1TB 磁盘 (sdb),说它已损坏,但是在两次重新启动后它挂载了 (...?)。我可以访问我的所有文件,但作为只读磁盘。我安装了 GParted 并在右键单击/dev/sdb1并选择信息时收到此消息:
无法读取此文件系统的内容!
因此,某些操作可能不可用。
原因可能是缺少软件包。
ntfs 文件系统支持需要以下软件包列表:ntfsprogs / ntfs-3g。
由于我已经解决这个问题大约 5 个小时了,我听说并遇到过 ntfsprogs 和 ntfs-3g,但只成功安装了 ntfs-3g。ntfsprogs 因各种原因拒绝安装,例如
命令
sudo apt-get install ntfsprogs
Run Code Online (Sandbox Code Playgroud)
返回
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ntfsprogs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ntfsprogs' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我该怎么办?我怎样才能让它读和写?它是一个 NTFS 文件系统,但它大约 50% 已满,我不能丢失这些数据。NTFS 在 Ubuntu(或一般的 Linux)中绝对没用吗?
请帮忙
更新:Windows 的磁盘检查器说一切正常,磁盘有大约 1% 的碎片,因此进行了碎片整理,但问题仍然存在。所以我请了几天假来压缩我拥有的所有内容,并通过 Windows 将这些数据传输到云存储(Apple 的 Time Capsule)。我格式化了磁盘(到 NTFS),现在它是空的,它确实是 Ubuntu 中的读写。但是现在我遇到了无法从 Ubuntu 访问 Time Capsule 的问题。我在互联网上查了一下,但只有早期 Ubuntu 的解决方案。
Ntfsprogs 包含在 ntfs-3g 软件包中。
要安装它,请运行:
sudo su
apt-get install ntfs-3g ntfs-config
Run Code Online (Sandbox Code Playgroud)
要修复文件系统必须使用ntfsfix。
Ntfsfix 是一个修复一些常见 NTFS 问题的实用程序。
Ntfsfix 不是 chkdsk 的 Linux 版本。它仅修复一些基本的 NTFS 不一致问题。
运行它:
sudo su
ntfsfix <options> <drive>
Run Code Online (Sandbox Code Playgroud)
以下是 ntfsfix 接受的所有选项的摘要:
-b, --clear-bad-sectors
Clear the list of bad sectors. This is useful after cloning an
old disk with bad sectors to a new disk.
-d, --clear-dirty
Clear the volume dirty flag if the volume can be fixed and
mounted. If the option is not present or the volume cannot be
fixed, the dirty volume flag is set to request a volume checking
at next mount.
-h, --help
Show a list of options with a brief description of each one.
-n, --do-nothing
Do not write anything, just show what would have been done.
-V, --version
Show the version number, copyright and license
Run Code Online (Sandbox Code Playgroud)
来源:Ubuntu 联机帮助页:ntfsfix - 修复常见错误并强制 Windows 检查 NTFS。