LinuxQuestions.org
Visit Jeremy's Blog.
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 11-30-2005, 10:23 PM   #1
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
how can i partition around a bad sector ?


hey there,
i believe i have a problem with some bad sectors on my only installed hard disk
right now its formatted as hda1 / almost 40 gb
and hda2 /swap 250 mb

how could i find out what part of the disk is corrupt so i can format partitions around it and install linux on my computer ?

thanks
 
Old 12-01-2005, 12:39 AM   #2
teddymills
LQ Newbie
 
Registered: Jun 2004
Location: The Far side of Charon
Posts: 15

Rep: Reputation: 0
Short answer is.... dont

The drive will quite likely failure with more bad sectors, or fail completely.
Just get another new drive.
 
Old 12-01-2005, 01:32 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
man badblocks

Also, most disk manufacturers offer diagnostics for their drives; you might want to check that out as well. Good luck with it. As a general comment, if the bad sectors are numerous, it's probably a good idea to just replace it. Like a favorite pair of Levis, you might try to patch things up once or twice, but at some point, you just need to face the fact that you need a new pair of pants
 
Old 12-01-2005, 08:03 AM   #4
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
thanks, and rats !
guess i will bump over to newegg.
 
Old 12-01-2005, 10:36 AM   #5
Diagmato
Member
 
Registered: Jul 2005
Location: Cardiff
Distribution: Suse 10
Posts: 59

Rep: Reputation: 15
Why not simply do a zero write, or low level format? If its a maxtor drive, go to maxtors site and get the disc tools. Other manufacturers have versions for their hard drives.
 
Old 12-01-2005, 10:45 AM   #6
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
ok, i dont know if its a maxtor drive but i can open the case and look. no problem.
is there a command line tool that will let me do a zero write ? the hard drive is only a year and a half old. will a zero write fix bad sectors ?
thanks, by the way.
not like replacing it would be too much, but 40 bucks is 40 bucks, right ?
 
Old 12-01-2005, 10:57 AM   #7
finklewicz
Member
 
Registered: Mar 2005
Posts: 41

Rep: Reputation: 15
I don't know if it's worth the $89, but SpinRite has quite a reputation for repairing damaged harddisks. May be worth giving a try.
 
Old 12-01-2005, 11:14 AM   #8
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
probably a good idea, but not cost effective for me right now. i have all the data backed up. (thankfully) and right now its even operating, even though there is a 500 meg partition that i set up that i am not using right now. no big deal, but if i can fix it, i would like to.

thanks
 
Old 12-01-2005, 12:44 PM   #9
Diagmato
Member
 
Registered: Jul 2005
Location: Cardiff
Distribution: Suse 10
Posts: 59

Rep: Reputation: 15
the tools provided by manufacturers for performing low level formats are free.

When you do a low level format, you are completely re-writing the low level of the drive. This is replacing the level written by the factory, which is why it must be the tool from the manufacturer.

On the top of the hard drive, it will say the make/model of the drive.

Linuxquestions has a tutorial on zero writing Here. It is probably worth doing a zero write before a low level format (the latter takes a seriously long time - 40GB would probably take overnight and half a day). Zero write writes every single bit on the hard drive to a 0, so there would be absolutely nothing on the drive.
 
Old 12-01-2005, 01:19 PM   #10
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
looked at the tutorial, and it looks like what i am going to do first. i doubt that i will do the low level format. at all. just the zero write and see what i come up with. thanks
 
Old 12-01-2005, 01:48 PM   #11
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
ok another quick question.
whatever is wrong with the hard drive stays wrong with it after i reformat with ext3.
i tried this with the ubuntu install disk to just have it reformat and install and it failed.
but after i created the "bad partition" and used a different part of the drive to mount as / ,
it worked.

is a bad block or bad sector a physical problem on the drive or is it something that the zero might can fix ?

thanks
 
Old 12-01-2005, 02:41 PM   #12
Diagmato
Member
 
Registered: Jul 2005
Location: Cardiff
Distribution: Suse 10
Posts: 59

Rep: Reputation: 15
a zero write will return all bits on the drive to 0 - a normal format would just overwrite them. As it doesnt effect all bits, it most probably wont write over the bad sector.

Where that tutorial doesnt recommend low level format (which is true) its not caused problems here. Done it twice to one disc, before i heard of zero write. If there is a bad sector, and nothing else will fix it, then it wouldnt be much to lose to try it.
 
Old 12-01-2005, 03:13 PM   #13
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
solid advice, i will do the zero when i get home, and if it doesn't work, go ahead and do the low level.
maybe i will learn something. (rather fix the drive though)

thanks again
 
Old 12-02-2005, 08:45 AM   #14
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
hey gents,

did the zero fill last night and it seems to have worked. i was able to install ubuntu and run some programs this morning ( couldnt do that before) so looks as if everything is going to be ok.

thanks for your help !
 
  


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 sector woes :S kevingpo Fedora 4 07-07-2005 02:57 AM
Blocking Harddisk bad sector wood Programming 8 03-30-2005 07:32 AM
bad sector in HDD ??? hitesh_linux Linux - General 2 06-20-2003 03:54 PM
how to check for bad sector nakkaya Linux - General 1 01-16-2003 07:24 PM
work around a bad disk sector cyclist Linux - Software 1 09-25-2001 08:37 PM

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

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