LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-02-2007, 05:58 PM   #1
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Rep: Reputation: 31
Isolate bad sectors on an ext3 partition?


I think I may have a couple of bad sectors on my hard drive. Sometimes I run into read errors when I burn a DVD or try to copy even though all the permissions are set correctly. And after formatting the partition I still sometimes get the same errors.

Is there a way to find and isolate bad blocks or sectors on an ext3 partition?

Your help would be greatly appreciated.
 
Old 05-02-2007, 06:08 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
man 8 badblocks
 
Old 05-02-2007, 06:24 PM   #3
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You could reformat using this command:

mke2fs -j -c /dev/hd?

the -c option stands for "check"; it will look for bad spots and make them inaccessible.

There exists also a command which does not reformat but simply checks for bad blocks:

badblocks /dev/hd? number-of-blocks-on-the-device

If it's not the disk, you may have to take a closer look at your RAM. A faulty stick of those is a notorious source of read/write errors.

Last edited by jay73; 05-02-2007 at 06:29 PM.
 
Old 05-02-2007, 09:44 PM   #4
jludwig
Member
 
Registered: Feb 2004
Distribution: FC6
Posts: 32

Rep: Reputation: 15
The drive might be failing. Check the drive out using smartctl;

[root@localhost ~]#smartctl --all /dev/hda
 
Old 05-04-2007, 03:31 PM   #5
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
Thank you very much for your help, folks!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bad sectors tuxombie Linux - Hardware 3 01-29-2005 01:05 PM
Bad Sectors on Linux Partition svoltmer Linux - Newbie 1 08-06-2004 10:45 PM
Windows partition has bad sectors. Will 'dd' work in place of low level format? gkneller Linux - Software 5 02-26-2004 11:35 PM
bad sectors in windows partition okok Linux - Hardware 1 05-12-2002 08:21 AM
Bad sectors blystovski Linux - Software 1 10-17-2001 12:18 PM


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