linux fsck ntfs,fsck找不到 fsck.ntfs

源址

Question :

on several machines that i've upgraded from Natty to Oneiric, i get an error every boot (one for every NTFS partition) :Serious errors were found while checking the disk drive for /windows/c.

Press I to ignore, S to skip mounting, or M for manual recovery

following the suggestion in this answer, i ran fsck from the manual recovery shell.i got this output :fsck from util-linux 2.19.1

fsck: fsck.ntfs: not found

fsck: Error 2 while executing fsck.ntfs for /dev/sda1

i can't find fsck.ntfs , and command-not-found doesn't help either.how can i make this error go away?

by the way, i've tried booting into Windows (XP) several times, thinking that Windows would repair the filesystems.but apparently Windows thinks the filesysystems are just fine.and it's odd that all NTFS filesystems are affected.

Also, i can work around this problem by dropping to a recovery shell and issuing mount -a , but for my coworkers'sakes i need unattended boot.Answer 1 :

fsck.ntfs is usually only a link to ntfsfix which is an utility from the package ntfsprogs that is already available with a standard installation of Ubuntu.

you can make a simbolic link between fsck.ntfs and ntfsfix to solve this permanently :sudo ln -s /usr/bin/ntfsfix /sbin/fsck.ntfs

sudo ln -s /usr/bin/ntfsfix /sbin/fsck.ntfs-3g

keep in mind that this utility came from a reverse engineering process and are not the best option to manage your filesystem, the NTFS filesystem does not belong to the GNU/ linux world.Answer 2 :

i think it could be noted for some people that ntfsfix gets installed into /bin/ instead of /usr/bin .sosudo ln -nsf /bin/ntfsfix /sbin/fsck.ntfs

sudo ln -nsf /bin/ntfsfix /sbin/fsck.ntfs-3g

if you have already created the symlink from /usr/bin/sudo rm -f /sbin/fsck.ntfs

sudo rm -f /sbin/fsck.ntfs-3g

and then create the symlinks again.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值