LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-26-2004, 06:38 AM   #1
gkneller
LQ Newbie
 
Registered: Jan 2004
Location: UK
Distribution: Slackware & Debian
Posts: 27

Rep: Reputation: 15
Windows partition has bad sectors. Will 'dd' work in place of low level format?


Not sure if this is a hardware or software question, so apologies if it's in the wrong place.

I don't want to lose all the data on my entire disk, which is what would happen if I used the manufacturer's utility (the drive is a 60GB IBM Deskstar). Can I use the dd if=/dev/zero of=/dev/hda3 to do the same thing?

Alternatively, does anyone know of a way to repair a FAT32 fs under Linux?

Thanks for any help.
 
Old 02-26-2004, 07:57 AM   #2
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
which OS detects the problem - win/linux?
have you booted win? does win detect the problem?
have you tried the win disk repair?
 
Old 02-26-2004, 08:46 AM   #3
gkneller
LQ Newbie
 
Registered: Jan 2004
Location: UK
Distribution: Slackware & Debian
Posts: 27

Original Poster
Rep: Reputation: 15
Sorry, should have been more precise.

:: Cannot boot into Windows, can boot into Linux (lilo is the boot manager).
:: If I use a Windows startup disk and run scandisk, it freezes, then tells me that it can't continue.
:: I can access some of my Windows files from Linux (but naturally not the ones I want! ), but more often than not the disk just churns away and makes Linux unresponsive.
:: The IBM utility that I mentioned above found various bad sectors on the disk, but could not repair them.
:: As far as I can tell, the bad sectors only exist in the Windows partition.
:: If I stay away from the Windows partition, Linux (Slackware 9.1, incidentally) runs as well as it always has.

This has happened a couple of times before (I'm going to think very carefully before buying another IBM disk), and in each case I've just used the IBM low level format utility to wipe the entire disk, which makes it fully usable again.

I was just hoping that someone knew of a utility (dd seems the obvious choice, but will it work?) which could do the same job from Linux, so I wouldn't have to reinstall everything just to make Windows work again.
 
Old 02-26-2004, 12:41 PM   #4
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
If you have sectors going in the win partition, your Linux partitions will follow. Often, loosing sectors is an indication that either the physical harware inside the drive is failing (stepper motors, etc.), or that the platter is oxidizing, which will spread throughout the whole disk surface.

You need to copy the good Linux user partitions to a new drive ASAP. As for the win stuff, I'd recommend a good stand alone disk recovery program. I haven't used one in a long time and so I can't make recomendations. It seems to me though, that you may not be able to pull info off this drive at all soon. Get what you can now, especially your /home partition (you can always transplant that into a fresh install of Linux and keep your user data).
 
Old 02-26-2004, 04:25 PM   #5
gkneller
LQ Newbie
 
Registered: Jan 2004
Location: UK
Distribution: Slackware & Debian
Posts: 27

Original Poster
Rep: Reputation: 15
JaseP, you were absolutely right - bad sectors across the entire disk not long after Windows failed. Managed to save most of my stuff though, so thanks very much for the warning.
 
Old 02-26-2004, 11:35 PM   #6
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
You're welcome.

Hard Disks fail for 3 reasons:

1) Hardware mechanisms (stepper motors that position the heads for example) fail
2) Imperfections on the platter (often a kind of "rusting" that spreads rapidly)
3) Accidents (like voltage spikes or dropping)

In my experience there are two models of hard drive that are best.
They are Seagate and Western Digital.
Maxtor comes close but they are too delicate.
Western Digitals are noisy and tempermental in their jumper settings.
 
  


Reply



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
Low-level format under Linux with an AHA-1522 rcase5 Linux - Hardware 2 04-12-2005 02:33 PM
Low Level format a Compact Flash ? K@rl` Linux - Hardware 4 09-07-2004 08:05 AM
How do I low-level format a SCSI drive on Aurora Sparc Linux v1.0? JustinCase Linux - Hardware 3 03-02-2004 11:22 PM
Perform low level format of a floppy disk in C juby Programming 4 01-09-2003 07:47 PM
bad sectors in windows partition okok Linux - Hardware 1 05-12-2002 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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