To improve handling, when mounting a plurality of storage devices which can be inserted and pulled out.
The present invention relates to an image forming apparatus, including a plurality of storage devices which can be inserted and pulled out respectively, connected to the image forming apparatus, in a state where a connecting position of each storage device can be replaced and capable of storing data in a nonvolatile state; and a plurality of devices for executing storage or processing correspondingly to the plurality of storage devices, respectively. In the state where a corresponding relation with the plurality of devices with respect to the connecting positions of the plurality of storage devices is not fixed, the plurality of storage devices and the plurality of devices are connected to the image forming apparatus, and the image forming apparatus includes a control section which identifies each of the plurality of storage devices, sets the corresponding relation between each of the plurality of storage devices and each of the plurality of devices and controls so as to perform corresponding data processings among the plurality of storage devices and the plurality of devices.