LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-16-2005, 12:01 PM   #1
bong.mau
Member
 
Registered: Apr 2004
Posts: 391

Rep: Reputation: 30
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
 
Old 11-16-2005, 02:17 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bad blocks/disk pb nadine.mauch Linux - General 0 10-07-2004 02:49 AM
How to do a bad blocks check yelo Linux - General 2 04-02-2004 10:14 PM
fsck many bad blocks mjolnir *BSD 5 01-13-2004 06:35 AM
e2fsck and bad blocks MunterMan Linux - Software 0 11-23-2003 09:58 AM
bad blocks and cd tracks.. Cyth Linux - Software 0 04-08-2003 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration