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

Yu Ning ning.yu at canonical.com
Thu Jan 8 04:29:46 UTC 2015


I made some tests on trusty with usb-creator-{common,gtk} 0.2.56.3 in
below cases:

1. no partition table (dd if=/dev/zero of=/dev/sdb bs=1M count=1)
2. one ntfs partition
3. one ext4 partition
4. one fat32 partition
5. two ext4 partition

For case 1 & 2 & 3 & 5, after the erasing it prompt "There is not enough
free space for this image" and the "Make Startup Disk" button is
inactivated. After another erasing now the button is activated and I can
burn the ISO image successfully.

For case 5, there is also a timed out popup error, but by erasing for
the 2nd time the usbstick can be correctly erased.

Anyway since there is no TypeError popup issue reproduced, I think the
issue is properly fixed. I'll update the tags for Trusty.

-- 
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:
  [SRU] 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:
  Fix Committed

Bug description:
  [Impact]
  Unable to erase the device if there's a partition table but no partitions.

  [Test Case]

  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

  [Regression Potential]

  Should not affect negatively the normal use case (=usb stick with
  partition table, one partition vfat formatted).

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