dd an ubuntu iso to usbstick, then it can't be erased with usb-creator

Bug #1424915 reported by Yu Ning
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu

Ubuntu 14.04

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center

usb-creator-gtk 0.2.56.3

3) What you expected to happen

1. prepare an isohybrid ISO image, such as the ubuntu ISO:
http://releases.ubuntu.com/14.04.1/ubuntu-14.04-desktop-amd64.iso
2. plug in the usbstick and dd the iso to it
sudo dd if=ubuntu.iso of=/dev/sdb bs=1M
3. eject the usbstick
sudo eject /dev/sdb
4. plug out & in the usbstick
5. launch usb-creator-gtk and erase the usbstick

The usbstick should be erased successfully

4) What happened instead

An error dialog is popped with below messages:

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 235, in Format
    part.call_set_type_sync('0x0c', no_options, None)
gi._glib.GError: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error setting partition flags on /dev/sdb2: Command-line `sfdisk --change-id "/dev/sdb" 2 0x0c' exited with non-zero exit status 1:
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util sfdisk doesn't support GPT. Use GNU Parted.

Use the --force flag to overrule this check.

Related branches

Revision history for this message
Yu Ning (yuningdodo) wrote :

On ubuntu 14.10 (usb-creator 0.2.62ubuntu0.1, util-linux 2.25.1-3ubuntu4) the error message is:

org.freedesktop.DBus.Python.GLib.Error: 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 244, in Format
    part.call_set_flags_sync(boot_dos_flag, no_options, None)
GLib.Error: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error setting partition flags on /dev/sdb2: Command-line `parted --script "/dev/sdb" "set 2 boot off"' exited with non-zero exit status 1: Error: The backup GPT table is not at the end of the disk, as it should be. Fix, by moving the backup to the end (and removing the old backup)?
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra 31250608 blocks) or continue with the current setting?
Error: Can't have overlapping partitions.
 (0)

Revision history for this message
Yu Ning (yuningdodo) wrote :

I have proposed a patch which should works for utopic and vivid, welcome for any comments and suggestions:
https://code.launchpad.net/~yuningdodo/usb-creator/usb-creator.lp1424915-check-for-iso9660/+merge/250718

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Confirming, I see this bug as well.

Changed in usb-creator (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
tags: added: trusty
tags: added: utopic vivid
Revision history for this message
Jarno Suni (jarnos) wrote :

Workaround is to partition the disk by e.g. gparted to fat32 format. Or maybe just remove existing partitions by it?

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.