Comment 4 for bug 1045896

Revision history for this message
In , Matteo Croce (teknoraver) wrote :

Confirmed

seems that the bug lies in scanDevices() in src/core/libparted.cpp:

 QFile partitions("/proc/partitions");
 if (partitions.open(QIODevice::ReadOnly))
 {
  QRegExp rxLine("\\s*(\\d+)\\s+(\\d+)\\s+(\\d+)\\s([^0-9]+)\\s+");

that regular expression gets the list of the partitions and remove the trailing numbers, so /dev/mmcblk0 becames /dev/mmcblk which isn't a valid device name