Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Thanks

share|improve this 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
add comment

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

2 Answers

up vote 3 down vote accepted

Run

cfdisk /dev/sdb

then use command "d" for the each partition.

    man cfdisk
    COMMANDS
    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
add comment
dd if=/dev/zero of=/dev/sdb bs=512 count=1
share|improve this answer
add comment

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