Compressed body of umount_drive function.