Good question. I would think that it might not be possible on a live system. Access to the nand (mtd device) may only be possible before it is mounted and chrooted to. Perhaps one could using the update.zip method (i.e. creating an update.zip file with the appropriate commands to do the bad block checking and dumping the log somewhere in the event there are bad blocks, then one could create another update.zip file with the commands to mark them as bad. I think the commands are listed in vicinc's thread about his borked device which had bad blocks in it)
http://www.linux-mtd.infradead.org/doc/ubifs.html
http://www.sakoman.com/OMAP/how-to-w...e-to-nand.html