LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 0
linux fdisk


hi

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..

Code:
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

mike.
 
Old 10-19-2003, 07:18 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,816

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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.

http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?dd

For reference: See man pages for specific help on commands.
http://www.tldp.org/tldp-redirect.php?url=/

/dev/zero is nothing more then writing zeros.
 
Old 10-19-2003, 07:27 AM   #3
m1ke_81412
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..

Quote:
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
porous
Member
 
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

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

thx ...
 
  


Reply


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 02:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration