Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When modifying the partition table, fdisk usually returns the following error message:

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

The kernel still uses the old table. The new table will be used at the next reboot.

Is there any method to avoid the reboot?

share|improve this question
    
depending of the partion you modify maybe mount -a could do the trick –  Kiwy Apr 1 at 11:58
    
You forgot to accept the answer –  Nils Apr 3 at 15:02

1 Answer 1

There is a solution using partprobe from parted software. More information here: http://www.gnu.org/software/parted/

After using your fdisk command and having done your modifications, do a partprobe or partprobe /dev/sdx and it should inform the kernel of the change without reboot.

share|improve this answer
    
Resolved and worked with 'partprobe' by using the command: # /sbin/partprobe –  Charles nakhel Apr 1 at 12:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.