gparted vs gpartedbin?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
TL7

gparted vs gpartedbin?

Post by TL7 »

What is the difference between gparted and gpartedbin?

I noticed that gparted can also run without root privileges. The gpartedbin can not.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: gparted vs gpartedbin?

Post by Termy »

That is a very good question. :shock: I was honestly expecting a silly-simple reason, but there's no man page and not even any --help output, so I'm baffled. This calls for web searching. No doubt many others have asked the very same question.
I'm also Terminalforlife on GitHub.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: gparted vs gpartedbin?

Post by Flemur »

TL7 wrote: Fri Mar 23, 2018 12:28 pm What is the difference between gparted and gpartedbin?
I noticed that gparted can also run without root privileges. The gpartedbin can not.

Code: Select all

$ gparted
Root privileges are required for running gparted.

Code: Select all

$ ls -al `which gparted`
-rwxr-xr-x 1 root root 6875 Feb  1  2016 /usr/sbin/gparted
gparted is a script that runs gpartedbin. You can get an idea about such stuff with things like :
ls -l `which gparted`
ls -l `which gpartedbin`

$ file `which gparted`
/usr/sbin/gparted: POSIX shell script, ASCII text executable
$
$ file `which gpartedbin`
/usr/sbin/gpartedbin: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=45672ab884211decac751344283f6246944388fd, stripped
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: gparted vs gpartedbin?

Post by Termy »

Oh, that explains the name. Weird. I've always just run gparted. lol
I'm also Terminalforlife on GitHub.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: gparted vs gpartedbin?

Post by Flemur »

cat `which gparted`

Code: Select all

#!/bin/sh
#     Name:  gparted
#  Purpose:  Perform appropriate startup of GParted executable gpartedbin.
#
#            The purpose of these startup methods is to prevent
#            devices from being automounted, and to ensure only one
#            instance of GParted is running.  File system problems can
#            occur if devices are mounted prior to the completion of
#            GParted's operations, or if multiple partition editing
#            tools are in use concurrently.
#
...
Edit: I'd like to congratulate the gparted guys on their good documentation, which is rare nowadays.
Most scripts in /usr/sbin don't have any documentation, others have one sentence that's about as useful as saying "this script does what the name sounds like it does".
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Locked

Return to “Beginner Questions”