Search code examples
linuxmobileusbsd-cardusb-mass-storage

How can I list the contents of an SD card connected to Linux via a phone in USB Mass Storage Mode?


Is it possible to get a list of files from an SD card when it is connected as a USB Mass Storage device?


Solution

  • UMS provides the contents of the SD card as a raw storage device, much the same as a hard drive or CD driver. As such, it is up to the operating system's VFS to make sense of the partitioning, formatting, and directory structure contained on it.