LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 12-01-2006, 06:41 AM   #1
_Lukes
LQ Newbie
 
Registered: Jun 2006
Location: Bedzin, Poland
Distribution: Debian
Posts: 16

Rep: Reputation: 0
Dealing with bad blocks


Hi,

I have my linux installed on a single ext2 partition, unfortunately there are also bad blocks. Is there any possibility to re-partition the hard drive, to move all the bad blocks to separate partition ?? If yes how can I do this?

Last edited by _Lukes; 12-01-2006 at 07:32 AM.
 
Old 12-01-2006, 07:23 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
You can have the blocks marked as bad so they won't be used. You'll lose that capacity from your partition, and the data which was on them before they went bad will be lost.

A word of caution - when hard disks start to fail the rot often spreads. It's not always the case - I have a hard disk which got bad blocks a year into it's [so far] 3 year life, and since then no more have gone bad.

If the device has important data on it, it's probably wise to replace it.
 
Old 12-01-2006, 07:45 AM   #3
_Lukes
LQ Newbie
 
Registered: Jun 2006
Location: Bedzin, Poland
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
Yes, but if I mark them, they will only be separated temporarily, till I completely remove the partition. Am I rigth ? My idea is to find all the bad blocks on my hd and 'catch' them on a separate one. I could even format ext2 and reinstall linux if I would know that my idea is possible.
I have same situation as you, long ago bad blocks appeared, but they do not spread. So I want to get rid of them once and for all
 
Old 12-01-2006, 08:32 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
Bad blocks aren't something to do with the filesystem - they are physical problems with the drive. Reformatting and re-partitioning won't help - the drive will still have bad patches on it.

When you are formatting a partition drive there's often an option to do a surface scan when formatting. This will identify and mark bad blocks. This "slow" format should always be done on critical hardware to detect defects, and it's prudent to do it on all older hardware.
 
Old 12-01-2006, 08:34 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
Having said that, some tools may be able to apparently erase badblocks. In fact what happens is that most modern drives have some low-level sectors of the drive in reserve which can be used to replace faulty ones. In fact modern drives do this on-the-fly without any apparent effect at the file-system level. The SMART interface allows software to query the drive and pull of statistics about this sort of activity.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
list known bad blocks. bruse Linux - Software 1 02-19-2006 08:50 AM
bad blocks bong.mau Linux - General 1 11-16-2005 02:17 PM
RedHat 9 with Bad blocks? chrismc2 Red Hat 3 01-22-2004 07:48 AM
e2fsck and bad blocks MunterMan Linux - Software 0 11-23-2003 09:58 AM
Fixing Bad Blocks PionexUser Linux - Newbie 1 07-19-2003 04:00 AM


All times are GMT -5. The time now is 08:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration