首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ntfs-3g:输入/输出错误

ntfs-3g:输入/输出错误
EN

Unix & Linux用户
提问于 2014-10-30 17:37:41
回答 2查看 12.7K关注 0票数 8

在过去的3天(更新后),我的Debian拒绝安装NTFS磁盘。我重新安装了libfuse2和ntfs-3g,但输入/输出错误相同。

我在Windows 7和OSX小牛(使用ntfs-3g)下尝试了相同的磁盘,它们工作得很好。我清除了ntfs-3g并重新安装,但仍然存在相同的问题。

磁盘有时会挂载,有时不会挂载。如果它们确实挂载,我有时可以进入挂载目录,而有时,我会得到挂载目录的bash错误输入/输出错误。当我能够进入挂载目录时,当我尝试ls -l时,我会看到大量的问号,而不是file/dir属性。

我尝试过windows下的ntfsfix和chkdisk,它们都没有报告问题,只有在这个Jessie安装下,我突然无法正确地安装它们。

除了附加的外部磁盘外,dmesg没有其他有用的信息:

代码语言:javascript
复制
[12816.210969] scsi 20:0:0:0: Direct-Access     Seagate  External         SG16 PQ: 0 ANSI: 4
[12816.211825] sd 20:0:0:0: Attached scsi generic sg7 type 0
[12816.212542] sd 20:0:0:0: [sdg] 732566642 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[12816.213591] sd 20:0:0:0: [sdg] Write Protect is off
[12816.213595] sd 20:0:0:0: [sdg] Mode Sense: bf 00 00 00
[12816.214782] sd 20:0:0:0: [sdg] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[12816.215561] sd 20:0:0:0: [sdg] 732566642 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[12816.242055]  sdg: sdg1 sdg2
[12816.243244] sd 20:0:0:0: [sdg] 732566642 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[12816.246031] sd 20:0:0:0: [sdg] Attached SCSI disk

parted /dev/sdg 'print'
Model: Seagate External (scsi)
Disk /dev/sdg: 3001GB
Sector size (logical/physical): 4096B/4096B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      258kB   1038GB  1038GB  primary
 2      1038GB  3001GB  1962GB  primary

fdisk -l /dev/sdg
Note: sector size is 4096 (not 512)

Disk /dev/sdg: 3000.6 GB, 3000592965632 bytes
255 heads, 63 sectors/track, 45600 cylinders, total 732566642 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00090a06

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1              63   253473569  1013894028    7  HPFS/NTFS/exFAT
/dev/sdg2       253473792   732566527  1916370944   83  Linux

mount -t ntfs-3g /dev/sdg1 /media/Downloads
ntfs-3g-mount: failed to access mountpoint /media/Downloads: Input/output error

如果我能通过

代码语言:javascript
复制
mount -t ntfs-3g /dev/sdg1 /media/Downloads

一旦我光盘进入它:

代码语言:javascript
复制
cd media/Downloads 
root@athena:/media/Downloads# ls -l
ls: reading directory .: Input/output error
total 0
root@athena:/media/Downloads#

然而,山上写着:

代码语言:javascript
复制
/dev/sdf1 on /media/Downloads type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

我刹车了什么?

编辑

代码语言:javascript
复制
ntfsinfo -m /dev/sdg1

Volume is scheduled for check.
Please boot into Windows TWICE, or use the 'force' option.
NOTE: If you had not scheduled check and last time accessed this volume
using ntfsmount and shutdown system properly, then init scripts in your
distribution are broken. Please report to your distribution developers
(NOT to us!) that init scripts kill ntfsmount or mount.ntfs-fuse during
shutdown instead of proper umount.
Failed to open '/dev/sdg1'.

EDIT#2

代码语言:javascript
复制
ntfsinfo -fm /dev/sdg1 
WARNING: Dirty volume mount was forced by the 'force' mount option.
Volume Information 
        Name of device: /dev/sdg1
        Device state: 11
        Volume Name: 
        Volume State: 91
        Volume Flags: 0x0001 DIRTY
        Volume Version: 3.1
        Sector Size: 4096
        Cluster Size: 4096
        Index Block Size: 4096
        Volume Size in Clusters: 253473506
MFT Information 
        MFT Record Size: 4096
        MFT Zone Multiplier: 0
        MFT Data Position: 24
        MFT Zone Start: 0
        MFT Zone End: 31684192
        MFT Zone Position: 4
        Current Position in First Data Zone: 31684192
        Current Position in Second Data Zone: 0
        Allocated clusters 145403 (0.1%)
        LCN of Data Attribute for FILE_MFT: 4
        FILE_MFTMirr Size: 4
        LCN of Data Attribute for File_MFTMirr: 126736753
        Size of Attribute Definition Table: 2560
        Number of Attached Extent Inodes: 0
FILE_Bitmap Information 
        FILE_Bitmap MFT Record Number: 6
        State of FILE_Bitmap Inode: 80
        Length of Attribute List: 0
        Number of Attached Extent Inodes: 0
FILE_Bitmap Data Attribute Information
        Decompressed Runlist: not done yet
        Base Inode: 6
        Attribute Types: not done yet
        Attribute Name Length: 0
        Attribute State: 3
        Attribute Allocated Size: 31686656
        Attribute Data Size: 31684192
        Attribute Initialized Size: 31684192
        Attribute Compressed Size: 0
        Compression Block Size: 0
        Compression Block Size Bits: 0
        Compression Block Clusters: 0
        Free Clusters: 199331046 (78.6%)

几个小时后,我将尝试将它安装在windows下(我正在对另一个磁盘进行检查,我不想中断)。

EDIT#3

我回到窗户,扫描了磁盘。Windows确实发现了其中一个的问题,但两者都是固定的、可安装的和可浏览的。

然而,在Debian的统治下,我仍然什么也做不了。我打开了格蕾,有趣的是,它抱怨道:

代码语言:javascript
复制
Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for ntfs file system support:  ntfsprogs / ntfs-3g.

然而,

代码语言:javascript
复制
apt-cache policy ntfs-3g
ntfs-3g:
  Installed: 1:2014.2.15AR.2-1
  Candidate: 1:2014.2.15AR.2-1
  Version table:
 *** 1:2014.2.15AR.2-1 0

!!!那么,我是否遇到了某种ntfs-3g错误,还是我的系统现在坏了?

EN

回答 2

Unix & Linux用户

回答已采纳

发布于 2014-10-31 07:38:17

ntfs-3g缺陷。降级ntfs-3g,它将发挥作用。1:2014版本也有相同的问题,而1:2012版本(在“稳定的”存储库中)没有问题。

票数 11
EN

Unix & Linux用户

发布于 2016-11-28 19:27:22

由于版本1:2012不再在stable (Jessie)中,所以升级到unstable (Sid),即当前版本1:2016.2.22AR.1-3,这是斯基洛瓦链接到的bug报告中提到的。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/165057

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档