[Bug 1361474] Re: Error erasing device when there is dos partition table but no partition

Yu Ning ning.yu at canonical.com
Thu Oct 9 08:58:44 UTC 2014


I just updated my patch for trusty to workaround the "timed out" issue.

usb-creator uses udisks2 to format the partition table, and udisks2 uses
wipefs to erase the old partition table. However in trusty wipefs only
support erasing partitions but not partition table. So instead of
backporting the wipefs from utopic to trusty I think it's simpler to use
parted to do the job directly in usb-creator.

With this update we no longer need util-linux to be backported.

Here is the patch:
https://code.launchpad.net/~yuningdodo/ubuntu/trusty/usb-creator/usb-creator.lp1361474+lp1300361-recreate-udisks-client/+merge/232852

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to usb-creator in Ubuntu.
https://bugs.launchpad.net/bugs/1361474

Title:
  Error erasing device when there is dos partition table but no
  partition

Status in “usb-creator” package in Ubuntu:
  Fix Released
Status in “usb-creator” source package in Trusty:
  New

Bug description:
  Steps to reproduce:
  1. prepare an usbstick with dos partition table but no partition, this can be done with gparted
  2. erase the usbstick with usb-creator-gtk or usb-creator-kde

  Expected result:
  The usbstick is successfully erased (and a partition should be created)

  Actual result:
  An error message is popped up:

  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1361474/+subscriptions



More information about the foundations-bugs mailing list