Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-19-2003, 06:26 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
linux fdisk


im very new to linux and im currently studying a unit at university that covers the installation and configuration of it.

we were told that this command..

dd if=/dev/zero of=/dev/hda bs=512 count=2000
would remove any information about previously install partitions. i was wondering if anyone could break that line down for me so i can see what each of those commands actually does.

thanks for your help

Old 10-19-2003, 07:18 AM   #2
Registered: Aug 2002
Posts: 14,736

Rep: Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476
Since this is your first post let me welcome you to the forum.

Have you googled yet? You will find lots of information by searching the web or this forum.

For reference: See man pages for specific help on commands.

/dev/zero is nothing more then writing zeros.
Old 10-19-2003, 07:27 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
thanks for your reply. i found a site that explained what each command did.

if anyone is interested..

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

dd -- data dump command
if=/dev/zero -- sets input file (/dev/zero)
of=/dev/hda -- sets output file (/dev/hda)
bs=512 -- block size, 512 = 1 sector
count=20000 -- number of blocks to copy (of size 512 bytes)
Old 10-19-2003, 10:29 AM   #4
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Rep: Reputation: 15
thats good dude ....

thx ...


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
How to use Fdisk in Linux gardenair Linux - Newbie 6 03-28-2005 01:10 PM
Linux Fdisk help gardenair Linux - Newbie 1 03-26-2005 01:38 PM
Linux FDISK Mug-Root-Beer Linux - General 4 12-31-2001 04:51 AM
fdisk in linux antken Linux - General 1 01-22-2001 07:00 AM

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration