Red Hat Bugzilla – Bug 58629
fdisk will report an error re-reading the partition table
Last modified: 2007-04-18 12:39:07 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.7-10 i686)
Description of problem:
fdisk reports error 16 on scsi drives with existing partitions when
changing/creating a partition upon exiting.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run fdisk on a scsi drive already containing partitions
2. create a new partition
3. exit fdisk
Actual Results: Calling ioctl() to re-read partition table
Re-read table failed with error 16: Device or resource busy.
Reboot your system to ensure the partition table is updated.
fdisk exists with an error (ie. echo $? <> 0)
Expected Results: clean exit of fdisk with exit status of "0"
It exits with this error because the kernel returns EBUSY for the ioctl - this
is a kernel issue (not sure if it is a bug or not).
how about some basic info?
is anything mounted from the disk
Stock 7.2. Yes other things are mounted but not the edited partition.
editing live partition tables (eg tables where at least one partition is
mounted) is not supported and very dangerous.