Type sudo eject /dev/<device name>, then remove and reinsert the SD card
sudo eject /dev/<device name>