LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-01-2004, 07:04 PM   #1
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
Question how to wipe a drive???


My harddrive has deveolped a few bad sectors.. causeing some major probs with my Slackware install. Now with windows I could do a full format and have it remove bad blocks or eracse them or something and I could again use the drive...

I cannot figure out how to do this w/ slackware or linux. I have tried formatting and repartioning.. but everytime I try to install it hangs about 10% into the install... (this happens with slackware, mandrake & redhat)

Does anyone know what I should do?? I would use a win98 bootup disk.. but I dont have one anylonger and would perfer to let linux perfrom this task

thanks
trey

p.s. DSL kicks
 
Old 05-01-2004, 07:14 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
1. You shouln't use a hd having bad sectors. There are probably coming more and your data is not in safe. By a new one.

2. If you want to, you can use -c parameter for mkfs when making the filesystem (aka formatting) to run a badblock check and mark them bad for the drive.
 
Old 05-01-2004, 07:30 PM   #3
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Get a new drive; this is trouble waiting to happen
 
Old 05-01-2004, 07:36 PM   #4
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Quote:
Originally posted by odious1
Get a new drive; this is trouble waiting to happen
lol.. I have used drives with bad sectors before. I do not keep anything life or death on my system anyways, so I will wait to get a new drive if i cant get this one to work again
 
Old 05-01-2004, 08:12 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
get the low level formatter for that brand of drive. that's way better than what you're planning to do. hard drives come with extra sectors on them, and the low level formatter can remap the bad sectors to the unused space.
 
Old 05-01-2004, 08:22 PM   #6
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
When you install Slackware, you will come to a part where you choose a file system for each of your partitions. You can have it check for bad blocks then. It's one of the options that you are given.
 
Old 05-01-2004, 09:07 PM   #7
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Quote:
Originally posted by whansard
get the low level formatter for that brand of drive. that's way better than what you're planning to do. hard drives come with extra sectors on them, and the low level formatter can remap the bad sectors to the unused space.
Nowadays HD:s do that automaticly, bad sectors start to emerge to the user/OS only after the spare space is totally used.
 
Old 05-01-2004, 10:22 PM   #8
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
ok.. I tried all of the above suggestions.. nothing will install to this drive.... I will be purchasing a new drive... & looks like I will be using DSL for a few days (this thing is super fast when loaded into ram)

Thanks for all the suggestions.
 
Old 05-01-2004, 10:45 PM   #9
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
Before you use cfdisk or fdisk and after you have log in as root run this command
"dd if=/dev/zero of=/dev/hda bs=512 count=1"

This basically "zeros out" your partition table. I found I had to do this inorder to install Slackware over a Redhat or Mandrake distribution. Note that command may need to be changed if you are using scsi drives or have several drives.
 
Old 05-01-2004, 11:00 PM   #10
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Quote:
Originally posted by shepper
Before you use cfdisk or fdisk and after you have log in as root run this command
"dd if=/dev/zero of=/dev/hda bs=512 count=1"

This basically "zeros out" your partition table. I found I had to do this inorder to install Slackware over a Redhat or Mandrake distribution. Note that command may need to be changed if you are using scsi drives or have several drives.
I'll give this a whirl tomorrow! thanks for the suggestion!
 
Old 05-02-2004, 02:49 AM   #11
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Quote:
Originally posted by shepper
"dd if=/dev/zero of=/dev/hda bs=512 count=1"
Is that sorta like the Star Trek 2nd Generation episode where Beverly Crusher is stuck in a warp bubble and her whole universe starts disappearing around her?

You're logged in as root and then start zeroing out all the bits around you on the hard drive until your root existence disappears?

Hmmm.... how does it continue once the dd command location on the hard drive has gone to zeroes?

Just curious.
 
Old 05-02-2004, 12:28 PM   #12
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Go to the site of your HD brand. You'll probably find a tool that can help you, like powermax for maxtor...
 
Old 05-02-2004, 02:54 PM   #13
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
The bitsize and count options limit the zeros to the first sector which is where Redhat and Mandrake put their boot loader. The command just zeros out the MBR. Then when you run cfdisk you start with a clean partition table.
 
Old 05-02-2004, 03:58 PM   #14
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Problem resolved... it was bad RAM!
 
  


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
Wipe Hard Drive Prior to Install? usaf_sp SUSE / openSUSE 2 10-27-2005 01:49 PM
Does the Solaris 10 installer have to wipe the whole hard drive? Eerath Solaris / OpenSolaris 8 07-27-2005 10:15 AM
How can I wipe the hard drive between partitions? tstrickland Mandriva 2 06-14-2005 10:00 PM
Wipe hard drive and resotre windows? + Backup nandish Linux - Newbie 1 10-03-2004 06:33 AM
how to wipe MBR on slave drive from windows? Ebenonce Linux - Newbie 9 08-16-2004 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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