- if (bits.size() > 0 && boost::algorithm::starts_with(bits[0], "/dev/")) {
- mounted_devices.push_back(bits[0]);
- LOG_DISK("Mounted device %1", bits[0]);
+ if (bits.size() > 1 && boost::algorithm::starts_with(bits[0], prefix)) {
+ boost::algorithm::replace_all (bits[1], "\\040", " ");
+ mounts.push_back(make_pair(bits[0], bits[1]));
+ LOG_DISK("Found mounted device %1 from prefix %2", bits[0], prefix);