--- /etc/devfsd.conf.org Tue Jan 15 18:31:33 2002 +++ /etc/devfsd.conf Wed Jan 16 22:15:32 2002 @@ -25,6 +25,21 @@ # autoloading LOOKUP .* MODLOAD +# When removable media is (programmatically) ejected nodes for +# individual partitions are unregistered and if you have enabled +# RM(OLD|NEW)COMPAT actions links that point to them are removed. +# Unfortunately when you insert media and try to access it using +# any of these links there is nothing that tells the kernel to refresh +# partition table. To force refresh you may use something like this: +# SCSI NEWCOMPAT +LOOKUP ^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+).*$ EXECUTE /sbin/blockdev --rereadpt $mntpnt/\1 +# SCSI OLDCOMPAT +LOOKUP ^(sd[^/])[^/]+$ EXECUTE /sbin/blockdev --rereadpt $mntpnt/\1 +# IDE NEWCOMPAT +LOOKUP ^(ide/hd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+).+$ EXECUTE /sbin/blockdev --rereadpt $mntpnt/\1 +# IDE OLDCOMPAT +LOOKUP ^(hd[^/])[^/]+$ EXECUTE /sbin/blockdev --rereadpt $mntpnt/\1 + # # Uncomment this if you want permissions to be saved and restored # Do not do this for pseudo-terminal devices