Note The -b 512 is to align blocksize to 512 so you can use the number reported by this command as input to dd as explained in the forums post Run the following command badblocks -sv -b 512 The following command should return no output. Unmount all the file-systems in that disk. If you click on the disk name in the list displayed in the left-side panel, the device name can be read against “Device :” on the right. This is displayed in the Disk Utility ( System -> Administration -> Disk Utility). This is of the form /dev/hdc or /dev/sdb depending on the disk type. Note the device file corresponding to file system. Typically the sector # is not reported even by file checking programs since it is abstracted and handled internally by the file system.īut if you must find the offending badblocks you can use the below steps : The tip in the ubuntuforums post you have quoted is safe so long as you know exactly which sector has gone bad and have a compelling reason to fix it. As you can see it states remapping is done on the event of write failure so the next time it tries to attempt to write to it, it will get remapped.Ĭould you state the larger purpose behind doing this ? Apart from the concern on the blocks requiring remapping, is there any other annoyance / problem you are trying to solve by doing this ? IMO the filesystem should automatically take care of it in due course, especially since you have run the self test.
0 Comments
Leave a Reply. |