gparted just crash when my thumbdrive (Kingston DataTraveler G3 4Gb) is pluged in.

Bug #657784 reported by Steve-David
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gparted

gparted just crash when my thumbdrive (Kingston DataTraveler G3 4Gb) is pluged in.
fdisk works fine.

The thumbdrive is brand new.
The only thing I did was to create a startup disk using a disc image.

Here is the log :

$ sudo gparted /dev/sdb
======================
libparted : 2.2
======================
Backtrace : 16 appels sur la pile:
  16: /lib/libparted.so.0(ped_assert+0x2a) [0xb77a4f0a]
  15: /lib/libparted.so.0(+0x42507) [0xb77dc507]
  14: /lib/libparted.so.0(+0x43317) [0xb77dd317]
  13: /lib/libparted.so.0(+0x4460c) [0xb77de60c]
  12: /lib/libparted.so.0(+0xf7b1) [0xb77a97b1]
  11: /lib/libparted.so.0(ped_disk_add_partition+0x262) [0xb77ad032]
  10: /lib/libparted.so.0(+0x45fa3) [0xb77dffa3]
  9: /lib/libparted.so.0(+0x4619f) [0xb77e019f]
  8: /lib/libparted.so.0(ped_disk_new+0x75) [0xb77ade15]
  7: /usr/sbin/gpartedbin() [0x80901e6]
  6: /usr/sbin/gpartedbin() [0x809fc9b]
  5: /usr/sbin/gpartedbin() [0x80c0532]
  4: /usr/lib/libglibmm-2.4.so.1(+0x30eb2) [0xb6f93eb2]
  3: /lib/libglib-2.0.so.0(+0x65def) [0xb6e1bdef]
  2: /lib/tls/i686/cmov/libpthread.so.0(+0x596e) [0xb6c8c96e]
  1: /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0xb6bfaa4e]
Assertion (head_size <= 63) à ../../../libparted/labels/dos.c: échec de 659 dans la fonction probe_partition_for_geom().

$ lsusb -vvv

Bus 002 Device 008: ID 0951:1643 Kingston Technology
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x0951 Kingston Technology
  idProduct 0x1643
  bcdDevice 1.00
  iManufacturer 1 Kingston
  iProduct 2 DataTraveler G3
  iSerial 3 001CC0EC34B5BA81800000E7
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 200mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 6 SCSI
      bInterfaceProtocol 80 Bulk (Zip)
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x02 EP 2 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Device Qualifier (for other device speed):
  bLength 10
  bDescriptorType 6
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  bNumConfigurations 1

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gparted 0.5.1-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic-pae 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Sun Oct 10 18:36:59 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 PATH=(custom, no user)
 LANG=fr_CH.utf8
 SHELL=/bin/bash
SourcePackage: gparted

Revision history for this message
Steve-David (eggman) wrote :
Revision history for this message
Steve-David (eggman) wrote :
Download full text (7.2 KiB)

As fdisk works with this key, I used it to invesitgate further.

What I did is simply remove the boot flag, remove the partition, create a new DOS partition.

What I notice is the geometry change.

Now gparted works perfectly with my Thumbdrive.

Here is the log :

$ sudo fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Commande (m pour l'aide): c
Fanion de compatibilité DOS non positionné

Commande (m pour l'aide): m
Commande d'action
   a bascule le fanion d'amorce
   b éditer l'étiquette BSD du disque
   c basculer le fanion de compatibilité DOS
   d supprimer la partition
   l lister les types de partitions connues
   m afficher ce menu
   n ajouter une nouvelle partition
   o créer une nouvelle table vide de partitions DOS
   p afficher la table de partitions
   q quitter sans enregistrer les changements
   s créer une nouvelle étiquette vide pour disque de type Sun
   t modifier l'id de système de fichiers d'une partition
   u modifier les unités d'affichage/saisie
   v vérifier la table de partitions
   w écrire la table sur le disque et quitter
   x fonctions avancées (pour experts seulement)

Commande (m pour l'aide): p

Disque /dev/sdb: 4011 Mo, 4011851776 octets
88 têtes, 24 secteurs/piste, 3710 cylindres
Unités = cylindres de 2112 * 512 = 1081344 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0xc3072e18

Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 4 3711 3913792 c W95 FAT32 (LBA)

Commande (m pour l'aide): a
Numéro de partition (1-4): 1

Commande (m pour l'aide): p

Disque /dev/sdb: 4011 Mo, 4011851776 octets
88 têtes, 24 secteurs/piste, 3710 cylindres
Unités = cylindres de 2112 * 512 = 1081344 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0xc3072e18

Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 4 3711 3913792 c W95 FAT32 (LBA)

Commande (m pour l'aide): d
Partition sélectionnée 1

Commande (m pour l'aide): p

Disque /dev/sdb: 4011 Mo, 4011851776 octets
88 têtes, 24 secteurs/piste, 3710 cylindres
Unités = cylindres de 2112 * 512 = 1081344 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0xc3072e18

Périphérique Amorce Début Fin Blocs Id Système

Commande (m pour l'aide): p

Disque /dev/sdb: 4011 Mo, 4011851776 octets
88 têtes, 24 secteurs/piste, 3710 cylindres
Unités = cylindres de 2112 * 512 = 1081344 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0xc3072e18

Périphérique Amorce Début Fin Blocs Id Système

Commande (m pour l'aide): m
Commande d'action
   a bascule le fanion d'amorce
   b éditer l'étiquette BSD du disque
   c basculer le fanion de compatib...

Read more...

Revision history for this message
Curtis Gedak (gedakc) wrote :

Based on your report, it appears that the usb device has an invalid partition table.

As you discovered, a work around is to copy your data to another device, write a new partition table to the usb device, and then restore your data back to the usb device.

A similar bug has been reported:

Verbatim USB stick crashes gParted
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/710696

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.