LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Also eliminate partition table? (https://www.linuxquestions.org/questions/linux-newbie-8/also-eliminate-partition-table-291940/)

jeopardyracing 02-18-2005 01:19 PM

Also eliminate partition table?
 
If do this:

dd if=/dev/zero of=/dev/hda1

have I zeroed the entire drive including the partition table?

david_ross 02-18-2005 01:21 PM

hda1 is only the first partition, you would need to do the whole drive.

jeopardyracing 02-18-2005 01:25 PM

Single partition
 
So if I do the same command, but just use 'hda' have I nabbed everything on the entire disk, partition table included?

david_ross 02-19-2005 08:03 AM

It should do.

jeopardyracing 02-21-2005 06:21 AM

Yup!
 
I formatted using Partition Magic, then used the dd command with just 'hda' and went back into Partition Magic and sure enough, there was nothing but unallocated space. Cool!


All times are GMT -5. The time now is 08:01 PM.