diff options
Diffstat (limited to 'partition.cpp')
-rw-r--r-- | partition.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp index add9460fc..3fadfb980 100644 --- a/partition.cpp +++ b/partition.cpp @@ -1509,6 +1509,11 @@ bool TWPartition::Wipe_EXT23(string File_System) { } bool TWPartition::Wipe_EXT4() { + Find_Actual_Block_Device(); + if (!Is_Present) { + LOGERR("Block device not present, cannot wipe %s.\n", Display_Name.c_str()); + return false; + } if (!UnMount(true)) return false; |