Today I have run into an error with fdisk under busybox. I am currently building a really small system with basic stuffs, and I need to run fdisk in the initramfs. Unfortunately when I try to run fdisk interactively, I get the following error:
fdisk[...]: segfault at 8117dc4 ip 080ff478 sp bffee994 error 7 in fdisk[8048000+df000]
It seems this is a bug in the input handling, or maybe I made something wrong. Anyway, the following is working fine:
# cat | fdisk /dev/...
I will take a look on this in the source and update this post if i will have enough time.