Parted bug

Bug #1559130 reported by Luis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Parted
New
Undecided
Unassigned

Bug Description

when you try to make a partition with fs like this

# parted /dev/sda 1 fat16

you get this message:

root@ample-cactus:~# parted /dev/sda mkfs 1 fat16
WARNING: you are attempting to use parted to operate on (mkfs) a file system.
parted's file system manipulation code is not as robust as what you'll find in
dedicated, file-system-specific packages like e2fsprogs. We recommend
you use parted only to manipulate partition tables, whenever possible.
Support for performing most operations on most types of file systems
will be removed in an upcoming release.
Warning: The existing file system will be destroyed and all data on the partition will be lost. Do you want to continue?
parted: invalid token: 1
Yes/No? Yes
Partition number? 1
File system type? [ext2]? fat16
Backtrace has 9 calls on stack:
  9: /lib/x86_64-linux-gnu/libparted.so.0(ped_assert+0x31) [0x7ffa7964c4b1]
  8: /lib/x86_64-linux-gnu/libparted.so.0(+0x25d53) [0x7ffa79662d53]
  7: /lib/x86_64-linux-gnu/libparted.so.0(fat_create+0x189) [0x7ffa79665fd9]
  6: /lib/x86_64-linux-gnu/libparted.so.0(ped_file_system_create+0x51) [0x7ffa7964def1]
  5: parted() [0x4083b1]
  4: parted(non_interactive_mode+0x8f) [0x40dc5f]
  3: parted(main+0x146d) [0x4064ed]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7ffa78e2aec5]
  1: parted() [0x406617]

You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

        http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

        http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (2.3)
along with the error message below, the output of

        parted DEVICE unit co print unit s print

and the following history of commands you entered.
Also include any additional information about your setup you
consider important.

Assertion (bs != NULL) at ../../../../libparted/fs/fat/bootsector.c:282 in function fat_boot_sector_set_boot_code() failed.

Aborted (core dumped)
# dpkg -l | grep parted
ii libparted0debian1:amd64 2.3-19ubuntu1.14.04.1 amd64 disk partition manipulator - shared library
ii parted 2.3-19ubuntu1.14.04.1 amd64 disk partition manipulator

Revision history for this message
Blake Rouse (blake-rouse) wrote :

This is not a MAAS bug as MAAS doesn't perform the installation. It is also not a curtin bug as curtin doesn't use parted either. Please file this bug accordingly.

no longer affects: maas
summary: - [1.9.1] Parted bug
+ Parted bug
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.