Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to update /dev directory after creation of new partition on a disk? I have the udev installed, it works perfectly except this. The new devices appear only on reboot.

share|improve this question

3 Answers 3

You may use kpartx from sys-fs/multipath-tools, if you modified the /dev/sda drive:

# kpartx /dev/sda

The partx utility from sys-apps/util-linux could be used instead, but it won't work with LVM.

share|improve this answer

Command partprobe from sys-block/parted also does the job well. Use is like this:

# partprobe

or for a particular device only (e.g. /dev/sda):

# partprobe /dev/sda
share|improve this answer

You could try one of the options to udevadm, for example

$ udevadm control --reload-rules

Although you're not actually changing udev rules in this case, the reload operation might force udev to refresh its knowledge of devices and partitions.

share|improve this answer

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.