How many times do you have to mount the ESP to your computer? I bet it's almost never. But in the rare occasions that you do, you always end up looking up how to do so. Well, in this post we'll not only see once again how to do so, but we'll also implement an alias to do so with a handy memorable shortcut.

The basics

So, to mount the ESP you first have to create a directory in the /Volumes dir:

$ sudo mkdir /Volumes/ESP

Then, we mount the EFI System partition to it:

$ sudo mount -t msdos /dev/disk0s1 /Volumes/ESP

If done correctly, you should see the ESP drive being added to the list in the sidebar.

An useful alias

If you get particularly tired of doing so, you can specify an alias to your .bash_profile, .profile or .zshrc:

alias mountesp="sudo mkdir /Volumes/ESP && sudo mount -t msdos /dev/disk0s1 /Volumes/ESP"

You can then run these commands by using:

$ mountesp

You can obviously rename it however you like.

Thanks for reading this post, share it if you liked it. See you next post!