LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-11-2006, 09:31 PM   #1
zoetrope87
LQ Newbie
 
Registered: Jan 2006
Distribution: SUSE 10.0
Posts: 7

Rep: Reputation: 0
Exclamation HARD DISK BAD SECTOrS


hello i would like your help
im a newbie on linux suse 10
im looking for a program that allows me to explore sectors on my HDD
like a SCANDISK, but one that can actually fix bad sectors or at least mark them...

i have couple of bad sectors and sometimes my kde3 just freeze

hope you can help me i just neeed a program or command name and small instructions if it isnt that much trouble.

LVM
 
Old 01-11-2006, 10:14 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Download the hard drive diagnostic utility from the hard drive manufacturer's website. All the main hard drive manufacturers have them available(seagate, maxtor, wester digital, hitachi/ibm). The manufacturer's utilities are best for this job.
 
Old 01-12-2006, 09:08 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
Welcome to LQ!

You can run badblocks and save the bad sectors to a file; then use mkfs to make sure the filesystem won't use those sectors.

Last edited by Bruce Hill; 01-12-2006 at 09:10 AM.
 
Old 01-12-2006, 05:55 PM   #4
zoetrope87
LQ Newbie
 
Registered: Jan 2006
Distribution: SUSE 10.0
Posts: 7

Original Poster
Rep: Reputation: 0
Exclamation ok how to add MKFS the bad block info?

how to do MKFS not to read the bad blocks?

thanx
 
Old 01-12-2006, 05:59 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
To be quite honest with you I've never done it,
but was told to by a guy who's been Slacking
longer than me. See if you can figure it out by
reading the man pages; in the meantime, maybe
one of them gurus will show up. I have a drive
in a lappy with a bad block ... just haven't
stopped to do this yet.
 
Old 01-13-2006, 12:51 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
You should use the "-c" option with mkfs:

# mkfs -ct <filesystem> <partition device file>

"c" causes mkfs to check for bad blocks before creating the filesystem and not use those blocks.

However, I would still recommend using the manufacturer's hard drive utilities to thoroughly check the drive. The presence of noticable bad blocks such that it's interfering with proper functioning is a sign that the drive may be on it's way out. Back up your data and check the drive out. It may be time to start looking at new hard drives.
 
Old 03-02-2007, 05:14 PM   #7
balaku
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
bad sectors?

If you have problems with hdd bad sectors I found something at fix-hdd-bad-sectors.com Good luck I hope you will resolve your problem.
 
Old 03-02-2007, 05:16 PM   #8
balaku
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
bad sectors...

hdd bad sectors?
 
  


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
HARD DISK BAD SECTOrS zoetrope87 Linux - Software 2 01-12-2006 03:54 AM
How to remove bad sectors on hard disk ? emailssent General 4 10-13-2004 09:35 AM
Hard Disk Starting Sectors robhargreaves Linux - Hardware 1 05-20-2004 03:58 PM
Reading raw hard disk sectors villie Programming 4 05-13-2004 12:18 AM
How to I check a Linux formated hard drive for bad sectors NewtoLinuxWorld Linux - Hardware 1 02-27-2004 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:32 AM.

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