gparted磁盘只读,我无法更改为读取&写入

分享于 

3分钟阅读

ubuntu

  繁體

问题

我已经使用Windows 7很长时间了,想试试Linux(Ubuntu)。我有两个硬盘,一个120GB,另一个1TB。我可以访问所有文件,但作为只读磁盘,我安装了GParted,并在右键单击/dev/sdb1收到此消息:

Unable to read the contents of this file system!

because of this some operations may be unavailable.

原因可能是缺少某个软件包。

ntfs文件系统支持需要以下软件包列表:ntfsprogs /ntfs-3g。

ntfsprogs由于各种原因拒绝安装,例如,


sudo apt-get install ntfsprogs




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




答案1

Ntfsprogs包含在软件包ntfs-3g中。

要要安装它,运行:


sudo su


apt-get install ntfs-3g ntfs-config



要修复文件系统,必须使用ntfsfix。

Ntfsfix是一个修复一些常见NTFS问题的程序。

Ntfsfix不是chkdsk的Linux版本。它只能修复了一些基本的NTFS不一致。

要运行它:


sudo su


ntfsfix <options> <drive> 



下面是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



源:http://manpages.ubuntu.com/manpages/trusty/man8/ntfsfix.8.html


答案2

创建一个Windows Live USB,然后按照提示打开命令行,然后,你可以从那里运行chkdsk /f



CAN  磁盘  NTFS