Patent ID: 8560800

Claim:
An electronic device, comprising: a mounting unit in which a first storage medium having a first configuration is to be mounted; an acquiring unit configured to acquire attribute information of a storage medium mounted in the mounting unit from the storage medium; a first determining unit configured to determine whether or not the storage medium mounted in the mounting unit is a storage medium having a function other than a storage function based on the attribute information acquired by the acquiring unit; a second determining unit configured to determine whether or not the storage medium mounted in the mounting unit has the function other than the storage function in a case where it is not determined by the first determining unit that the storage medium is a storage medium having the function other than the storage function; and a recording unit configured to record information that can be used in a function other than a storage function in the storage medium mounted in the mounting unit, wherein the second determining unit determines whether or not the storage medium mounted in the mounting unit has the function other than the storage function based on whether or not there is a response to the information recorded by said recording unit, and wherein the recording unit records the information that can be used in the function other than the storage function as a file in a predetermined directory by using a file system.