Pages

Sunday, October 14, 2012

WARNING: Re-reading the partition table failed with error 16: Device or resource busy

WARNING: Re-reading the partition table failed with error 16: Device or resource busy


We will see this error from RHEL6 on words. This error is due to the partition table changes are not updated to kernel. When ever we change the partition table and try to save the table changes we get this error. Even you will get the following error as well


The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.


when you see this error and executing partprobe command can not do anything, in RHEL5 based partprobe is the command to update the partition table changes to kernel, but from 6 we have to use partx command to update the partition table changes to kernel. 

Use below command to update the partition table changes.

partx -a /dev/sda

This will update the partition table changes of /dev/sda hard disk to the kernel.

Try to run above command two times, because first time it will try to sync previous partition table changes.

Hope this helps some one.


1 comment:

  1. Thanks, man. But why i still got error info while actually `partx -a /dev/sda' was success running.
    --- Here are some of output info, seems like error
    ...
    error adding partition 10
    BLKPG: Device or resource busy
    error adding partition 11
    BLKPG: Device or resource busy
    error adding partition 12
    ---
    Thanks for your share, again :)

    ReplyDelete