LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   bad blocks (https://www.linuxquestions.org/questions/linux-general-1/bad-blocks-383713/)

bong.mau 11-16-2005 12:01 PM

bad blocks
 
Hi

i'm using an hard disk with some bad blocks.....
what is the best command & parameter to flag these blocks as permanently
unusable ?
thanks in advance

Maurizio

jailbait 11-16-2005 02:17 PM

"i'm using an hard disk with some bad blocks.....
what is the best command & parameter to flag these blocks as permanently
unusable ?"

If you are creating an ext2 or ext3 file system I recommend that you use mke2fs with the -c option. See:
man mke2fs

If you are using reiserfs then you should use badblocks to create a file of bad blocks. Then feed the bad block file to mkreiserfs using the -B option. See:
man mkreiserfs

badblocks will find and list bad blocks but it will not fix them. See:
man badblocks

---------------------------
Steve Stites


All times are GMT -5. The time now is 07:58 AM.