fdisk does not tell the kernel to reread the partition table
on changes to a BSD label (BSD labels is required by the
As a work-around I use the attached program, or reboot the
int main(int argc, char **argv)
fd = open(argv,O_RDONLY);
errno = 0;
This is normal and expected behavior for a busy device - you can not invalidate
*** This bug has been marked as a duplicate of 8082 ***
The device IS NOT BUSY!
fdisk does not even ask the kernel to reread the partition table when modifying
a BSD label.
BSD labels are accessed by entering b at the fdisk main menu prompt, which
causes fdisk to switch mode to BSD labels instead of DOS labels.
The same problem is also available in the minlabel utility (specific utility
only for BSD labels).
Forgot to mention the versions currently tested:
# rpm -q -f /sbin/fdisk /sbin/minlabel
assigned to jbj
This has been fixed in util-linux for quite a while.