diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index 3955806c12..b44c89e486 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -210,7 +210,7 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vectorMount(&d) ) { d.SetError( "MountFailed" ); continue; @@ -232,7 +232,7 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vectorUnmount( "dir", d.sOsMountDir, TEMP_MOUNT_POINT ); } - ExecuteCommand( "sync; umount -l \"" + d.sOsMountDir + "\"" ); + this->Unmount( &d ); LOG->Trace( "WriteTest: %s, Name: %s", d.m_State == UsbStorageDevice::STATE_ERROR? "failed":"succeeded", d.sName.c_str() ); }