I booted Ubuntu 12.10 32bit from pendive.

I would like to re-partition my hard drive using gparted, but it requires root privilege* that I could not provide, because there is no password set.

(*) Root privileges are required for running gparted.

What can I do?

  • Is this a Live environment? – Thomas Ward Nov 13 '12 at 14:43
  • @LordofTime I don't know, but I think no. – user65130 Nov 13 '12 at 15:03
  • @LordofTime Live session user - this one can I chose if I install something in Ubuntu Software Center – user65130 Nov 13 '12 at 15:28
  • Are you using the ubuntu@ubuntu user, or are you on some other user? – Thomas Ward Nov 15 '12 at 13:39

How are you running gparted? You can run it by opening a terminal and typing

sudo gparted

this will run it as root/superuser without having to set a root password.

  • I get this:admin@ubuntu:~$ sudo gparted [sudo] password for admin: – user65130 Nov 13 '12 at 15:29
  • admin@ubuntu's not the ubuntu@ubuntu user. the ubuntu@ubuntu user will have sudo. how're you getting to admin@ubuntu? – Thomas Ward Nov 15 '12 at 13:37

If you have booted from and are using a Live CD or USB there should be no password.

I would suggest the following :

Try using Disc Utility instead of Gparted.

If that fails then you should download the Ubuntu.iso again or perhaps Gparted Live, check the md5sum and create a new bootable CD / USB using Unetbootin maybe, then boot it and try again.


What are you trying to do exactly?

You can partition your HDD with the Ubuntu installer in any way that would be in the framework of a new Ubuntu installation e.g. the "something else" option when you're asked whether you want to replace existing OS or install alongside etc.

If you simply want to partition your harddrive for other purposes, Gparted Live might be a better option as it is more flexible.

  • 1
    he's in the live environment. – Thomas Ward Nov 15 '12 at 13:40
  • Sure and that's why I asked what he wants to do. Is he in the live environment in preparation for a hard install or does he wish to remain live and simply administer his HDD? I made suggestions for both scenarios. – Simon Hoare Nov 16 '12 at 7:28

If this is a Live environment, then sudo will still work, the ubuntu user on the LiveUSB can use sudo.

The command for gparted (which is already included in the Live environment) is: sudo gparted in terminal, or alt+f2, then gksudo gparted.


you should create a root password if it is a fresh install or have not been created yet. in a terminal -> sudo passwd root -> follow the instructions, define your new password then you can use that. Hope it helps.

  • Again, there is no reason to set a root password. – psusi Nov 15 '12 at 19:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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