Results 1 to 8 of 8

Thread: Cannot start gparted

  1. #1
    Join Date
    Jun 2008
    Location
    Sydney
    Posts
    7

    Default Cannot start gparted

    I've just installed openSUSE 11 x64 edition with Gnome. I cannot run gparted in it (I've installed it from "Software management".

    When I run it from the "Application Browser" - nothing happens. When I run it from the terminal by typing "sudo /usr/sbin/gparted" I have this error:
    alexk@ALEX-DESKTOP:~> sudo /usr/sbin/gparted

    (gpartedbin:20529): Gtk-WARNING **: cannot open display:
    alexk@ALEX-DESKTOP:~>
    What am I doing wrong? It used to work fine in 64-bit Ubuntu 8.04

  2. #2
    Join Date
    Jun 2008
    Location
    PHX
    Posts
    481

    Default Re: Cannot start gparted

    $ su
    # /usr/sbin/gparted
    <>---><^>

  3. #3
    Join Date
    Jun 2008
    Location
    34 04 17.35S 18 50 02.23E
    Posts
    266

    Default Re: Cannot start gparted

    Gparted is designed to run on boot. Normally you would burn an iso onto disk and then put disk in drive and restart. It is completely independent.
    Best is to use openSuse partition manager in yast. This makes it easier to set mount points.
    openSUSE Leap + KDE

  4. #4
    Join Date
    Jun 2008
    Location
    Sydney
    Posts
    7

    Default Re: Cannot start gparted

    Quote Originally Posted by Cryovac View Post
    $ su
    # /usr/sbin/gparted
    Works like a charm, thanks! BTW, why doesn't it work with 'sudo'?

  5. #5
    Join Date
    Jun 2008
    Location
    Sydney
    Posts
    7

    Default Re: Cannot start gparted

    Quote Originally Posted by Alastairo View Post
    Gparted is designed to run on boot. Normally you would burn an iso onto disk and then put disk in drive and restart. It is completely independent.
    Best is to use openSuse partition manager in yast. This makes it easier to set mount points.
    Yes I know, I have a gparted CD in case of emergency, but I just wanted to resize partitions on my second HDD that has only data partitions.

    Thanks for pointing at the Yast partition manager, it's much easier than editing fstab by hand

  6. #6
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Cannot start gparted

    Quote Originally Posted by alexkay View Post
    Works like a charm, thanks! BTW, why doesn't it work with 'sudo'?
    sudo is downgraded a bit compared with su. As opposed to Ubuntu where sudo is root, in Suse it's not quite root.
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  7. #7
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Cannot start gparted

    Quote Originally Posted by alexkay View Post
    Works like a charm, thanks! BTW, why doesn't it work with 'sudo'?
    With sudo you are still using your $PATH and will not get programs that are in /sbin and /usr/sbin as those are in root's $PATH.

    You could do:

    Code:
    sudo /usr/sbin/gparted
    and that would probably work, but if you are running a script that calls other programs, again it may not find programs due to your $PATH.

    What I often do on machines using the sudo method, e.g. *buntu, is:

    Code:
    sudo su -
    and that gives me root's environment and yet still be able to use sudo and my own password instead of su.

  8. #8
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Cannot start gparted

    Thanks for the lesson; now I really know the difference.
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •