Skip to content

Bug: Assertion (disk != NULL) at ../../libparted/disk.c:1620 in function ped_disk_get_partition_by_sector() failed #30

@flatsiedatsie

Description

@flatsiedatsie

Got this 'bug' (according to the program itself) while trying to shrink a DD image of a Raspberry Pi boot partition.

/usr/sbin/fatresize -v -s 200M -p boot_partition.fs
fatresize 1.1.0 (20201114)
.part(start=0, end=524287, length=524288)
Backtrace has 5 calls on stack:
  5: /lib/aarch64-linux-gnu/libparted.so.2(ped_assert+0x54) [0xffffb7156b34]
  4: /lib/aarch64-linux-gnu/libparted.so.2(ped_disk_max_partition_length+0) [0xffffb715b870]
  3: /usr/sbin/fatresize(+0x2494) [0xaaaadff02494]
  2: /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8) [0xffffb6ff3e18]
  1: /usr/sbin/fatresize(+0x2908) [0xaaaadff02908]
Bug: Assertion (disk != NULL) at ../../libparted/disk.c:1620 in function ped_disk_get_partition_by_sector() failed.
Aborted

It is able to read the file:

parallels@debian-gnu-linux-11:~/fatresize$ /usr/sbin/fatresize -i  boot_partition.fs
fatresize 1.1.0 (20201114)
part(start=0, end=524287, length=524288)
FAT: fat32
Cur size: 268435456
Min size: 44493312
Max size: 268435456

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions