touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #69895
[Bug 1059872] Re: Error formatting disk using disk utility
Still getting this issue on 15.04
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 273, in Format
block.call_format_sync('vfat', GLib.Variant('a{sv}', {'label': GLib.Variant('s', '')}), None)
GLib.Error: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error synchronizing after initial wipe: Timed out waiting for object (0)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1059872
Title:
Error formatting disk using disk utility
Status in udisks2 package in Ubuntu:
Invalid
Status in util-linux package in Ubuntu:
Fix Released
Status in udisks2 source package in Trusty:
Invalid
Status in util-linux source package in Trusty:
Triaged
Status in util-linux package in Debian:
Fix Released
Bug description:
Formatting a SD card using the disk utility fails with an error
message
"Error formatting disk - Error synchronizing after initial wipe: Timed
out waiting for object (udisks-error-quark, 0)"
Steps to repro:
Launch the disk utility
Plug a SD card into the computer
Select the SD card and click on the gears icon at the top right of the application
From the drop down menu, select "Format Disk"
maintain the default setting and select Format
Acknowledge warnings
After format process has been going for a while, the error message shown above pops up
Workaround:
After selecting the SD card, instead of clicking the gear icon to format, click the partition in the "Volumes" section.
Delete the partition ("minus" icon)
Create a new partition
-----
The underlying problem is that the "wipefs" tool from util-linux does
not work any more.
=== TEST CASE ===
$ sudo modprobe scsi_debug dev_size_mb=200
# this creates a new /dev/sdX, usually /dev/sdb; check dmesg!
# now create a partition table
$ cat <<EOF | sudo sfdisk /dev/sdb
# partition table of /dev/sdb
unit: sectors
/dev/sdb1 : start= 32, size= 409568, Id=83
/dev/sdb2 : start= 0, size= 0, Id= 0
/dev/sdb3 : start= 0, size= 0, Id= 0
/dev/sdb4 : start= 0, size= 0, Id= 0
EOF
# now create an ext4 file system:
$ sudo mkfs.ext4 /dev/sdb1
# check contents:
$ sudo blkid -p /dev/sdb /dev/sdb1
/dev/sdb: PTTYPE="dos"
/dev/sdb1: UUID="4bd1c542-a61f-43c4-a7e5-cc50e66e6b5a" VERSION="1.0" TYPE="ext4" USAGE="filesystem" PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0x83" PART_ENTRY_NUMBER="1" PART_ENTRY_OFFSET="32" PART_ENTRY_SIZE="409568" PART_ENTRY_DISK="8:16"
# wipe:
$ sudo wipefs -a /dev/sdb
# now check contents again
$ sudo blkid -p /dev/sdb /dev/sdb1
# in the broken case, you will still see a "dos" partition table and
the ext4 partition; in the working case, /dev/sdb won't show anything
and /dev/sdb1 does not exist any more
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: udisks 1.0.4-6
ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4
Uname: Linux 3.5.0-15-generic x86_64
ApportVersion: 2.6.1-0ubuntu1
Architecture: amd64
CustomUdevRuleFiles: 51-android.rules 51-android.rules~
Date: Mon Oct 1 15:07:46 2012
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120720.1)
MachineType: FOXCONN NT-A2400&NT-A3500
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-15-generic root=UUID=fcc445e4-9662-47cc-855d-ca17ad1c2a87 ro quiet splash vt.handoff=7
SourcePackage: udisks
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/29/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.4
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: NT-A2400&NT-A3500
dmi.board.vendor: FOXCONN
dmi.board.version: FAB 1.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 4
dmi.chassis.vendor: FOXCONN
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.4:bd03/29/2011:svnFOXCONN:pnNT-A2400&NT-A3500:pvrFAB1.0:rvnFOXCONN:rnNT-A2400&NT-A3500:rvrFAB1.0:cvnFOXCONN:ct4:cvrToBeFilledByO.E.M.:
dmi.product.name: NT-A2400&NT-A3500
dmi.product.version: FAB 1.0
dmi.sys.vendor: FOXCONN
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1059872/+subscriptions