"Error modifying partition" message is not easily understandable

Bug #1119878 reported by Thibault D
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
New
Undecided
Unassigned

Bug Description

1/ Insert a USB disk
2/ Open usb-creator-gtk
3/ Click on "Erase disk"
4/ And confirm to the question "Are you sure you want to erase the entire disk?"

Here, I get this awful error message (see screen shot here attached) :

"org.freedesktop.UDisks.Error.Failed: Error modifying partition: helper exited with exit code 1: In part_change_partition: device_file=/dev/sdb, start=4128768, new_start=4128768, new_size=8005392384, type=0x0c
Entering MS-DOS parser (offset=0, size=8006926336)
MSDOS_MAGIC found
looking at part 0 (offset 31744, size 8005392384, type 0x0c)
new part entry
looking at part 1 (offset 0, size 0, type 0x00)
new part entry
looking at part 2 (offset 0, size 0, type 0x00)
new part entry
looking at part 3 (offset 0, size 0, type 0x00)
new part entry
Exiting MS-DOS parser
MSDOS partition table detected
containing partition table scheme = 0
got it
got disk
got partition
Error: Can't have a partition outside the disk!
new_size=8005392384 but resulting size, 7840768, smaller than requested
Error: Can't have a partition outside the disk!
changed partition to start=31744 size=8005392384
committed to disk
ugh, offset or size changed
offset: 4128768
size: 8005392384
new_offset: 31744
new_size: 8005392384"

This is bug is not about the error itself, but on how it is displayed : the message is clearly not understandable and should not be shown "as it is" to an end user.

I would suggest a simple "Error modifying partition" or something more precise if possible.
But definitely not the entire log.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: usb-creator-gtk 0.2.40ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-23.35-generic 3.5.7.2
Uname: Linux 3.5.0-23-generic i686
ApportVersion: 2.6.1-0ubuntu10
Architecture: i386
Date: Sat Feb 9 00:31:08 2013
InstallationDate: Installed on 2012-11-12 (88 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.2)
MarkForUpload: True
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: usb-creator
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Thibault D (thibdrev) wrote :
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.