[TAG] bad sector removing
Kapil Hari Paranjape
kapil at imsc.res.in
Fri Sep 19 07:42:20 MSD 2008
On Thu, 18 Sep 2008, M.Rashid Shahzad wrote:
> Please Reply the bad sector removing method and bad sector removing
> the software name or this software use for the procedure.All method
> reply the easy words. Please help this working.Thanks.Bye
I think the program "badblocks" will check a disk for bad blocks
(by running read and *more dangerously* write tests). This program
produces the list of bad blocks in a manner which can be used by file
system tools to mark blocks as unusable.
If you are using the disk, then it is best to run this in read-only
mode. For example, for an ext2/3 file system on /dev/sda5 you would use
e2fsck -c /dev/sda5
This command will call "badblocks" in read-only mode to perform the
disk scan. This operation can take a long time for large disks.
Note that any file data that has already been written to these blocks
before performing the check might not be recoverable.
If you are not using the disk and are planning to check for badblocks
before using it then it is best to again use file system tools to
check the bad blocks and create the file system in one command. For
example, to create an ext2/3 file system on /dev/sda5 you would use
mke2fs -c -c /dev/sda5
Specifying -c twice will make the badblocks program check for write
access as well and this will be take twice the time of the read-only
There is no way to "remove" bad sectors entirely --- one can only
mark them as bad so that the operating system will ignore these
sectors while using the disk.
More information about the TAG