unmount before write on Mac