Index: /trunk/src/VBox/Main/HostImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/HostImpl.cpp	(revision 31372)
+++ /trunk/src/VBox/Main/HostImpl.cpp	(revision 31373)
@@ -66,4 +66,5 @@
 # include <stdio.h>
 # include <libdevinfo.h>
+# include <sys/mkdev.h>
 # include <sys/scsi/generic/inquiry.h>
 # include <net/if.h>
@@ -2021,4 +2022,5 @@
                      * slice that represents the whole drive. "s2" is always the whole drive for CD/DVDs.
                      */
+                    int Major = di_driver_major(Node);
                     di_minor_t Minor = DI_MINOR_NIL;
                     di_devlink_handle_t DevLink = di_devlink_init(NULL /* name */, 0 /* flags */);
@@ -2027,4 +2029,12 @@
                         while ((Minor = di_minor_next(Node, Minor)) != DI_MINOR_NIL)
                         {
+                            dev_t Dev = di_minor_devt(Minor);
+                            if (   Major != (int)major(Dev)
+                                || di_minor_spectype(Minor) == S_IFCHR
+                                || di_minor_type(Minor) != DDM_MINOR)
+                            {
+                                continue;
+                            }
+
                             char *pszMinorPath = di_devfs_minor_path(Minor);
                             if (!pszMinorPath)
@@ -2057,4 +2067,5 @@
                             }
                         }
+                        di_devlink_fini(&DevLink);
                     }
                 }
