## disk_initialize

The disk_initialize function initializes the disk drive.

    DSTATUS disk_initialize (
      BYTE pdrv           /* [IN] Physical drive number */
    );

#### Parameter

pdrv
  Specifies the physical drive number to initialize.

#### Return Values

This function returns a disk status as the result. For details of the disk status, refer to the disk_status() function.

#### Description

This function initializes a physical drive and put it ready to generic read/write data. When the function succeeded, `STA_NOINIT` flag in the return value is cleared.

Application program MUST NOT call this function while FatFs is in use, or FAT structure on the volume can be corrapted. To re-initialize the file system, use `f_mount()` function instead. This function is called on volume mount process by FatFs module to manage the media change.

Return