diff --git a/partitionmanager/src/plugins/libparted/libpartedbackend.cpp b/partitionmanager/src/plugins/libparted/libpartedbackend.cpp index 5199b51a..3ef09a31 100644 --- a/partitionmanager/src/plugins/libparted/libpartedbackend.cpp +++ b/partitionmanager/src/plugins/libparted/libpartedbackend.cpp @@ -381,14 +381,14 @@ void LibPartedBackend::scanDevicePartitions(PedDevice*, Device& d, PedDisk* pedD Partition* part = new Partition(parent, d, PartitionRole(r), fs, pedPartition->geom.start, pedPartition->geom.end, node, availableFlags(pedPartition), mountPoint, mounted, activeFlags(pedPartition)); - readSectorsUsed(pedDisk, d, *part, mountPoint); - if (fs->supportGetLabel() != FileSystem::cmdSupportNone) fs->setLabel(fs->readLabel(part->deviceNode())); if (fs->supportGetUUID() != FileSystem::cmdSupportNone) fs->setUUID(fs->readUUID(part->deviceNode())); + readSectorsUsed(pedDisk, d, *part, mountPoint); + parent->append(part); partitions.append(part); }