Last active
April 2, 2021 04:33
-
-
Save the-eric-kwok/3b3b7f17ebd20606cd65b7a2d24c5168 to your computer and use it in GitHub Desktop.
Mount ESP on macOS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
DISKS=($(diskutil list | grep -i efi | grep -o "disk[0-9]s[0-9]")) | |
for disk in $DISKS; do | |
echo "正在挂载 $disk..." | |
sudo diskutil mount $disk | |
done | |
open /Volumes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment