diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index 870893e06ae..5c74c24590f 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -716,7 +716,7 @@ def getMountedPartitions(self, onlyhotplug=False, mounts=None): dev, part = self.splitDeviceName(devname) if part and dev in devs: # If this is a partition and we still have the whole disk, remove the whole disk. devs.remove(dev) - return [x for x in parts if not x.device or x.device in devs] # Return all devices which are not removed due to being a whole disk when a partition exists. + return [x for x in parts if (not x.device or x.device in devs) and x.mountpoint] # Return all devices which are not removed due to being a whole disk when a partition exists. def splitDeviceName(self, devname): if search(r"^mmcblk\d(?:p\d+$|$)", devname):