Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

just wondering how I can unpartition a hard drive under debian.

i recently partitioned it using

cfdisk /dev/sdb

and would like to revert what I did.


share|improve this question

closed as off topic by EEAA, Steven Monday, Michael Hampton, HopelessN00b, Iain Oct 7 '12 at 17:37

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

If revert means 'undo all my changes, and automatically put things back the way they were before', that's not going to happen. – Mike Renfro Jul 18 '11 at 11:36
up vote 3 down vote accepted


cfdisk /dev/sdb

then use command "d" for the each partition.

    man cfdisk
    d      Delete the current partition.  This will convert the current partition into    free space and merge it with any free space immediately surrounding the current partition. A     partition already marked as free space or marked as unusable cannot be deleted.
share|improve this answer
dd if=/dev/zero of=/dev/sdb bs=512 count=1
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.