Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3057420
By: szaka
> My knowledge on bad blocks is limited. First I start with a question,
> what constitues a bad block? Does failing to read a block more than a
> few times constitute bad block?
Disks are divided into sectors, one sector is usually 512 bytes. Sector is
the smallest unit what can be addressed. If reading or writing a sector
fail because the disk surface got damaged for whatever reason (too old,
sudden power outage, kicking the computer, etc) then the sector is
considered bad, flawed, damaged, unrecoverable, unusable. If you had data
there then you lost it unless you go to a VERY EXPENSIVE data recovery
company who have the needed hardware to save the data. Actually it's not
even guaranteed that they can recover your data.
Block is a term what Linux uses for filesystem data units. It's either
512, 1024, 2048, ... 64 kB, 128 kB, etc.
Cluster is the NTFS terminology for block. It's either 512, 1024, 2048,
... 64 kB.
A sector is not necessarily either dead or healthy exclusively. Depending
on the OS driver, the temperature and many other things they could or
could not be read. Overall, these sectors are bad but somtimes, having
enough luck, they can be read. Perhaps only once and never again. They are
dying.
> I see that chkdsk says there are 36 KB of bad blocks (i.e., 72
> sectors).
I think chkdsk reports in sectors. So you have 36 KB / 512 = 72 bad
sectors. This is minimum 9, maximum 72 bad cluster.
> While `badblocks` gives 128 bad blocks (sectors?).
By default badblocks use 1024 bytes as block size. That means minimum
minimum 128, maximum 256 bad sectors, i.e. minimum 64 KB, maximim 128 KB
bad sectors.
> Why this discrepency?
One of these:
- Windows lies about bad sectors, e.g. it didn't test the entire disk
surface.
- Windows can read dying disks more reliable than Linux.
- You missed something and Windows didn't run chkdsk /r. But I doubt
this is the case (I guess you have seen the 5 passes chkdsk running
during boot, right?)
> Finally why did ntfsclone exit on a read error, isn't it supposed mark
> the block bad and proceed?
The --rescue option does that.
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=44084
|