如果在系统启动前进行磁盘修复
发表于 : 2017-07-10 11:27
由于我的系统关机是直接断电 所以容易引起系统问题 分区用的是ntfs格式 经过几次启动后出现了无法挂载的问题
系统提示:Error mounting: mount exited with exit code 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it‘s a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the ‘dmraid‘ documentation
for more details
然后我查了下是需要修复下 于是输入命令 ntfsfix /dev/sdb1 之后就可以正常挂载了
现在的问题是设备是没有用户操作的 我想是不是可以每次启动前 先进行下修复 这个能实现吗 在配置中怎么写
另外 我用的是ssd盘 所以io 用的是noop方式
fstab里 挂载盘 uuid=xxxx /xxxx ntfs-3g defaults,discard,noatime,nodiratime 0 2
系统盘的是默认的
大体设置是这样的 我的系统就是直接通电 断电这样的 ntfs为挂载盘 系统盘为ext4 为了系统稳定性还想请教下需要修改什么
系统提示:Error mounting: mount exited with exit code 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it‘s a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the ‘dmraid‘ documentation
for more details
然后我查了下是需要修复下 于是输入命令 ntfsfix /dev/sdb1 之后就可以正常挂载了
现在的问题是设备是没有用户操作的 我想是不是可以每次启动前 先进行下修复 这个能实现吗 在配置中怎么写
另外 我用的是ssd盘 所以io 用的是noop方式
fstab里 挂载盘 uuid=xxxx /xxxx ntfs-3g defaults,discard,noatime,nodiratime 0 2
系统盘的是默认的
大体设置是这样的 我的系统就是直接通电 断电这样的 ntfs为挂载盘 系统盘为ext4 为了系统稳定性还想请教下需要修改什么