--- shlibs/blkid/src/devname.c
+++ shlibs/blkid/src/devname.c
@@ -53,6 +53,9 @@
 	if (!cache || !devname)
 		return NULL;
 
+	if (strncmp(devname, "/dev/mtd", 8) == 0)
+		return NULL;
+
 	list_for_each(p, &cache->bic_devs) {
 		tmp = list_entry(p, struct blkid_struct_dev, bid_devs);
 		if (strcmp(tmp->bid_name, devname))
@@ -444,7 +447,8 @@
 #ifdef VG_DIR
 	lvm_probe_all(cache, only_if_new);
 #endif
-	ubi_probe_all(cache, only_if_new);
+	// UBI (Unsorted Block Images) is a volume management system for raw flash devices
+	// stalls accessing /dev/ubik* ubi_probe_all(cache, only_if_new);
 
 	proc = fopen(PROC_PARTITIONS, "r");
 	if (!proc)
