LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   linux fdisk (https://www.linuxquestions.org/questions/linux-general-1/linux-fdisk-105843/)

m1ke_81412 10-19-2003 06:26 AM

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.

michaelk 10-19-2003 07:18 AM

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.

m1ke_81412 10-19-2003 07:27 AM

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)

porous 10-19-2003 10:29 AM

thats good dude ....

thx ...


All times are GMT -5. The time now is 03:14 AM.