Is there a hard disk utility which can format(NTFS) &repair a HDD which has lots of bad sectors like Norton Disk Doctor from Linux ?
Is there a hard disk utility which can format(NTFS) &repair a HDD which has lots of bad sectors like Norton Disk Doctor from Linux ?
A few others here have already mentioned
ntfsprogs
andmkntfs
.Also in the
ntfsprogs
suite is a utility calledntfsfix
. Although the man page emphasizes that it's not a Linux version ofchkdsk
, I have successfully usedntfsfix
to bring a non-bootable WinXP root disk back to life.A convenient place to find
ntfsprogs
(and many, many other diagnostic, repair, and rescue tools) is the CD- or USB-bootable System Rescue CD.A modern hard disk on which you can't read/write from/to certain sectors anymore has consumed all the spare replacement sectors it had available, so it can't be "repaired" really. It's basically as good as dead. Did you check the S.M.A.R.T. status of the disk (with either
udisks
orsmartctl
)?In any case,
mkntfs
(mkfs.ntfs
is a symlink to that) supposedly does a check for bad sectors by default, if you don't use any of the -f, --fast, -Q or --quick options.I use TestDisk(http://www.cgsecurity.org/wiki/TestDisk)
The
ntfsprogs
package on linux has a disk formating utility calledmkfs.ntfs
. I don't know how well it handles detection and blocking of bad sectors, but it's worth trying.In Debian, there is a package called scrounge-ntfs, which claim to be a data recovery program for NTFS filesystems. I have not tried it yet because I do not have any corrupted NTFS filesystem.
Anyway, it would be safer to make a disk image of the disk with bad sectors and recover your files from that disk image instead of directly from the disk.
If you attach the (corrupt) hard disk to a virtual windows box then you can use windows' own chkdsk.exe on it, etc. ref: http://www.howtoforge.com/ntfs-disk-recovery