int umount(char *NomDuVolume);
#include <stdio.h>
#include <stdlib.h>
#include <sys/mount.h>
if (mount("/dev/cdrom0", "/cdrom", 0)==-1)
   {
   ...
   }
...
if (umount("/dev/cdrom0", 0)==-1)
   {
   ...
   }
...
Le résultat est -1 en cas d'échec.