August 26, 2015

You found a bug in GNU Parted!

Posted on August 26, 2015  •  2 minutes  • 383 words  •  Suggest Changes

Heyho, I was not looking for a bug tho, so that’s bad news 😀

You found a bug in GNU Parted! Here's what you have to do:
Assertion (bs != NULL) at ../../../../libparted/fs/fat/bootsector.c:282 in

As any bad user, I stopt reading there, to see what the internet had to say about this. Seems it was reported already (and solved!) so I was off the hook! However I tend to update&upgrade this system rather regular and somewhere I recalled I even installed an “auto updater” (unattended-upgrades, -redhat- yum-cron). So I knew my repo was not up-to-date with this release, I could wait for it, but I need this disk formatted right now. Since parted is open-source software, one can simply download the source and compile them self. (download from   This machine is debian based,

[email protected]:~/parted-3.0$ cat /etc/debian_version

(I have no idea what distribution, terminal is my GUI for this machine)

After a few attempts to compile I started collecting dependency’s I did not have, so feel free to check if you have them before starting 🙂

sudo apt-get install uuid-dev libdevmapper-dev libncursesw5-dev libghc-readline-dev

I originally took parted 3.0.0 since it had a .tar.gz extension, that I know how to uncompress (tar xvf file.tar.gz) the latest version was .tar.xz so I thought it was to much bother to find a method… (tar xvgJ file.tar.xz) so I got this result for my laziness : (#overly_honest)

CC       freading.lo
In file included from freading.h:18:0,
                 from freading.c:20:
./stdio.h:1050:1: error: 'gets' undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

So I downloaded the 3.2.0 version (latest at time of writing), uncompressed and compiled. (./configure && make && make install)  At-least this compiled and worked as expected, however the binary’s “parted” now throw an error :

parted: error while loading shared libraries: cannot open shared object file: No such file or directory

So seemingly it does not find some library … it probably means something is not there or not in the right place. However the /home/compile_dir/parted/parted binary just works oke, so I when with this version. As removing parted from the distribution was going remove allot dependency’s I’m not sure I want to throw away just yet …

Now on to the formatting of fat32 ! 🙂


If you enjoyed this website, consider buying me a Dr. Pepper

Buy me a Dr PepperBuy me a Dr Pepper