Skip to content

Instantly share code, notes, and snippets.

@arkjun
Created July 29, 2013 05:25
Show Gist options
  • Save arkjun/6102267 to your computer and use it in GitHub Desktop.
Save arkjun/6102267 to your computer and use it in GitHub Desktop.
ejectHDD
# change directory to My external Hard disk
# remove it's dummy files e.g) ._ hidden files.
# and, eject it.
# modify Leto_1TB to your configuration.
# modify disk1s1 to your configuration.
cd /Volumes/Leto_1TB
find ./ -name "._*" -exec rm {} \;
hdiutil eject /dev/disk1s1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment