Question: In windows os chkdsk /f /r will fix a hdd error automatically.i have lost access in my laptop though i am able to live boot into my laptop using linux.I have live boot ubuntu 14.04 and i am in a need to run a command to fix hdd logical errors and fix automatically like in windows we can repair using chkdsk /f /r.So what is the alternative command for chkdsk /f /r in linux in order to fix hdd error?

Answer: AFAIK there is no full replacement for chkdsk.You basically have two options

  • use ntfsfix

ntfsfix is part of ntfs-3g and should be pre-installed on your Ubuntu LiveMedium. It can fix only some fundamental issues with NTFS, but it always triggers a chkdsk on next Windows-startup.

In some cases this can be enough to get it back to a usable state (dependending if Windows can boot far enough to be able to run chkdsk…).

If this fails, you are left with option Nr 2

  • use a Windows install/recovery CD/DVD/BootStick

from there you can run chkdsk from a commandprompt.

If you don’t have any Windows-media available, you can also remove the harddrive and connect it to some other Windows-maschine.