diff --git a/src/modules/partition/core/PartUtils.cpp b/src/modules/partition/core/PartUtils.cpp index 0423e1dde..e9d15ebb6 100644 --- a/src/modules/partition/core/PartUtils.cpp +++ b/src/modules/partition/core/PartUtils.cpp @@ -196,7 +196,12 @@ lookForFstabEntries( const QString& partitionPath ) fstabFile.close(); } - QProcess::execute( "umount", { "-R", mountsDir.path() } ); + if ( QProcess::execute( "umount", { "-R", mountsDir.path() } ) ) + { + cWarning() << "Could not unmount" << mountsDir.path(); + // There is stuff left in there, really don't remove + mountsDir.setAutoRemove( false ); + } } return fstabEntries;