A method for managing data storage is described. The method includes
receiving data from an external host at a peripheral storage device,
detecting a file system type of the external host, and adapting a caching
policy for transmitting the data to a memory accessible by the storage
device, wherein the caching policy is based on the detected file system
type. The detection of the file system type can be based on the received
data. The detection bases can include a size of the received data. In
some implementations, the detection of the file system type can be based
on accessing the memory for file system type indicators that are
associated with a unique file system type. Adapting the caching policy
can reduce a number of data transmissions to the memory. The detected
file system type can be a file allocation table (FAT) system type.