Suppose that we connect our flash USB drive to a MacBook, then eject this storage from Finder sidebar. Now I want to remount this storage without unplugging and replugging it into the computer, but the disk is no longer listed with
diskutil list command.
The problem you describe was initially the intention for me to write an app that allows you to manage your drives from the menu bar. It is called Mountain and you can get it here.
Hope you enjoy it!!
UPDATE: The only way to re-mount ejected external USB flash drives is to unload and load the USB mass storage kernel extension:
Be aware that this will re-mount ALL external USB drives..
You mount devices using:
diskutil mountDisk device
where device can be a
- device node:
- disk identifier:
- volume mount point:
For those that like the graphical Disk Utility.app, it also shows a connected drive that happens to not be mounted and you are able to mount ejected disks again from there as well.