summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index d83518b05..af89e404c 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1862,7 +1862,7 @@ int TWPartitionManager::Partition_SDCard(void) {
#else
TWPartition* SDCard = Find_Partition_By_Path("/sdcard");
#endif
- if (SDCard == NULL) {
+ if (SDCard == NULL || !SDCard->Removable || SDCard->Has_Data_Media) {
LOGERR("Unable to locate device to partition.\n");
return false;
}