2009-09-20

How to refresh /dev/disk on Linux

To refresh /dev/disk/by-label or /dev/disk/by-uuid on Linux (tested on Ubuntu Hardy), run
sudo udevadm trigger
and wait a few seconds. It's OK that the system becomes unresponsive for 5 seconds.

1 comment:

müzso said...

This command reloads udev rules too. So in case you changed some udev rules files and for some reason udevd did not catch them automatically, using "udevadm trigger" can take care of that too.