Segmentation fault when using “-s max”
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fatresize (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm starting with a 2.5gb image of a TomTom device which was created using dd. There is no partition table, so the vfat filesystem begins on the very first sector.
$ dd if=/dev/sdd of=image_
This is a migration to a 4gb sd card. So I used fdisk to see the full size of the target media, and allocated a file to match:
$ fallocate -l 4008706048 image_file_4gb.img
Copied the contents bit-for-bit:
$ dd if=image_
Finally the vfat filesystem thereon must be stretched:
$ fatresize -s max image_file_4gb.img
fatresize 1.1.0 (20201114)
part(start=0, end=7829503, length=7829504)
Segmentation fault
It resembles this bug:
https:/
but that bug was supposedly fixed 3 yrs prior to version 1.1.0.
Workaround:
It's worth noting that the segfault can be avoided if the smaller image is copied to a larger SD card, and “fatresize -s max” is run on the unmounted device (e.g. /dev/sdd) instead of running it on an image file.
description: | updated |
description: | updated |