El 2004-12-12 a las 20:46 +0100, escribí:
Los maneja (no en forma automatica): http://www.namesys.com/bad-block-handling.html
Si es el enlace que he leido hace ya tiempo - es que ahora no estoy en linea - no vale. Lo que hace el usuario es marcar como en uso el sector fatidiado, de manera manual, lo cual evita, efectivamente, que el sistema lo vuelva a usar. El problema es que al primer chequeo del sistema de ficheros (reiserfsck) detecta que el bloque no está realmente en uso, y lo vuelve a activar: y estamos otra vez con el problema del principio.
Ya he mirado el enlace en cuestión. A ver, dice: * I have bad blocks on my hard drive, what do I do? You can try to write to all bad blocks with dd or dd_rescue program, the drive will probably be able to remap them to good ones (modern drives do this in response to write, but not reads). Understand that drives that start having problems with bad blocks very often rapidly decay and go bad, and consider buying a new drive to save yourself from experiencing that. Vale, esto es lo que dije yo de forzar el remapeo de los sectores malos por parte del propio disco, simplemente escribiendo en ellos con dd. Ahora, estas tres recomendaciones son nuevas: * I have bad blocks in the system reiserfs area, what do I do? ReiserFS can handle only those bad blocks that belong to the data area, and cannot handle bad blocks of the reiserfs system area -- super block, journal, bitmap. If the drive does not remap them (see I have bad blocks on my hard drive, what do I do), then you cannot use this partition with reiserfs, use dd_rescue to make a backup, run reiserfsck on the backup. * How can I create a reiserfs filesystem on the block device with bad blocks? If you have the list of bad blocks of the device in the file (see How can I get the list of bad blocks on my harddrive), then you can use the following: mkreiserfs --badblocks file device Remember that the block size of the reiserfs is 4k by default, specify the same block size to badblocks program. O sea, dicen que reiserfs puede manejar errores, pero sólo si están en la zona de datos. Esto es nuevo para mi, no lo sabía: se que no existía antes, lo investigué, pues me hizo falta. Es esta opción del manual, o sea, la 9.1 lo soporta: -B | --badblocks file File is the file name of the file that contains the list of blocks to be marked as bad on the filesystem. This list can be created by /sbin/badblocks -b block-size device. Y la áagina web sigue diciendo: How can I check a reiserfs filesystem with bad blocks? If you want to just check a filesystem, there should be no extra option to reiserfsck. If you need to fix the list of bad blocks on the reiserfs partition, use: reiserfsck --badblocks file device where file contains the list of ALL bad blocks on the device. If you need to rebuild a reiserfs partition on the block device with bad blocks, you ALWAYS must specify the FULL list of bad blocks: reiserfsck --rebuild-tree --bad-badblocks file device where file contains the list of ALL bad blocks on the device. (see How can I get the list of bad blocks on my harddrive) O sea, también se puede tratar de arreglar una partición ya existente. El manual dice lo siguiente (no existe --bad-badblocks en la 9.1). --badblocks file, -B file This option sets the badblock list to be the list of blocks specified in the given `file`. The filesystem badblock list is cleared before the new list is added. Can be used with --fix-fixable to fix the list of badblocks (see debugreiserfs -B) and must be given with --rebuild-tree option every time if the block device has bad blocks. O sea, muy interesante. Es un manual, pero ya hay tratamiento de los bloques defectuosos en una reiser, que antes no lo había. Incluso mencionan un programa, "reiserfs-add-badblock" para marcarlos en un sistema en marcha - pero eso no está en la 9.1, ignoro si la 9.2 lo tiene. -- Saludos Carlos Robinson