7

Gparted is extremely more slow when looking for partitions than any command line counterpart.

Can anybody explain to me what is Gparted doing that the other tools do not do, in this time?

Here are two GIFs to show this difference

Gparted

Gparted

sudo parted -l

<code>sudo parted -l</code>

2
  • Have faith in GParted! It is working hard for you. – ipse lute May 22 '16 at 20:11
  • I have faith! It's a great program, just want to know what it does ;) – dadexix86 May 22 '16 at 20:26
2

GParted scans through all devices using libparted and third-party tools. It not only reads the partition table, it looks for many things such as for file systems, labels, UUIDs, whether the partition is in use, where the partition is mounted or active, how much free space is available within the file system and within the partition, is the file system encrypted, and is the partition part of a Logical Volume Manager and if so the volume group details.

Tools like fdisk or gdisk read the partition table.

Parted reads the partition table and tries to determine the type of file system.

For exact commands/arguments/parameters used by GParted I suggest reading the source code starting with GParted_Core::set_devices_thread because this is where scanning of device and partition information begins.

4
  • Can you elaborate on how it does these things? :) So, what commands/arguments/parameters does it use and such? – dadexix86 May 24 '16 at 9:14
  • For exact commands/arguments/parameters I suggest reading the source code starting with GParted_Core::set_devices_thread because this is where scanning of device and partition information begins. – Curtis Gedak May 26 '16 at 16:48
  • @chaskes. Re: move source links to answer -- done. :) – Curtis Gedak May 26 '16 at 19:04
  • @CurtisGedak Thanks for the awesome gparted knowledge. – chaskes May 26 '16 at 19:05
0

Look at output of dmesg when it's doing so. I found out that it's desperately trying to read some USB card reader (which was empty). I unplugged the card reader and restarted gparted and it worked.

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.