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.

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

2 Answers 2

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 at 21:25
1  
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 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

 
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.