Error erasing device: Unknown or unsupported erase type `'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
udisks |
Invalid
|
Medium
|
|||
udisks2 (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Trusty |
Invalid
|
Undecided
|
Unassigned | ||
usb-creator (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* This bug is a runtime exception caused by invalid erase type.
* With this bug users can not erase disks with usb-creator.
[Test Case]
* Prepare an usbstick with any partition(s),
this could be done with "gparted".
* Launch usb-creator-gtk or usb-creator-kde.
* Insert the usbstick, click the button "Erase Disk".
* It will popup an exception window with the error message similar to:
Traceback (most recent call last):
File "format.py", line 7, in <module>
* Please be noted, the erase operation may still fail even with
this bug properly fixed due to some other bugs, such as bug #1318954.
[Regression Potential]
* Since the erasing operation is also blocked by other bugs,
we may not be able to verify the entire erasing operation,
in such a case we can not promise the effect of the patch,
and it may (although not sure to) has other side effect such as:
A dialog with the following text appears anytime I try to wipe my usb pen (both when partitioned and unpartitioned):
org.freedesktop
File "/usr/lib/
retval = candidate_
File "/usr/share/
block.
gi._glib.GError: GDBus.Error:
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: usb-creator-gtk 0.2.55
ProcVersionSign
Uname: Linux 3.13.0-17-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Mar 19 23:26:15 2014
InstallationDate: Installed on 2013-10-05 (165 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Beta amd64 (20131005)
SourcePackage: usb-creator
UpgradeStatus: Upgraded to trusty on 2013-12-10 (99 days ago)
Changed in usb-creator (Ubuntu): | |
importance: | Undecided → High |
Changed in udisks: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in usb-creator (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in udisks: | |
status: | Confirmed → Invalid |
Changed in oem-priority: | |
status: | Triaged → In Progress |
Changed in udisks2 (Ubuntu Trusty): | |
status: | Confirmed → Invalid |
description: | updated |
description: | updated |
description: | updated |
Changed in oem-priority: | |
status: | In Progress → Fix Released |
The following Python code
from gi.repository import GLib
from gi.repository import UDisks
udisks = UDisks. Client. new_sync( None) get_object( '/org/freedeskt op/UDisks2/ block_devices/ sdb') format_ sync('dos' , GLib.Variant( 'a{sv}' , {'erase': GLib.Variant('s', '')}), None)
dev = udisks.
block = dev.get_block()
block.call_
results in either call_format_ sync('dos' , GLib.Variant( 'a{sv}' , {'erase': GLib.Variant('s', '')}), None) org.freedesktop .UDisks2. Error.Failed: Error erasing device: Unknown or unsupported erase type `' call_format_ sync('dos' , GLib.Variant( 'a{sv}' , {'erase': GLib.Variant('s', '')}), None) org.freedesktop .UDisks2. Error.Failed: Error synchronizing after initial wipe: Timed out waiting for object
Traceback (most recent call last):
File "format.py", line 7, in <module>
block.
gi._glib.GError: GDBus.Error:
or
Traceback (most recent call last):
File "format.py", line 7, in <module>
block.
gi._glib.GError: GDBus.Error: