I finally decided to replace Windows Vista by Ubuntu. I needed several attempts as I am not experienced with disk partitions. I want to have only one partition with ubuntu installed there. I managed to install ubuntu. However, I have three partitions instead of only one, please look at the picture.
I want to delete two redundant partitions so that only one remains.
Details on the partitions:
Partition type: Linux (Bootable); Contents: Ext4 (version 1.0) — Mounted at Filesystem Root
Partition type: Extended; Contents: Extended Partition
Partition type: Linux swap; Contents: Swap (version 1) — Active
I guess that I can keep only the first partition and delete the others. However, when I try to delete one of those two partitions, I receive the following error message:
Error deleting partition: Error deleting partition /dev/sda2: Command-line `parted --script "/dev/sda" "rm 2"' exited with non-zero exit status 1: Warning: Partition /dev/sda2 is being used. Are you sure you want to continue? (udisks-error-quark, 0)
What can I do now?