LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2006, 01:02 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
list known bad blocks.


Im trimming my badblocks with /dev/hda/.

>When you suspect that additional sectors have gone bad you should run 'e2fsck -c' to add any newly bad sectors to the bad blocks list that is maintained as part of the the filesystem's metadata.

I read this line while searching for badblocks in harddisk in google.Then where is my filesystem metadata from which i can find my known badblocks.And i wanna to add the current list by

e2fack -c /dev/hda8

Thanks :-)
 
Old 02-19-2006, 08:50 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
The bad block list on a disk partition is not manually maintained by the system adminitrator. You do not edit it. The bad block list is maintained by the file system checking utility that is appropriate for the file system type. The ext2 file system maintains its bad block list using the e2fsck utility, for example. The e2fsck utiltiy only works on ext2 file systems. Do not use it for any other type of file system. Each type of file system has its own version of fsck.

It doesn't hurt to run e2fsck -c on an ext2 file system when the partition is NOT mounted. You can do this as often as you wish. However you probably don't NEED to do it more than once in five years. Doing this once a year would be perfectly acceptable to maintain a busy disk with a lot of file creates, edits, and deletions.

As a rule I only check for bad blocks when I format a partition. The -c option causes the mkfs utility to check for bad blocks before it creates the file system in a partition. I can tell you that it takes a long time to perform the bad block check in a large partition.

Last edited by stress_junkie; 02-19-2006 at 08:55 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bad blocks bong.mau Linux - General 1 11-16-2005 02:17 PM
ReiserFS with bad blocks bruce ford Linux - Software 2 07-23-2005 04:15 AM
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
RedHat 9 with Bad blocks? chrismc2 Red Hat 3 01-22-2004 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 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