For dealing with internal and external(sdcard) storage, we have the check for formatting selected storage. So, we always format the storage which is showing on the settings::Media storage menu.