Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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
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.
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 ?
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.
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.
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
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 ?
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.
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.