Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to delete my extended partition of ext4 in ubuntu. I using disk utility but can't delete or format. please tell me the procedure through terminal.

share|improve this question
1  
What error are you getting in Disk Utility? You can use gparted. Install it using sudo apt-get install gparted if it's not installed, and run it from the dash. It's a partitioning tool. Find your partition and right click > delete. However, you have to unmount the partition first (right click it > unmount). You can't however unmount partitions mounted as / or /home, you'll have to use a LiveCD for that. But, I hope you're not trying to delete /, because that's your Ubuntu operating system, unless that's your intention. –  Alaa Ali Jun 20 '13 at 6:14

2 Answers 2

Here are details on fdisk command

Don’t edit partitions while they’re in use. If you want to edit system partitions, boot from a live CD first.

Start with sudo fdisk -l and determine the name of the partition you want to delete (sda1, sda2, etc).

Then, sudo fdisk /dev/sdax with 'sdax' being the drive you would like to delete. This will enter command mode.

After in command mode, (type 'm' if you want the help menu) you will use 'p' to delete the partition. After this, it prompts for partition number, which is just the 'x' from 'sdax'. Then use 'w' to actually write the change.

share|improve this answer

you could use Gparted ( search it in ubuntu software center )

share|improve this answer
    
any reason why this is down voted? –  sureshvv Jan 11 at 10:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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