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 - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 03-02-2005, 05:32 PM   #1
redbeansnrice
Member
 
Registered: Aug 2004
Location: Eastern Shore
Distribution: Slack 10.1
Posts: 36

Rep: Reputation: 15
wipe hda


I've been having a little trouble with a Slack install.
I searched around LQ to see how to go about completely wiping out the hda before I try and install again, and I found a couple different commands for this:

dd if=/dev/zero bs=4k of=/dev/hd?
and
dd if=/dev/zero of=/dev/hd? bs=512 count=1000
and simply
dd if=/dev/zero of=/dev/hd?

I understand the last one well enough, but in the first two, what does the "bs=512/4k and count=1000 do? and do I need to do this to completely erase hda?

I would guess the bs= is setting up for a boot sector?

thanks,
Michael
 
Old 03-02-2005, 05:35 PM   #2
uman
Member
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 15
No, bs= is not for setting up a boot sector. I'm not exactly sure what it does, but for your purposes I'm sure either command will be fine.
 
Old 03-02-2005, 06:52 PM   #3
redbeansnrice
Member
 
Registered: Aug 2004
Location: Eastern Shore
Distribution: Slack 10.1
Posts: 36

Original Poster
Rep: Reputation: 15
I simply did:
dd if=/dev/zero of=/dev/hda

Anyway to check that its all wiped clean, or do I just trust it is?

thanks,
Michael

Last edited by redbeansnrice; 03-02-2005 at 07:38 PM.
 
Old 03-02-2005, 10:55 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
bs= block size
bs=1024 = bs=1k

bs=512k count=2048 =1MB

This is gonna wipe our your MBR also -restore with fdisk or cfdisk.
 
Old 03-02-2005, 11:17 PM   #5
redbeansnrice
Member
 
Registered: Aug 2004
Location: Eastern Shore
Distribution: Slack 10.1
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
bs= block size
I knew it stood for something!

Since I didn't specify a block size, what happened? is there a default? or does this just mean there's more I'll have to do with fdisk?
I'm really getting into new territory with this.

I noticed on a previous install, by accident, that typing "setup" while in fdisk I can specify number of cylinders and blocks and so forth. This is something I'll have to do?

thanks.

*****EDIT******
I specify block size when I'm formating the drives, yes? When I'm doing the install it asks for this with the default of 4096?


Last edited by redbeansnrice; 03-02-2005 at 11:22 PM.
 
Old 03-03-2005, 12:48 AM   #6
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
The combination that works for me is

dd if=/dev/zero of=/dev/hda bs=512 count=1

Although as this totally wipes the disk, I need to install LILO to the MBR to get Slack to boot from hda.
 
Old 03-03-2005, 05:59 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
block size defaults to 1k, but it doesn't really matter as formatting will overwrite it and fdisk will overwrite the MBR.
No need to reset cylinders and heads unless it is wrong -you can get these options under fdisk 'option -x' for advanced setup.
Do use fdisk instead of cfdisk for best results.
 
  


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
Reinstall lilo to hda, using hda lilo.conf tomjermy Linux - General 1 03-16-2005 05:27 PM
how to wipe out Lilo dejavu_01 Slackware 2 05-14-2004 02:45 PM
how to wipe a drive??? trey85stang Slackware 13 05-02-2004 03:58 PM
difference between hda and hda@ saurav_gohain Linux - General 1 07-08-2003 02:06 AM
Complete HD Wipe Brianstech Linux - Software 16 05-27-2003 07:02 PM

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

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