f_mountdrv

The f_mountdrv forces the partition mounted.

FRESULT f_mountdrv (void);

Return Values

FR_OK (0)
The function succeeded.
FR_NOT_READY
The disk drive cannot work due to no medium in the drive or any other reason.
FR_RW_ERROR
Any error occured in low level disk I/O.
FR_NOT_ENABLED
FatFs module is not enabled.
FR_NO_FILESYSTEM
There is no valid FAT partition on the disk.

Description

The f_mountdrv forces the partition mounted (initializes FATFS structure). This function should not be used except for recover FR_INCORRECT_DISK_CHANGE error. The file system is initialized automatically in accordance with the necessity when any file function is called.

To terminate use of the FatFs module, close all files and then the FATFS structure can be discarded. In this function, following process is executed.


References

FATFS

Return