1

I've been trying to make partitions in my disk using the disk utility provided by Gnome. I've wasted the whole day yesterday searching this forum, other forums, other websites about HOW to use this utility in partitioning the HDD, but NOTHING... I came out with NOTHING. All I found was just material about its uses, how to open it and what it does. But nothing explains HOW to do the partitions. I don't want to improvise and end up breaking my machine. Can someone please tell me or even direct me to how I can use this utility to make a partition in my HDD? My HDD is 1 TB and it's in one single partition. My OS is 17.10.

1 Answers1

1

I found the answer here: https://itsfoss.com/switch-xorg-wayland/

Simply:

Use the command below

xhost +si:localuser:root

and then run the troublesome program with sudo like this:

sudo -H gparted

I tried it and it worked.

sudodus
  • 46,324
  • 5
  • 88
  • 152
  • 1
    Yes, this is the basic method that works in Wayland :-) But you should use sudo -H gparted (Always use sudo -H with graphical (GUI) programs. Otherwise your normal user ID's configuration files can be hijacked by 'root'.) – sudodus Mar 04 '18 at 14:08
  • Ok, so this means. First I put the command:

    xhost +si:localuser:root

    Then:

    sudo -H gparted

    Right??

    – Nermeen Hussein Mar 04 '18 at 14:10
  • Yes, that is correct. Or you can create a function gks according to this link, https://askubuntu.com/questions/961967/why-dont-gksu-gksudo-or-launching-a-graphical-application-with-sudo-work-with-w/961978#961978 save it and re-use it, which might be more convenient, if you intend to use elevated permissions with graphics in Wayland often. So please modify your answer to avoid confusing other people. – sudodus Mar 04 '18 at 14:13
  • 1
    @NermeenHussein Either that or issue xhost +si:localuser:root in a terminal window and then start gparted from the GUI (Win-key, type "gpar..." and click on gparted). – PerlDuck Mar 04 '18 at 14:14
  • What is a "GUI" please? Is this a program? – Nermeen Hussein Mar 04 '18 at 14:15
  • 1
    graphical user interface – sudodus Mar 04 '18 at 14:15
  • Thanks a lot for all your help. Is there a place that shows how I can use "GParted" to partition my HDD? Because that was my original question! – Nermeen Hussein Mar 04 '18 at 14:17
  • Search the internet with the phrase gparted tutorial and you will find several useful places. Select one that suits you and enjoy :-) – sudodus Mar 04 '18 at 15:06