USB-C SSD Corrupted By iPad

It appears that 1) Apple engineers don't use their own products and 2) they don't listen to feedback because I have just found out the hard way that I am not the first person to lose data just by plugging their SSD into their iPad Pro M1.


All I did was plug in my SanDisk Extreme USB 3 drive and transfer some video files. Now the drive cannot be written to or modified.


It has too much data to simply offload onto my computer so I am now forced to buy a second drive and hope that I can back it up.


Seriously, how is this a problem? Why was it not solved immediately? How can Apple pitch the use of external drives with iPads and iPhones and yet write such a terrible file management system that it ruins a drive in seconds?

iPad Pro, iPadOS 17

Posted on Feb 26, 2024 3:42 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 26, 2024 4:00 PM

Connecting the SSD to your iPad is unlikely to be the cause of corruption. Safely disconnecting the SSD is another matter entirely...


The technical cause of issues is likely to be write-caching - this being a feature of some USB Storage (in this case SSD) devices.


For most desktop computers, it is possible to configure an externally attached storage device either for performance (i.e., uses write-caching) or for Quick Removal. This determines how and when information is “written” to non-volatile storage.


When configured for Quick Removal, information from the host computer is written immediately to the storage medium. This has the advantage that you may disconnect the storage device from the host computer, without risk of corrupting the file-system, at any time that data is not being actively transmitted to the storage device. Whilst being a completely valid and useful method of managing data storage, for reasons beyond the immediate scope of this description, this method is less efficient and slower.


Alternatively, when write-caching is enabled, information from the host computer is “cached” in separate (high performance) volatile storage within the storage device - and when sufficient information has been received, a “block” of data is written in single write-cycle. Whilst being faster and more efficient, this method comes with the penalty of the host computer having to notify the storage device of a impending device-disconnection before it is disconnected. This warning ensures that the storage device will flush any pending data from its volatile cache-memory to non-volatile storage - and in so doing sets a “clean switch” on the flash filesystem and signals to the computer that it is safe to disconnect.


A drive configured for write-caching, upon connection to a host computer, is checked for the “clean switch”; if present, the storage device is “mounted” and made available to the operating system. By contrast, if the “clean switch” is not detected (this will occur if the storage device was disconnected prior to being notified of a “dismount”), the filesystem must be assumed to be potentially corrupt; pending data within the write-cache may not have been written to the drive.


So, the relevance of this to iPad is simple. iPad does not fully support devices that are implement write-caching. iPadOS lacks the ability to inform the storage device of imminent disconnection of the storage device from the USB bus. As you don't have a safe-dismount button, the iPad has no way to warn the connected storage devices that you about to unplug the USB connection.


iPadOS also lacks capability to detect and scan/repair corrupt storage devices.


In summary, now that you [hopefully] understand both the cause and effect, you will now understand that you can only safely disconnect a device that uses write-caching if you shut-down the iPad before disconnecting - or that you use USB storage devices that are designed for Quick Disconnect operation.


I hope this solves your mystery - and proves to be helpful in optimising your SSD device for use with your iPad.

Similar questions

5 replies
Question marked as Top-ranking reply

Feb 26, 2024 4:00 PM in response to Red_5

Connecting the SSD to your iPad is unlikely to be the cause of corruption. Safely disconnecting the SSD is another matter entirely...


The technical cause of issues is likely to be write-caching - this being a feature of some USB Storage (in this case SSD) devices.


For most desktop computers, it is possible to configure an externally attached storage device either for performance (i.e., uses write-caching) or for Quick Removal. This determines how and when information is “written” to non-volatile storage.


When configured for Quick Removal, information from the host computer is written immediately to the storage medium. This has the advantage that you may disconnect the storage device from the host computer, without risk of corrupting the file-system, at any time that data is not being actively transmitted to the storage device. Whilst being a completely valid and useful method of managing data storage, for reasons beyond the immediate scope of this description, this method is less efficient and slower.


Alternatively, when write-caching is enabled, information from the host computer is “cached” in separate (high performance) volatile storage within the storage device - and when sufficient information has been received, a “block” of data is written in single write-cycle. Whilst being faster and more efficient, this method comes with the penalty of the host computer having to notify the storage device of a impending device-disconnection before it is disconnected. This warning ensures that the storage device will flush any pending data from its volatile cache-memory to non-volatile storage - and in so doing sets a “clean switch” on the flash filesystem and signals to the computer that it is safe to disconnect.


A drive configured for write-caching, upon connection to a host computer, is checked for the “clean switch”; if present, the storage device is “mounted” and made available to the operating system. By contrast, if the “clean switch” is not detected (this will occur if the storage device was disconnected prior to being notified of a “dismount”), the filesystem must be assumed to be potentially corrupt; pending data within the write-cache may not have been written to the drive.


So, the relevance of this to iPad is simple. iPad does not fully support devices that are implement write-caching. iPadOS lacks the ability to inform the storage device of imminent disconnection of the storage device from the USB bus. As you don't have a safe-dismount button, the iPad has no way to warn the connected storage devices that you about to unplug the USB connection.


iPadOS also lacks capability to detect and scan/repair corrupt storage devices.


In summary, now that you [hopefully] understand both the cause and effect, you will now understand that you can only safely disconnect a device that uses write-caching if you shut-down the iPad before disconnecting - or that you use USB storage devices that are designed for Quick Disconnect operation.


I hope this solves your mystery - and proves to be helpful in optimising your SSD device for use with your iPad.

Feb 26, 2024 4:25 PM in response to Red_5

To be clear, it is not me deleting your post(s). I and other end-user contributors have no means to do so.


Only the Moderators have the ability to delete a post - and will generally only do so if you post material that contravenes the Terms Of Use that govern participation within the ASC Community.


If your post is considered abusive, inflammatory or inappropriate, you should anticipate that your post will be edited or deleted in its entirety.


As for your grievance, Apple invites submission of constructive comments and feature requests via its Product Feedback portal. For iPad and iPadOS:

Feedback - iPad - Apple



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

USB-C SSD Corrupted By iPad

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.