Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#573836: gparted: mkswap fail with "UUID parsing failed"

596 views
Skip to first unread message

Aníbal Monsalve Salazar

unread,
Mar 14, 2010, 8:30:01 AM3/14/10
to
On Sun, Mar 14, 2010 at 12:26:28PM +0100, Bastien Scher wrote:
>Package: gparted
>Version: 0.5.2-1
>Severity: important
>
>When I want to do any operation on my swap partition (moving/resizing),
>I got an error because of mkswap. I don't know if this problem comes
>from gparted (maybe it doesn't use the good options with my
>configuration) or mkswap.

Bastien, could you try the same operation with a previous gparted
version?

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573836

I would like to ask Curtis for comments. I hope you can follow the
log in French at the end of this message.

>-- System Information:
>Debian Release: squeeze/sid
> APT prefers unstable
> APT policy: (900, 'unstable'), (500, 'testing')
>Architecture: amd64 (x86_64)
>
>Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
>Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
>Shell: /bin/sh linked to /bin/dash
>
>Versions of packages gparted depends on:
>ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
>ii libgcc1 1:4.4.3-3 GCC support library
>ii libglib2.0-0 2.22.4-1 The GLib library of C routines
>ii libglibmm-2.4-1c2 2.22.1-2 C++ wrapper for the GLib toolkit (
>ii libgtk2.0-0 2.18.7-1 The GTK+ graphical user interface
>ii libgtkmm-2.4-1c2a 1:2.18.2-1 C++ wrappers for GTK+ 2.4 (shared
>ii libpangomm-1.4-1 2.26.0-1 C++ Wrapper for pango (shared libr
>ii libparted1.8-12 1.8.8.git.2009.07.19-6 The GNU Parted disk partitioning s
>ii libsigc++-2.0-0c2 2.2.4.2-1 type-safe Signal Framework for C++
>ii libstdc++6 4.4.3-3 The GNU Standard C++ Library v3
>
>Versions of packages gparted recommends:
>ii gksu 2.0.2-2+b1 graphical frontend to su
>
>Versions of packages gparted suggests:
>pn dmraid <none> (no description available)
>pn dmsetup <none> (no description available)
>ii dosfstools 3.0.9-1 utilities for making and checking
>pn jfsutils <none> (no description available)
>pn kpartx <none> (no description available)
>ii ntfsprogs 2.0.0-1+b1 tools for doing neat things in NTF
>pn reiser4progs <none> (no description available)
>pn reiserfsprogs <none> (no description available)
>pn xfsprogs <none> (no description available)
>ii yelp 2.28.0+webkit-2 Help browser for GNOME
>
>-- no debconf information

> GParted 0.5.2
>
> Libparted 1.8.8.git-dirty
>
> Déplacer /dev/sda3 vers la gauche et la réduire de 2.05 Gio à 721.67 Mio 00:00:01 ( ERREUR )
>
> calibrer /dev/sda3 00:00:00 ( SUCCÈS )
>
> chemin : /dev/sda3
> début : 16466625
> fin : 20755979
> taille : 4289355 (2.05 Gio)
>
> calcule la nouvelle taille et position de /dev/sda3 00:00:01 ( SUCCÈS )
>
> début demandé : 0
> fin demandée : 1477979
> taille demandée : 1477980 (721.67 Mio)
>
> nouveau début : 63
> nouvelle fin : 1477979
> nouvelle taille : 1477917 (721.64 Mio)
>
> vérifier le système de fichiers sur /dev/sda3 et corriger les problèmes (si possible) ( N/D )
>
> la vérification n`est pas disponible pour ce système de fichiers
>
> réduire le système de fichiers 00:00:00 ( ERREUR )
>
> créer un nouveau système de fichiers linux-swap 00:00:00 ( ERREUR )
>
> mkswap -L "" -U "" /dev/sda3
>
> mkswap: error: UUID parsing failed
>
> vérifier le système de fichiers sur /dev/sda3 et corriger les problèmes (si possible) ( N/D )
>
> la vérification n`est pas disponible pour ce système de fichiers
>
> agrandir le système de fichiers pour remplir la partition 00:00:00 ( ERREUR )
>
> créer un nouveau système de fichiers linux-swap 00:00:00 ( ERREUR )
>
> mkswap -L "" -U "" /dev/sda3
>
> mkswap: error: UUID parsing failed
>

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Bastien

unread,
Mar 14, 2010, 1:20:02 PM3/14/10
to
Some news.
I looked at gparted's source code. Seems like it didn't get partition's
UUID when calling blkid.

When I used lenny's gparted, my swap got an(other ?) UUID, and blkid
returns it. So the newest gparted now works when I want to resize/move
my swap partition.

gparted should look if the UUID is empty in order not to use -U option
with mkswap.

Curtis Gedak

unread,
Mar 14, 2010, 2:30:03 PM3/14/10
to
Bastien, which version of mkswap are you using?

I tried the following command with no problems parsing the empty UUID
string.

$ sudo mkswap -L "" -U "" /dev/sdd3
Setting up swapspace version 1, size = 57569 kB
LABEL=, UUID=f8b00408-e87e-bcbf-7c8b-0408a42eedb7
$
$ mkswap --version
mkswap (util-linux-ng 2.13.1)
$

Curtis Gedak

unread,
Mar 14, 2010, 4:10:02 PM3/14/10
to
Thank you for the prompt response Bastien.

It seems strange that no UUID was found for your swap partition. Still
it would be more graceful for GParted to continue with the operation
than to fail with a UUID parsing error.

I have implemented your suggestion of only using the mkswap "-U" flag if
the UUID is non-blank.

The relevant git commit can be found at the following link:
http://git.gnome.org/browse/gparted/commit/?id=f23746959fb0c8f2783fdadef16e66df43e98a09

Regards,
Curtis Gedak

0 new messages