How do you install GParted? rpm-ostree or via distrobox?

What is the recommended method to install gparted?
I have been able to install it via rpm-ostree but not sure is the right way.
What’s your experience with gparted running from a distrobox?

Hey @f0nzie, what method works for you finally?

The one that worked was by layering it in the OS.
I tried via a distrobox but it doesn’t open. I think it is related to administrator permissions.

1 Like

It’s the only thing I have left that is layered.

Would love another way but haven’t found one yet.

Finally I made gparted work via a distrobox.

The key is installing it as a real root user. First create the container with:

# will use Ubuntu but should work with other distributions
distrobox create --name uparted --image ubuntu:latest --root

At some point it will ask you to assign a root password.

Then enter the distrobox with

distrobox enter --root uparted

Then, install the dependencies:

sudo apt update -y && sudo apt upgrade -y
sudo apt install libcanberra-gtk-module libcanberra-gtk3-module dosfstools btrfs-progs

And, finally, install gparted:

sudo apt install gparted

Run with sudo gparted from within the distrobox.

To run it from the host terminal:

# replace user with your username
env SUDO_ASKPASS="/var/home/user/.local/bin/distrobox_sudo_askpass" DBX_SUDO_PROGRAM="sudo --askpass" /usr/bin/distrobox-enter --root -n uparted  -- sudo -S  /usr/sbin/gparted

If I try to open it from a desktop shortcut, it till not open though. Hoping anybody could find a fix to be able to launch gparted from the application menu.

2 Likes

From all the options available the most stable is by layering Gparted. It is available if you do rpm-ostree search gparted. Even though I made it work with distrobox and docker containers, gparted is not very stable; it crashes sometimes. And we don’t really want it to crash when we are modifying a partition, do we?

I ended just installing Gparted in a custom version of bluefin by adding it to the build.sh file - here’s mine.

1 Like

I vote to have gparted included in Bluefin-DX!!

1 Like

Very nice work!
I was able to go through your repo and understand every line.
I love how yo explained the construction of your Silverblue derivative in the README.
+100 for adding comments with the code. :100:

In Aurora there ist the KDE Partition Manager that can do most of Gparted (based on a quick look). I think in Bluefin there is Gnomes Equivalent already included, not Sure how feature rich it is.

Gparted is not included by default in Bluefin-DX.