--- libblkid/src/devname.c
+++ libblkid/src/devname.c
@@ -55,6 +55,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))
