I verified with usb-creator 0.2.56, my usbstick has dos partition table and two fat32 partitions, then I launch usb-creator-gtk, select the first partition and click "Eraase Disk", after a second or two, the partition is successfully erased, all files in the partition are erased as expected.
So I believe this issue is correctly fixed. I'll add the tag verification-done.
BTW, I also checked with these cases:
* when there is no partition table, bug #1300361 will be triggered
* when there is dos partition table but no partitions:
org.freedesktop.DBus.Python.gi._glib.GError: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/share/usb-creator/usb-creator-helper", line 239, in Format
block.call_format_sync('dos', GLib.Variant('a{sv}', {}), None)
gi._glib.GError: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error synchronizing after initial wipe: Timed out waiting for object
* when there is GPT partition table and partitions:
org.freedesktop.DBus.Python.gi._glib.GError: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/share/usb-creator/usb-creator-helper", line 233, in Format
part.call_set_type_sync('0x0c', no_options, None)
gi._glib.GError: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Given type `0x0c' is not a valid UUID
I verified with usb-creator 0.2.56, my usbstick has dos partition table and two fat32 partitions, then I launch usb-creator-gtk, select the first partition and click "Eraase Disk", after a second or two, the partition is successfully erased, all files in the partition are erased as expected.
So I believe this issue is correctly fixed. I'll add the tag verification-done.
BTW, I also checked with these cases:
* when there is no partition table, bug #1300361 will be triggered
* when there is dos partition table but no partitions:
org.freedesktop .DBus.Python. gi._glib. GError: Traceback (most recent call last): python3/ dist-packages/ dbus/service. py", line 707, in _message_cb method( self, *args, **keywords) usb-creator/ usb-creator- helper" , line 239, in Format call_format_ sync('dos' , GLib.Variant( 'a{sv}' , {}), None) org.freedesktop .UDisks2. Error.Failed: Error synchronizing after initial wipe: Timed out waiting for object
File "/usr/lib/
retval = candidate_
File "/usr/share/
block.
gi._glib.GError: GDBus.Error:
* when there is GPT partition table and partitions:
org.freedesktop .DBus.Python. gi._glib. GError: Traceback (most recent call last): python3/ dist-packages/ dbus/service. py", line 707, in _message_cb method( self, *args, **keywords) usb-creator/ usb-creator- helper" , line 233, in Format call_set_ type_sync( '0x0c', no_options, None) org.freedesktop .UDisks2. Error.Failed: Given type `0x0c' is not a valid UUID
File "/usr/lib/
retval = candidate_
File "/usr/share/
part.
gi._glib.GError: GDBus.Error: