Gparted Start scans whole system, even i want format usb device

Bug #1698630 reported by Martin Dünkelmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
New
Undecided
Unassigned

Bug Description

GParted 0.25.0
Linux Mint 18.1 x64 MATE (based on Ubuntu 16.04)

When i start it, it scanns my whole system, even if i want to format an usb device.
Thats senseless.
I don't want, that GParted starts scanning my whole slow HDD if i only want to resize my external HDD or USB device.
As example, i want to resize one partition first, then execute the task and then gparted scans my internal HDD again, while I only want to make changes at my external hdd.

Or when I start GParted.
It should only start scanning a HDD if I CHOOSE IT.
Not everything while it starts.

Revision history for this message
Curtis Gedak (gedakc) wrote :

GParted already supports scanning only the devices you pass to it. This is most easily done from a terminal window.

For example if you wish to scan only /dev/sdf, you can use the following:

sudo gparted /dev/sdf

See the GParted Manual [1] for more information.

[1] http://gparted.org/display-doc.php?name=help-manual#gparted-run-from-cmd-line

Revision history for this message
Martin Dünkelmann (nc-duenkekl3-deactivatedaccount) wrote :

Then it's sad, that there is no GUI-Option.
Or, when i start it from a terminal window, there is no --help argument, or no help screen, if i use an command which doesn't exist.

Revision history for this message
Curtis Gedak (gedakc) wrote :

Good point about the lack of a "--help" argument from the command line.

There is a man page....

As for the scan on startup, that is a design decision dating back to the initial development of GParted.

Revision history for this message
Martin Dünkelmann (nc-duenkekl3-deactivatedaccount) wrote :

Is it possible to add a gui, which let me choose, which device i want to scan (maybe all), if there are more than one storages to the pc are attached, if i use no argument in the terminal?

Revision history for this message
Curtis Gedak (gedakc) wrote :

You might create an icon on the desktop or in the menu system with the command line parameters that you desire to only access a USB drive when it is plugged in.

For example if you have two internal hard disk drives (/dev/sda and /dev/sdb), then a newly inserted USB drive should receive device path /dev/sdc. In this case modify the icon parameters to pass /dev/sdc to gparted.

Revision history for this message
Phillip Susi (psusi) wrote :

Hi Curtis... what exactly is it scanning for again, and why does it need to do that on any drive other than the one that is currently selected?

Revision history for this message
Curtis Gedak (gedakc) wrote :

@Phillip, scanning is performed to determine which devices are present, what partition tables these contain, what file systems are in the partitions, and other details such as volume labels, free space, UUID, etc.

Revision history for this message
Martin Dünkelmann (nc-duenkekl3-deactivatedaccount) wrote :

And this scanning happens again on every device, even if i modify only one partition on one device?

Revision history for this message
Phillip Susi (psusi) wrote :

Which devices are present should be as simple as looking what files are in /dev... reading the partition tables and identifying filesystems though... why does gparted care unless and until you have chosen to show that drive?

Revision history for this message
Martin Dünkelmann (nc-duenkekl3-deactivatedaccount) wrote :

Yeahr, it should first only list the devices and then, the choosen one (or directly at the start the first one) should be scanned.

Revision history for this message
Curtis Gedak (gedakc) wrote :

Scanning for all devices on startup is a design decision dating back to the initial development of GParted.

A work-around to scanning only the devices required is to pass these on the commmand line to gparted.

You are free to submit a patch upstream [1] to alter this behaviour.

[1] http://gparted.org

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.