diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index 524d5e2c63..8c26102b1c 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -220,7 +220,7 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vector& vDevicesOut ) continue; - usbd.sDevice = "/dev/" + sDevice; + usbd.sDevice = "/dev/" + sDevice + "1"; /* * sPath/device should be a symlink to the actual device. For USB @@ -460,7 +460,7 @@ void GetNewStorageDevices( vector& vDevicesOut ) for( unsigned i=0; isOsMountDir.empty() ); - CString sCommand = "mount " + pDevice->sOsMountDir; + CString sCommand = "mount " + pDevice->sDevice; LOG->Trace( "hack mount (%s)", sCommand.c_str() ); bool bMountedSuccessfully = ExecuteCommand( sCommand ); @@ -506,7 +506,7 @@ void MemoryCardDriverThreaded_Linux::Unmount( UsbStorageDevice* pDevice ) if( pDevice->sOsMountDir.empty() ) return; - CString sCommand = "umount " + pDevice->sOsMountDir; + CString sCommand = "umount " + pDevice->sDevice; LOG->Trace( "hack unmount (%s)", sCommand.c_str() ); ExecuteCommand( sCommand ); } @@ -521,7 +521,7 @@ void MemoryCardDriverThreaded_Linux::Flush( UsbStorageDevice* pDevice ) // that the flush is completed on return. However, we can mount the filesystem // with the flag "-o sync", which forces synchronous access (but that's probably // very slow.) -glenn - ExecuteCommand( "mount -o remount " + pDevice->sOsMountDir ); + ExecuteCommand( "mount -o remount " + pDevice->sDevice ); } /*