Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

This is the problem I'm facing. Can any one suggest a solution

Error setting partition type after formatting: Error setting partition flags on /dev/sda2: Error spawning command-line `sgdisk --typecode 2:"ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" "/dev/sda"': Failed to execute child process "sgdisk" (No such file or directory) (g-exec-error-quark, 8) (udisks-error-quark, 0)

How to fix this ?

share|improve this question
what did you try to format ubuntu? – Avinash Raj Dec 20 '13 at 7:37

Try this:

sudo apt-get install gdisk

share|improve this answer
Can you explain the repository you are asking the OP to install? – sameetandpotatoes Mar 22 '14 at 21:25
The error message the OP cited says a number of things, but this is the key part: Failed to execute child process "sgdisk" (No such file or directory) So, assuming the issue is that sgdisk is not installed, it can be installed via the gdisk package. It worked for me. – Tom Lianza Mar 23 '14 at 0:16

If you are using the Ubuntu on hardisk, then it can cause many problems (Because the disk is in use?). I would recommend using a live CD/USB in this case. And the program that I often use is gparted.

share|improve this answer

Your Answer


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.